Method, apparatus, and electronic device for selecting virtual objects
By using object switching controls and operation areas in the game interface, the problem of operation discomfort caused by control occlusion is solved, and intuitive and efficient virtual object selection is achieved.
Patent Information
- Application Number
- CN202210601188.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2042-05-30
AI Technical Summary
In the game, since the scene screen is blocked by the operation control, the user's operation is uncomfortable. The operation experience of the virtual object selection method in the prior art is not intuitive and requires multiple selections.
By displaying object switching controls in the graphical user interface, selecting in the object switching operation area in response to touch operations, combining the object list and virtual rocker, the target virtual object can be quickly selected.
This avoids user operation discomfort caused by the scene screen being blocked by the operation control, improves the user's intuitive operation experience, and reduces the steps to select virtual objects.
Smart Images

Figure CN115212573B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of games, and in particular, to a method, device, and electronic device for selecting virtual objects. Background Art
[0002] In a game, when a user controls a virtual character to move to the response areas of multiple virtual items, since only one virtual item can be interacted with, the system needs to reselect the current multiple virtual items, and the selection result may not be the virtual item the user wants. In related technologies, when interaction options appear, the position of the sight can be switched by swiping the screen with a finger, and then the target virtual item can be selected. However, when there are many controls in the game scene, the interaction options are likely to block the comfortable area for finger swiping, and the user needs to find an area without control blockage for swiping operations, which affects the user's operation experience. In addition, the target virtual control can also be selected by clicking on the item switching control displayed in the interaction options, avoiding the problem of uncomfortable operation caused by the scene being blocked. However, this method has a deeper hierarchy and requires the user to perform more selection operations, and the operation experience is not intuitive enough, which will also affect the user's operation experience. Summary of the Invention
[0003] In view of this, an object of the present invention is to provide a method, device, and electronic device for selecting virtual objects, so as to avoid the problem of uncomfortable user operation caused by the scene screen being blocked by operation controls, and at the same time complete object selection with fewer operations, thereby improving the user's intuitive operation experience.
[0004] In a first aspect, an embodiment of the present invention provides a method for selecting a virtual object. A graphical user interface is provided through a terminal device, and the graphical user interface includes a virtual character and multiple virtual objects. The method includes: in response to the virtual character moving to the common response area of the multiple virtual objects, controlling the area associated with the first virtual object among the multiple virtual objects to display a selection mark and an object switching control; in response to a first touch operation on the object switching control, selecting the second virtual object among the multiple virtual objects and switching the selection mark to the area associated with the second virtual object; in response to a second touch operation on the object switching control, determining an object switching operation area in the graphical user interface; and in response to a third touch operation on the object switching operation area, selecting the third virtual object and controlling the selection mark to be switched to the area associated with the third virtual object.
[0005] Furthermore, the above method also includes: in response to the virtual character moving to the common response area of multiple virtual objects, displaying an object list containing object identifiers of multiple virtual objects, and the first object identifier corresponding to the first virtual object in the object list is in a selected state; in response to the first touch operation acting on the object switching control, setting the second object identifier corresponding to the second virtual object in the object list to a selected state, and canceling the selected state of the first object identifier.
[0006] Furthermore, the first touch operation is a click operation, the second touch operation is a long press operation, the third touch operation is a slide operation, and the second touch operation and the third touch operation are continuous operations.
[0007] Furthermore, the above method also includes: responding to a second touch operation acting on the object switching control, displaying a virtual joystick in the object switching operation area of the graphical user interface; responding to a third touch operation acting on the object switching operation area, selecting a third virtual object, including: responding to the third touch operation of the virtual joystick in the object switching operation area, selecting the third virtual object.
[0008] Furthermore, the above method further includes: in response to a second touch operation acting on the object switching control, setting the object list to an unusable state.
[0009] Furthermore, the object list is set to an unusable state by any of the following methods: hiding the object list; graying out the object list; adjusting the transparency of the object list; adding a mask to the object list.
[0010] Furthermore, the above method further includes: in response to the end of the third touch operation, setting the object list to a usable state.
[0011] Furthermore, the above method also includes: when any virtual object is in a selected state, displaying an operation control; and in response to a fourth touch operation on the operation control, performing an action corresponding to the operation control on the virtual object in the selected state.
[0012] In a second aspect, an embodiment of the present invention provides a device for selecting a virtual object, which provides a graphical user interface through a terminal device, wherein the graphical user interface includes a virtual character and multiple virtual objects, and the device includes: a display module, which is used to respond to the virtual character moving to a common response area of the multiple virtual objects, control the area associated with the first virtual object among the multiple virtual objects to display a selection mark and an object switching control; respond to a first touch operation applied to the object switching control, select a second virtual object among the multiple virtual objects, and switch the selection mark to the area associated with the second virtual object; a determination module, which is used to respond to a second touch operation applied to the object switching control, and determine an object switching operation area in the graphical user interface; and a selection module, which is used to respond to a third touch operation applied to the object switching operation area, select a third virtual object, and control the selection mark to switch to the area associated with the third virtual object.
[0013] In a third aspect, an embodiment of the present invention provides an electronic device comprising a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the virtual object selection method of any one of the first aspects.
[0014] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the virtual object selection method of any one of the first aspects.
[0015] The embodiments of the present invention bring the following beneficial effects:
[0016] The present invention provides a method, device, and electronic device for selecting a virtual object. In response to a virtual character moving to a common response area of multiple virtual objects, the method controls an area associated with a first virtual object among the multiple virtual objects to display a selection mark and an object switching control; in response to a second touch operation applied to the object switching control, an object switching operation area is determined in a graphical user interface; and in response to a third touch operation applied to the object switching operation area, a third virtual object is selected, and the selection mark is controlled to switch to an area associated with the third virtual object. In this method, after the object switching control is displayed, the object switching control can be touched to determine the object switching operation area, and a touch operation can be performed in the object switching operation area to select a virtual object. This avoids the problem of user discomfort caused by the scene screen being blocked by the operation control, while completing object selection with fewer operations, thereby improving the user's intuitive operation experience.
[0017] Other features and advantages of the present invention will be set forth in the following description, and in part will be obvious from the description, or may be learned by practice of the present invention. The objectives and other advantages of the present invention are realized and attained by the structure particularly pointed out in the specification, claims as well as the drawings.
[0018] To make the above objectives, features and advantages of the present invention more comprehensible, the following provides preferred embodiments in conjunction with the accompanying drawings and detailed descriptions are as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0020] Figure 1 Flowchart of a method for selecting a virtual object provided by an embodiment of the present invention;
[0021] Figure 2 Schematic diagram of the response range of multiple virtual objects provided by an embodiment of the present invention;
[0022] Figure 3 An interaction interface of multiple virtual objects provided by an embodiment of the present invention;
[0023] Figure 4 Schematic diagram of a selection interaction interface of multiple virtual objects provided by an embodiment of the present invention;
[0024] Figure 5 Another schematic diagram of a selection interaction interface of multiple virtual objects provided by an embodiment of the present invention;
[0025] Figure 6 Schematic diagram of the structure of a virtual object selection device provided by an embodiment of the present invention;
[0026] Figure 7 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0027] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions of the present invention in conjunction with the drawings. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the scope of protection of the present invention.
[0028] In the game, when the avatar needs to interact with a virtual item in the game scene, the user is required to control the avatar to approach the "response range" of the target virtual item. The interaction options for the target virtual item are displayed in the lower right area of the graphical user interface. The user can select the operation to be performed on the target virtual item from the interaction options provided. For example, the target virtual item (a household barbecue grill) can be used to cook.
[0029] For switching between multiple items, when the virtual character approaches the "response range" of multiple virtual items, since only one of the virtual objects can be interacted with, the system needs to automatically select the current multiple virtual items first, and the result of the selection may not be what the user wants, so a second selection of multiple virtual items is required. In the related art, there are usually two selection methods, among which the crosshair selection method displays interactive controls in the right area of the virtual item (or the area without operating controls in the graphical user interface) to prompt the name of the item where the current crosshair is located. By dragging the game scene screen with your finger (usually the comfortable area where the user's finger is dragged is the right area of the graphical user interface), control the crosshair in the center, and select the virtual object closest to the crosshair. However, there are usually more buttons on the right side of the graphical user interface, and the interactive controls can easily block the comfort zone on the right, causing the user to have to put their finger outside the comfort zone to make a selection, affecting the user's operating experience.
[0030] In addition, the manual selection method usually has an open button above the interactive control. Clicking this button opens the interactive options of all virtual items near the current user, allowing for secondary selection. If you click the "Wooden Box 1" control, the operation selection control for Wooden Box 1 will be displayed. However, the problem with this solution is that it requires entering a secondary list with a deep hierarchy. When the items do not have clear names, it is difficult for users to select the desired target. The operation experience is not intuitive, which also affects the user's operation experience.
[0031] Based on this, embodiments of the present invention provide a method, device, and electronic device for selecting a virtual object. This technology can be applied to devices with object selection functions, such as tablet computers, mobile phones, and other devices.
[0032] To facilitate understanding of this embodiment, a method for selecting a virtual object disclosed in an embodiment of the present invention is first described in detail. A graphical user interface is provided by a terminal device, and the graphical user interface includes a virtual character of a target game and multiple virtual objects. Figure 1 As shown, the method includes the following steps:
[0033] Step S102: In response to the virtual character moving to a common response area of the plurality of virtual objects, controlling an area associated with a first virtual object among the plurality of virtual objects to display a selection mark and an object switching control; in response to a first touch operation acting on the object switching control, selecting a second virtual object among the plurality of virtual objects, and switching the selection mark to an area associated with the second virtual object;
[0034] The above-mentioned virtual characters usually refer to game characters controlled by users. The above-mentioned virtual objects usually refer to virtual items in the game scene, such as virtual weapons, virtual food, virtual backpacks, virtual vehicles, etc.; they can also be virtual characters in the game scene, etc. The above-mentioned common display area is the overlapping area of the response areas of multiple virtual objects, wherein the response area can be pre-set according to the needs of the game, and usually the circular range composed of the center point of the virtual object as the center and the preset distance as the radius is the above-mentioned response area. Figure 2 As shown, a schematic diagram of a virtual character (i.e., the character in the picture) moving to the response range (i.e., the circular range with "A", "B", "C", and "D" as the center) of multiple virtual objects (the four virtual objects "A", "B", "C", and "D" in the image). When the virtual character moves to the common response area of multiple virtual objects, it will trigger the system to make an initial selection of multiple virtual objects. The system will usually randomly select the first virtual object from the multiple virtual objects, or calculate the distance between the virtual character and the virtual object, and determine the virtual object corresponding to the shortest distance as the first virtual object. A selection mark is then displayed in the area associated with the first virtual object, wherein the real area associated with the first object is usually the area above the first virtual object. The selection mark is as shown in FIG. Figure 3 As shown, it is usually displayed above the virtual object, and the edge area of the first virtual object is usually also highlighted to indicate that the virtual object is selected.
[0035] At the same time, in response to the virtual character moving to the common response area of multiple virtual objects, the area associated with the first virtual object in the multiple virtual objects is controlled to display a selection mark, and an object switching control is displayed in the graphical user interface. Specifically, the object switching control is displayed in the right area of the multiple virtual objects. The object switching control can be as follows: Figure 3 The rotation arrow shown, of course the graphical user interface will usually also include the object name of the currently selected virtual object, for example, Figure 3 As shown, the object switching control includes the "first virtual object" on the left, and the "second virtual object" and "third virtual object" information below. In actual implementation, clicking the displayed first virtual object will also display multiple operation options for the virtual object, such as "open", "destroy", "mark", etc. The object switching control specifically refers to the rotating arrow icon to the right of the "first virtual object".
[0036] In actual implementation, the object switching control can be clicked to switch the selection identifier displayed in the area associated with the first virtual object to the area associated with the second virtual object, that is, the second virtual object is selected.
[0037] Step S104, in response to a second touch operation on the object switching control, determine an object switching operation area in the graphical user interface;
[0038] From the above steps, and Figure 3 It can be seen that the object switching control will block the comfortable area of the user's finger operation in the graphical user interface, and at the same time, operation controls are also displayed in other areas. At this time, in order to improve the user's gaming experience and avoid searching for a suitable position in the current graphical user interface for selection operations, or avoiding selecting a target virtual object from multiple virtual objects by clicking one by one, the user can long-press or slide the object switching control, and at this time, an object switching operation area will be determined in the target area of the graphical user interface. Among them, the target area usually refers to the display area of the object switching control, or the display area of the object switching control and some areas at the edge, or some areas in the display area of the object switching control. The above object switching operation area has the function of selecting virtual objects. Specifically, the object switching operation area can be an independently displayed operation control, or a scene picture display area without any controls.
[0039] It should be noted that the touch level of the object switching operation area is higher than the touch level of the game scene picture and / or operation controls in the target area before the object switching operation area is displayed. It can be understood that the touch level of the object switching operation area is higher than the touch level of the game scene picture and operation controls in the target area before the object switching operation area is displayed; or, the touch level of the object switching operation area is higher than the touch level of the game scene picture in the target area before the object switching operation area is displayed; or, the touch level of the object switching operation area is higher than the touch level of the operation controls in the target area before the object switching operation area is displayed. The operation controls therein usually refer to the game controls inherent in the target game.
[0040] The touch level of the above object switching operation area means that before the object switching operation area is displayed, the target area usually displays the game scene picture and the object switching control displayed on the game scene picture. At this time, the object switching control can be touched and operated, but when the object switching operation area is displayed, only the object switching operation area can be operated in this target area.
[0041] It should be noted that the above object switching operation area can be a part of the game scene picture or the area where the generated control is displayed.
[0042] Step S106, in response to a third touch operation acting on the object switching operation area, select the third virtual object and control the selection mark to switch to the area associated with the third virtual object.
[0043] The above-mentioned third touch operation may be a sliding operation. Specifically, a sliding operation can be performed in the object switching operation area, thereby controlling the movement of the selection mark among multiple virtual objects. For example, moving from the second virtual object to the third virtual object. At this time, Figure 3 "The first virtual object" displayed on the left side of the object switching control will also be updated to "the second virtual object". Finally, when the third touch operation ends, the virtual object where the selection mark is located is determined as the selected third virtual object.
[0044] The present invention provides a method for selecting a virtual object. In response to a virtual character moving to a common response area of multiple virtual objects, control the display of a selection mark and an object switching control in the area associated with the first virtual object among the multiple virtual objects; in response to a second touch operation acting on the object switching control, determine an object switching operation area in the graphical user interface; in response to a third touch operation acting on the object switching operation area, select the third virtual object and control the selection mark to switch to the area associated with the third virtual object. In this way, after the object switching control is displayed, the object switching operation area can be determined by touching the object switching control, and a virtual object can be selected by performing a touch operation in the object switching operation area, avoiding the problem of user discomfort caused by the operation control blocking the scene screen, and at the same time completing object selection with fewer operations, improving the user's intuitive operation experience.
[0045] In addition, the above-mentioned first touch operation is a click operation, the second touch operation is a long press operation, the third touch operation is a sliding operation, and the second touch operation and the third touch operation are consecutive operations;
[0046] When the above steps are actually implemented, click the object switching control to switch the selection state from the first virtual object to the second virtual object and switch the selection mark to the area associated with the second virtual object; long press the object switching control to determine an object switching operation area in the graphical user interface; then continue to perform an interactive operation on the object switching operation area based on the long press operation to switch the selection state of the second virtual object to the selection state of the third virtual object and control the selection mark to switch to the area associated with the third virtual object. Through a continuous operation method, the user's operations are reduced, thereby improving the user's intuitive operation experience.
[0047] To further improve the user's gaming experience, the above method further includes: in response to the virtual character moving to the common response area of multiple virtual objects, displaying an object list including the object identifiers of multiple virtual objects, and the first object identifier corresponding to the first virtual object in the object list is in a selected state; in response to a first touch operation on the object switching control, setting the second object identifier corresponding to the second virtual object in the object list to the selected state, and canceling the selected state of the first object identifier.
[0048] See Figure 3 As shown, on the left side of the object switching control (i.e., the rotating arrow identifier), the first object identifier corresponding to the first virtual object is displayed. Figure 3 In [reference], the "first virtual object" is used to indicate the first object identifier, and this first object identifier can be Figure 3 text information in [reference], or other pattern representations, etc. Additionally, Figure 3 in [reference], the bolded "first virtual object" indicates that the first object identifier corresponding to the first virtual object in the object list is in a selected state. When the user clicks on the object switching control, the second object identifier corresponding to the second virtual object in the object list can be set to the selected state, and the selected state of the first object identifier is canceled. By displaying the object list, when the user selects the first virtual object, not only is a selection identifier displayed in the area associated with the first virtual object, but also the selected state of the first object identifier corresponding to the first virtual object is displayed in the object list. At the same time, clicking on the first object identifier can also display multiple operation options that can be performed, such as "open", "destroy", "mark", etc. By clicking on a target operation option among the multiple operation options, the corresponding operation can be performed on the first virtual object.
[0049] It should be noted that in some related technologies, by controlling the object switching control, the switching of virtual object identifiers in the object list can be controlled, and at the same time, the selected virtual object can be controlled. That is, when the object switching control is clicked once, the selected virtual object identifier in the object list is switched once. In the above embodiments, by long-pressing the object switching control to determine the sliding operation area (i.e., the object switching operation area), the problem of user discomfort caused by the scene screen being blocked by the object list and the object switching control is avoided. At the same time, object selection is completed with fewer operations, improving the user's intuitive operation experience, achieving the effect of flexibly controlling virtual objects, and making full use of the limited graphical user interface.
[0050] The above method further includes: in response to a second touch operation on the object switching control, displaying a virtual joystick in the object switching operation area of the graphical user interface.
[0051] In response to a third touch operation acting on the object switching operation area, the third virtual object is selected. A possible implementation: In response to a third touch operation acting on a virtual joystick in the object switching operation area, the third virtual object is selected.
[0052] As Figure 4 shown, when the user long-presses the object switching control, a virtual joystick will be generated and displayed in the display area of the object switching control or the area touched by the finger, that is, the above-mentioned object switching operation area. Controlling the direction of the virtual joystick can control the switching of the selection mark between virtual objects. That is, by sliding the virtual joystick, at this time the virtual joystick is displayed on top of the object switching control and the game scene screen. In this way, the virtual joystick is displayed in the object switching operation area, and the selection mark can be controlled through the virtual joystick. The operation is simple and intuitive, and there is no need to find a suitable operation area to switch the selection mark.
[0053] In addition, in order not to affect the user's third touch operation, the above method further includes: In response to a second touch operation acting on the object switching control, setting the object list to an unusable state.
[0054] Specifically, in response to a long-press operation acting on the object switching control, updating the display form of the object switching control to a preset form; wherein, the object switching control displayed in the preset form indicates that the object switching control is in an unusable state.
[0055] In another possible implementation, after setting the object list to an unusable state, the game scene screen in the object switching operation area has the function of controlling the switching of the selection mark, and the touch level of the game scene screen is higher than that of the object switching control.
[0056] In a possible implementation, the object list is set to an unusable state by any of the following methods: hiding the object list; graying out the object list; adjusting the transparency of the object list; adding a mask to the object list.
[0057] When the user long-presses the object switching control, the currently displayed object list is grayed out, or the transparency is reduced, or a black mask is added, or directly hidden, etc. As Figure 5 shown, the dotted-line display mode indicates that the object list is unavailable. That is to say, if the user operates in the display area of the current object list, the operation acts on the game scene screen below the object list. That is, without leaving the screen, the finger can penetrate the operation under the object list and complete the operation of dragging the screen. In this way, the object list is set to an unusable state, and the game scene screen can be dragged through the unusable object list, thereby controlling the selection mark. The operation is simple and intuitive, and there is no need to find a suitable operation area to switch the selection mark.
[0058] The following describes a possible implementation of the steps of selecting a third virtual object and controlling the selection indicator to switch to an area associated with the third virtual object in response to a third touch operation on the object switching operation area:
[0059] In specific implementations, after long-pressing the object switching control, the user can slide in the object switching operation area without lifting their finger from the screen to control the movement of the selection marker. For example, the selection marker can be moved from the first virtual object to the second virtual object. When the user moves the selection marker to the virtual object they want to select, they can end the sliding operation, that is, lift their finger from the terminal device screen. At this time, the system will determine the target virtual object where the selection marker is located as the selected virtual object, completing the selection of the virtual object.
[0060] In the above method, the virtual object can be selected simply and intuitively through the continuous sliding operation after the touch operation.
[0061] If the object switching operation area displays a virtual joystick, specifically, after a long press, the virtual joystick will appear in the area touched by your finger. At this time, you can directly drag the virtual joystick to control the selection mark to select the virtual object. Dragging the virtual joystick to control the selection mark further improves the user's operating experience.
[0062] Another possible implementation: After a long press, the object list below will appear unavailable (e.g., grayed out, with reduced transparency, or covered in a black mask). Without lifting your finger from the screen, you can slide through the list and drag the screen, moving the selected target between virtual objects. By dragging the game scene in the target area to control the selected marker, the user's operational experience is further enhanced.
[0063] In addition, the above method further includes: in response to the end of the third touch operation, setting the object list to a usable state.
[0064] If the object list displayed in the object switching operation area is in an unavailable state, the object list is unavailable. Therefore, after the sliding operation (i.e., the third touch operation) is completed, the object list is restored to a usable state and the display format is restored to the original display format. By restoring the usable state and display format of the object list, the user's operating experience is further improved.
[0065] Furthermore, when any virtual object is in a selected state, an operation control is displayed; and in response to a fourth touch operation on the operation control, an action corresponding to the operation control is performed on the virtual object in the selected state.
[0066] The above operation control is used to control the virtual object to perform corresponding actions, such as opening, destroying, marking, etc. The above fourth touch operation usually refers to a click operation. In actual implementation, when the first virtual object is in a selected state, not only the selected state of the first object identifier is displayed, but also the operation control is displayed. When the target operation control in the displayed operation control is clicked, such as "open", the operation control controls the first virtual object to open.
[0067] Corresponding to the above method embodiments, the embodiments of the present invention further provide a virtual object selection device, which provides a graphical user interface through a terminal device. The graphical user interface includes a virtual character and a plurality of virtual objects; as Figure 6 shown, the device includes:
[0068] A display module 61, configured to respond to the virtual character moving to the common response area of the plurality of virtual objects, control the area associated with the first virtual object among the plurality of virtual objects to display a selected identifier, and an object switching control; respond to a first touch operation on the object switching control, select a second virtual object among the plurality of virtual objects, and switch the selected identifier to the area associated with the second virtual object;
[0069] A determination module 62, configured to respond to a second touch operation on the object switching control, and determine an object switching operation area in the graphical user interface;
[0070] A selection module 63, configured to respond to a third touch operation on the object switching operation area, select a third virtual object, and control the selected identifier to switch to the area associated with the third virtual object.
[0071] The embodiments of the present invention provide a virtual object selection device, which responds to the virtual character moving to the common response area of the plurality of virtual objects, controls the area associated with the first virtual object among the plurality of virtual objects to display a selected identifier, and an object switching control; responds to a second touch operation on the object switching control, determines an object switching operation area in the graphical user interface; responds to a third touch operation on the object switching operation area, selects a third virtual object, and controls the selected identifier to switch to the area associated with the third virtual object. In this way, after the object switching control is displayed, the object switching operation area can be determined by touching the object switching control, and a virtual object can be selected by performing a touch operation in the object switching operation area, avoiding the problem of user discomfort caused by the operation control blocking the scene picture, and at the same time completing object selection with fewer operations, improving the user's intuitive operation experience.
[0072] Furthermore, the above-mentioned device also includes an object list display module, which is used to: respond to the virtual character moving to the common response area of multiple virtual objects, display an object list containing object identifiers of multiple virtual objects, and the first object identifier corresponding to the first virtual object in the object list is in a selected state; respond to the first touch operation acting on the object switching control, set the second object identifier corresponding to the second virtual object in the object list to a selected state, and cancel the selected state of the first object identifier.
[0073] Furthermore, the first touch operation is a click operation, the second touch operation is a long press operation, the third touch operation is a slide operation, and the second touch operation and the third touch operation are continuous operations.
[0074] Furthermore, the apparatus further comprises a virtual joystick display module, configured to: display a virtual joystick in the object switching operation area of the graphical user interface in response to a second touch operation on the object switching control;
[0075] The selection module is further configured to select a third virtual object in response to a third touch operation on the virtual joystick in the object switching operation area.
[0076] Furthermore, the above-mentioned apparatus further includes a first state setting module, which is configured to: in response to a second touch operation acting on the object switching control, set the object list to an unusable state.
[0077] Furthermore, the object list is set to an unusable state by any of the following methods: hiding the object list; graying out the object list; adjusting the transparency of the object list; adding a mask to the object list.
[0078] Furthermore, the above-mentioned apparatus further includes a second state setting module, which is used to: in response to the completion of the third touch operation, set the object list to a usable state.
[0079] Furthermore, the above-mentioned device also includes an operation control module, which is used to: display an operation control when any virtual object is in a selected state; and respond to a fourth touch operation on the operation control to perform an action corresponding to the operation control on the virtual object in the selected state.
[0080] The device for selecting a virtual object provided in the embodiment of the present invention has the same technical features as the method for selecting a virtual object provided in the above embodiment, and therefore can solve the same technical problems and achieve the same technical effects.
[0081] This embodiment further provides an electronic device, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above-mentioned virtual object selection method. The electronic device can be a server or a terminal device.
[0082] See Figure 7 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores computer-executable instructions that can be executed by the processor 100. The processor 100 executes the computer-executable instructions to implement the above method for selecting a virtual object.
[0083] Furthermore, Figure 7 the electronic device shown further includes a bus 102 and a communication interface 103. The processor 100, the communication interface 103, and the memory 101 are connected via the bus 102.
[0084] Among them, the memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 102 can be an ISA bus, a PCI bus, an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 7 only a bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0085] The processor 100 may be an integrated circuit chip with the ability to process signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 100 or instructions in the form of software. The above-mentioned processor 100 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present invention can be directly embodied as being executed and completed by the hardware decoding processor, or executed and completed by a combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and combines its hardware to complete the steps of the method in the foregoing embodiments.
[0086] This embodiment also provides a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions cause the processor to implement the above method for selecting a virtual object.
[0087] The computer program product of the method, device, electronic device, and system for selecting a virtual object provided by the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the foregoing method embodiments. For specific implementation, reference can be made to the method embodiments, and details are not described herein again.
[0088] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
[0089] In addition, in the description of the embodiments of the present invention, unless otherwise clearly defined and limited, the terms "install", "connect", and "couple" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.
[0090] If the above-mentioned functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.
[0091] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus cannot be understood as a limitation to the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0092] Finally, it should be noted that the above embodiments are only specific embodiments of the present invention, used to illustrate the technical solutions of the present invention, rather than limiting them. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art within the technical scope disclosed by the present invention can still modify the technical solutions described in the foregoing embodiments, or can easily think of changes, or perform equivalent replacements for some of the technical features; and these modifications, changes, or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims
1. A method for selecting a virtual object, characterized in that Provide a graphical user interface through a terminal device, the graphical user interface including a virtual character and a plurality of virtual objects, the method comprising: In response to the virtual character moving to a common response area of the plurality of virtual objects, control a selected identifier and an object switching control to be displayed in an area associated with a first virtual object among the plurality of virtual objects; in response to a first touch operation on the object switching control, select a second virtual object among the plurality of virtual objects, and switch the selected identifier to an area associated with the second virtual object; In response to a second touch operation on the object switching control, determine an object switching operation area in a target area of the graphical user interface; the object switching operation area is an independently displayed operation control or a scene picture display area without any controls; In response to a third touch operation on the object switching operation area, select a third virtual object, and control the selected identifier to be switched to an area associated with the third virtual object; the second touch operation and the third touch operation are continuous operations; The method further comprises: in response to a second touch operation on the object switching control, display a virtual joystick in the object switching operation area of the graphical user interface; In response to a third touch operation on the object switching operation area, selecting a third virtual object, comprising: in response to a third touch operation on the virtual joystick in the object switching operation area, selecting the third virtual object; The method further comprises: in response to the virtual character moving to a common response area of the plurality of virtual objects, display an object list including object identifiers of the plurality of virtual objects, and a first object identifier corresponding to the first virtual object in the object list is in a selected state; in response to a first touch operation on the object switching control, set a second object identifier corresponding to the second virtual object in the object list to a selected state, and cancel the selected state of the first object identifier; A first object identifier corresponding to the first virtual object is displayed on the left side of the object switching control; The touch level of the object switching operation area is higher than the touch level of the game scene picture and / or the operation control in the target area before the object switching operation area is displayed.
2. The method according to claim 1, characterized in that, The first touch operation is a click operation, the second touch operation is a long press operation, and the third touch operation is a swipe operation.
3. The method according to claim 1, characterized in that, The method further comprises: In response to a second touch operation on the object switching control, set the object list to an unusable state.
4. The method according to claim 3, characterized in that, Set the object list to an unusable state by any one of the following methods: Hide the object list; Grey out the object list; Adjust the transparency of the object list; Add a mask to the object list.
5. The method according to claim 3, wherein The method further comprises: In response to the end of the third touch operation, set the object list to a usable state.
6. The method according to claim 1, wherein The method further comprises: When any one of the virtual objects is in a selected state, display an operation control; In response to a fourth touch operation on the operation control, perform the action corresponding to the operation control on the virtual object in the selected state.
7. A selection device for virtual objects, characterized in that Provide a graphical user interface through a terminal device, the graphical user interface including a virtual character and a plurality of virtual objects, the device including: A display module, configured to, in response to the virtual character moving to a common response area of the plurality of virtual objects, control a selected identifier to be displayed in an area associated with a first virtual object among the plurality of virtual objects, and an object switching control; in response to a first touch operation on the object switching control, select a second virtual object among the plurality of virtual objects, and switch the selected identifier to an area associated with the second virtual object; A determination module, configured to, in response to a second touch operation on the object switching control, determine an object switching operation area in a target area of the graphical user interface; the object switching operation area is an independently displayed operation control or a scene picture display area without any controls; A selection module, configured to, in response to a third touch operation on the object switching operation area, select a third virtual object, and control the selected identifier to be switched to an area associated with the third virtual object; the second touch operation and the third touch operation are consecutive operations; The device further includes: a virtual joystick display module, configured to, in response to a second touch operation on the object switching control, display a virtual joystick in the object switching operation area of the graphical user interface; The selection module is further configured to: in response to a third touch operation on the virtual joystick in the object switching operation area, select a third virtual object; The device further includes: an object list display module, configured to, in response to the virtual character moving to a common response area of the plurality of virtual objects, display an object list including object identifiers of the plurality of virtual objects, and a first object identifier corresponding to the first virtual object in the object list is in a selected state; in response to a first touch operation on the object switching control, set a second object identifier corresponding to a second virtual object in the object list to a selected state, and cancel the selected state of the first object identifier; A first object identifier corresponding to the first virtual object is displayed on the left side of the object switching control; The touch level of the object switching operation area is higher than the touch level of the game scene picture and / or the operation control in the target area before the object switching operation area is displayed.
8. An electronic device, characterized in that, Including a processor and a memory, the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method for selecting a virtual object according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer executable instructions, and when the computer executable instructions are called and executed by a processor, the computer executable instructions cause the processor to implement the method for selecting a virtual object according to any one of claims 1-6.
Citation Information
Patent Citations
Operation control method and device of virtual object in game and mobile terminal
CN110064193A