Method, apparatus, storage medium, and electronic device for moving virtual object

By responding to changes in the tilt direction of the terminal device in shooting games and obtaining the initial tilt angle change range, the problem of low operation accuracy after reducing the interaction area is solved, enabling fast and convenient movement and precise operation of virtual game objects.

CN117323663BActive Publication Date: 2026-08-25NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311293382.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-07
Publication Date
2026-08-25
Estimated Expiration
2043-10-07

AI Technical Summary

Technical Problem

In shooting games, reducing the interaction area leads to a problem of low accuracy in controlling the movement of virtual objects.

Method used

By responding to changes in the tilt direction of the terminal device, the magnitude of the initial tilt angle change is obtained, thereby selecting the first response area from the second display area and moving the target virtual object to the first response area, thus achieving fast and convenient movement of game virtual objects.

Benefits of technology

It improves the accuracy of movement of virtual objects in the game, simplifies the operation steps, and enhances the player experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117323663B_ABST
    Figure CN117323663B_ABST
Patent Text Reader

Abstract

The application discloses a method, device, storage medium and electronic device for moving a virtual object. The method comprises: in response to a touch operation performed on a first display area, determining a target virtual object to be operated and an initial tilt angle of a terminal device, wherein the first display area is used to provide at least one alternative virtual object associated with a virtual game character; in response to a change in the tilt direction of the terminal device, obtaining a change range of the initial tilt angle; based on the change range, selecting a first response area from a second display area, wherein the second display area is used to provide at least one candidate response area associated with the at least one alternative virtual object; and in response to the touch operation leaving the first display area, moving the target virtual object to the first response area. The application solves the technical problem of low operation accuracy when moving a game virtual object after reducing an interaction area in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of game technology, and more specifically, to a method, apparatus, storage medium, and electronic device for moving virtual objects. Background Technology

[0002] Many shooting and competitive games currently feature a backpack system to store items acquired during gameplay. Players can select and equip various items from their backpack during battle, enabling different gameplay strategies. Shooting and competitive mobile games often involve long drag-and-drop operations when managing backpack resources during matches, for example... Figure 1 In the game interface shown, players need to drag weapons and attachments from the right half of the screen's inventory or nearby area to the left half of the screen's current equipment area, or drag them to the far right to discard equipment currently equipped on the virtual game character. These long-distance dragging operations are not well implemented when holding the phone in landscape mode with both hands. Related technologies that aim to improve the player experience mainly revolve around reducing the interactive area, shrinking the full-screen inventory interface to 2 / 3 of the screen or half a screen to address the issue of excessive dragging distances. However, shrinking the inventory makes the interactive area even smaller and denser, which, while reducing dragging distance, can actually decrease the precision of operations.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] At least some embodiments of this application provide a method, apparatus, storage medium, and electronic device for moving virtual objects, so as to at least solve the technical problem of low operational accuracy when moving virtual game objects after reducing the interaction area in the related art.

[0005] According to one embodiment of this application, a method for moving a virtual object is provided. A graphical user interface (GUI) is provided through a terminal device. The GUI displays content including a first display area and a second display area. The method includes: determining the target virtual object to be operated and the initial tilt angle of the terminal device in response to a touch operation performed on the first display area, wherein the first display area is used to provide at least one alternative virtual object associated with a virtual game character; obtaining the magnitude of the change in the initial tilt angle in response to a change in the tilt direction of the terminal device; selecting a first response area from within the second display area based on the magnitude of the change, wherein the second display area is used to provide at least one candidate response area associated with at least one alternative virtual object; and moving the target virtual object to the first response area in response to a touch operation leaving the first display area.

[0006] According to one embodiment of this application, an apparatus for moving virtual objects is also provided. A graphical user interface (GUI) is provided through a terminal device. The GUI displays content including a first display area and a second display area. The apparatus includes: a determining module, configured to determine the target virtual object to be operated and the initial tilt angle of the terminal device in response to a touch operation performed on the first display area, wherein the first display area is used to provide at least one alternative virtual object associated with a virtual game character; an acquiring module, configured to acquire the magnitude of change in the initial tilt angle in response to a change in the tilt direction of the terminal device; a selecting module, configured to select a first response area from the second display area based on the magnitude of change, wherein the second display area is used to provide at least one candidate response area associated with at least one alternative virtual object; and a moving module, configured to move the target virtual object to the first response area in response to a touch operation leaving the first display area.

[0007] According to one embodiment of this application, a computer-readable storage medium is also provided, which stores a computer program, wherein the computer program is configured to execute the method of moving virtual objects as described above when running.

[0008] According to one embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the method of moving a virtual object as described above.

[0009] In at least some embodiments of this application, by responding to a touch operation performed on a first display area, the initial tilt angle of the target virtual object to be operated and the terminal device is determined. Then, in response to a change in the tilt direction of the terminal device, the magnitude of the change in the initial tilt angle is obtained. Subsequently, based on the magnitude of the change, a first response area is selected from the second display area. Finally, in response to a touch operation leaving the first display area, the target virtual object is moved to the first response area. This achieves the purpose of quickly and conveniently moving game virtual objects in the game's graphical user interface, thereby improving the technical effect of operation accuracy when moving game virtual objects. This solves the technical problem of low operation accuracy when moving game virtual objects after reducing the interaction area in related technologies. Attached Figure Description

[0010] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0011] Figure 1 This is a schematic diagram of an interface for a method of moving virtual objects in related technologies;

[0012] Figure 2 This is a hardware structure block diagram of a mobile terminal for a method of moving virtual objects according to one embodiment of this application;

[0013] Figure 3 This is a flowchart of a method for moving a virtual object according to one embodiment of this application;

[0014] Figure 4 This is a schematic diagram of an interface for a method of moving a virtual object according to one embodiment of this application;

[0015] Figure 5 This is a schematic diagram of an interface for another method of moving a virtual object according to one embodiment of this application;

[0016] Figure 6 This is a schematic diagram of an interface for another method of moving a virtual object according to one embodiment of this application;

[0017] Figure 7 This is a schematic diagram of an interface for another method of moving a virtual object according to one embodiment of this application;

[0018] Figure 8 This is a structural block diagram of a device for moving virtual objects according to one embodiment of this application;

[0019] Figure 9 This is a schematic diagram of an electronic device according to one embodiment of the present application. Detailed Implementation

[0020] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0021] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0022] The methods and embodiments described above in this disclosure can be executed on mobile terminals, computer terminals, or similar computing devices. Taking a mobile terminal as an example, the mobile terminal can be a smartphone, tablet computer, PDA, mobile internet device, PAD, game console, or other terminal device. Figure 2 This is a hardware structure block diagram of a mobile terminal for a method of moving virtual objects according to an embodiment of this application. Figure 2 As shown, a mobile terminal may include one or more ( Figure 2 Only one is shown in the image. Processor 202 (processor 202 may include, but is not limited to, a central processing unit (CPU), graphics processing unit (GPU), digital signal processing (DSP) chip, microprocessor (MCU), programmable logic device (FPGA), neural network processor (NPU), tensor processor (TPU), artificial intelligence (AI) type processor, etc.) and memory 204 for storing data. In one embodiment of this application, it may also include: input / output device 208 and display device 210.

[0023] In some optional embodiments primarily focused on gaming scenarios, the aforementioned device may also provide a human-computer interaction interface with a touch-sensitive surface. This interface can sense finger contact and / or gestures to interact with a graphical user interface (GUI). The human-computer interaction functions may include the following: creating web pages, drawing, word processing, creating electronic documents, playing games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music, and / or web browsing, etc. Executable instructions for performing the aforementioned human-computer interaction functions are configured / stored in one or more processor-executable computer program products or readable storage media.

[0024] Those skilled in the art will understand that Figure 2 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 2The more or fewer components shown, or having the same Figure 2 The different configurations shown.

[0025] According to one embodiment of this application, an embodiment of a method for moving virtual objects is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0026] Figure 3 This is a flowchart of a method for moving a virtual object according to one embodiment of this application. A graphical user interface is provided through a terminal device. The content displayed by the graphical user interface includes a first display area and a second display area, such as... Figure 3 As shown, the method includes the following steps:

[0027] Step S31: In response to a touch operation performed on the first display area, determine the target virtual object to be operated and the initial tilt angle of the terminal device, wherein the first display area is used to provide at least one alternative virtual object associated with the virtual game character;

[0028] Step S32: In response to a change in the tilt direction of the terminal device, obtain the magnitude of the change in the initial tilt angle;

[0029] Step S33: Based on the magnitude of change, select a first response area from the second display area, wherein the second display area is used to provide at least one candidate response area associated with at least one alternative virtual object;

[0030] Step S34: In response to the touch operation leaving the first display area, move the target virtual object to the first response area.

[0031] Optionally, the first display area is used to display the virtual equipment area associated with the virtual game character. The content displayed in the virtual equipment area includes at least one virtual weapon or equipment currently equipped by the virtual game character. For example, the virtual equipment area can display weapon 1, weapon 2, weapon 3, and weapon 4 currently equipped by the virtual game character, and can also display items such as helmets, bulletproof vests, and boots.

[0032] Optionally, the second display area is an area other than the virtual equipment area. The content displayed in the second display area includes at least one of the following: a virtual backpack area associated with the virtual game character, a list of virtual items to be picked up within the activity range of the virtual game character, and a drop-off area for virtual weapons and equipment within the virtual equipment area. The virtual backpack area can display several game items that the player has picked up in the game scene, and the drop-off area for virtual weapons and equipment within the virtual equipment area allows the player to drop virtual weapons and equipment.

[0033] It should be noted that the positions of the first display area and the second display area can be flexibly interchanged. This application only provides an example and does not constitute a specific limitation.

[0034] The touch operation performed on the first display area can be a long press and drag operation. The target virtual object to be operated on is at least one alternative virtual object in the virtual equipment area, such as virtual weapons, helmets, bulletproof vests, and boots. The initial tilt angle of the terminal device can be obtained by an angle detection component on the terminal device, for example, Figure 4 This is a schematic diagram of an interface for a method of moving a virtual object according to one embodiment of this application, such as... Figure 4 As shown, when the terminal device is a mobile phone, the initial tilt angle α of the phone screen is recorded by the phone's gyroscope when the player first triggers a drag operation on at least one candidate virtual object. The phone gyroscope is a sensor used to measure and detect the device's rotation and tilt. It provides accurate attitude and orientation information by sensing the device's angular velocity and direction. A mobile phone gyroscope typically consists of a microelectromechanical system (MEMS), including a tiny gyroscope and an accelerometer. The gyroscope detects the device's rotational motion, while the accelerometer detects the device's linear acceleration and gravitational acceleration. By combining the data from the gyroscope and accelerometer, the mobile phone gyroscope can provide more accurate device attitude and motion information, such as the device's tilt angle, rotational speed, and direction.

[0035] When the tilt direction of the terminal device changes, the magnitude of the change in the initial tilt angle is obtained. Figure 5 This is a schematic diagram of an interface for another method of moving a virtual object according to one embodiment of this application, such as... Figure 5 As shown, after the mobile terminal tilts to the right, the change in the initial tilt angle α can be obtained. Based on the change in α, a first response area is selected from the second display area. The first response area can be the virtual backpack area associated with the virtual game character, the list area of ​​virtual items to be picked up within the activity range of the virtual game character, or the drop area corresponding to virtual weapons and equipment within the virtual equipment area. After the player releases their hand, that is, when the drag operation on at least one candidate virtual object stops, the target virtual object is moved to the first response area.

[0036] Based on steps S31 to S34 above, by responding to the touch operation performed on the first display area, the initial tilt angle of the target virtual object to be operated and the terminal device is determined. Then, in response to the change in the tilt direction of the terminal device, the change range of the initial tilt angle is obtained. Subsequently, based on the change range, a first response area is selected from the second display area. Finally, in response to the touch operation leaving the first display area, the target virtual object is moved to the first response area. This achieves the purpose of quickly and conveniently moving game virtual objects in the game's graphical user interface, thereby improving the technical effect of operation accuracy when moving game virtual objects. This solves the technical problem of low operation accuracy when moving game virtual objects after reducing the interaction area in related technologies.

[0037] The method for moving virtual objects in the embodiments of this application will be further described below.

[0038] Optionally, the method for moving virtual objects in this application embodiment further includes: determining the first tilt angle change range corresponding to the number of regions and the change amplitude of at least one candidate response region; dividing the first tilt angle change range based on the number of regions to obtain at least one candidate change interval corresponding to at least one candidate response region.

[0039] Specifically, when a player wants to move an item from the nearby bar to the virtual backpack area or virtual equipment area on the left, the number of at least one candidate response area is n=2, that is, the candidate response areas are the virtual equipment area and the virtual backpack area. The first tilt angle change range corresponding to the change of the initial tilt angle α is (20°, 90°). The first tilt angle change range that exceeds 20° and is less than 90° is divided into two equal parts to obtain the candidate change interval (20°, 55°) corresponding to the virtual backpack area and the candidate change interval (55°, 90°) corresponding to the virtual equipment area.

[0040] Based on the above optional embodiments, by determining the first tilt angle change range corresponding to the number and magnitude of at least one candidate response region, and then dividing the first tilt angle change range based on the number of regions, at least one candidate change interval corresponding to at least one candidate response region can be obtained, which can further simplify the operation steps when moving virtual objects in mobile games and improve the user experience of players.

[0041] Optionally, the method for moving a virtual object in this application embodiment further includes: setting a second tilt angle variation range, wherein the second tilt angle variation range is used to reject the determination of the first response region.

[0042] Specifically, continuing with n=2 as an example, the range of the second tilt angle change is set to less than 20°, that is, a 20° anti-accidental touch judgment is set. After triggering the drag operation, if the tilt angle α is within 20 degrees, no mapping operation will be generated, so as to avoid the target virtual object being moved incorrectly due to the player's accidental touch.

[0043] Based on the above optional embodiments, by setting a second tilt angle variation range, it is possible to effectively prevent the movement of virtual game items caused by accidental touches by players, thereby further optimizing the player's gaming experience.

[0044] Optionally, in step S33, selecting the first response region from the second display area based on the magnitude of change includes:

[0045] Step S331: Select the target change interval corresponding to the change magnitude from at least one candidate change interval;

[0046] Step S332: Determine the first response region based on the target change range.

[0047] Figure 6 This is a schematic diagram of an interface for another method of moving a virtual object according to one embodiment of this application, such as... Figure 6 As shown, when a player drags an item in the "Nearby" area with their right hand and tilts the phone to the left, the left-side backpack and equipment areas will highlight sequentially, depending on the angle α. The larger the angle, the more the leftward the area will highlight. When α is between 20° and 55°, the virtual backpack area is highlighted. Releasing the dragging hand at this angle will move the selected item from the "Nearby" bar into the virtual backpack area. When α is between 55° and 90°, the virtual equipment area is highlighted. Releasing the dragging hand at this angle will move the selected item from the "Nearby" bar into the virtual equipment area. When the angle α is less than 20 degrees, no mapping operation will occur.

[0048] Based on the above optional embodiments, by selecting the target change range corresponding to the change amplitude from at least one candidate change range, and then determining the first response area based on the target change range, the target movement position of the target virtual object can be quickly determined, thereby avoiding long-distance drag selection by the player, and further reducing the operational difficulty when moving the target virtual object.

[0049] Optionally, the method for moving virtual objects in this application embodiment further includes: displaying the first response area in the graphical user interface according to a first preset display style.

[0050] Specifically, the first response area is displayed according to the first preset display style, including but not limited to highlighting, flashing, and outlining.

[0051] Optionally, the method for moving a virtual object in this application embodiment further includes: displaying a prompt message in a graphical user interface, wherein the prompt message is used to indicate the movement result of the target virtual object.

[0052] Specifically, Figure 7 This is a schematic diagram of an interface for another method of moving a virtual object according to one embodiment of this application, such as... Figure 7 As shown, when the player holds weapon 3 in the "backpack" area with their right hand and tilts the phone to the right, the left-side backpack area, equipment area, and drop area will highlight sequentially, depending on the change in tilt angle α. The greater the tilt angle α, the more the rightward area will be highlighted. When the drop area is highlighted, the player releases their hand, and weapon 3 moves to the drop area. The position where weapon 3 was originally placed in the backpack area becomes empty, and a message "Weapon 3 has been dropped" is displayed on the game interface to indicate the result of weapon 3's movement.

[0053] Based on the above optional embodiments, by displaying prompt messages in the graphical user interface, the movement results of the target virtual object can be presented intuitively, further enhancing the player's gaming experience.

[0054] Optionally, the method for moving a virtual object in this application embodiment further includes: in response to a touch operation continuously contacting a first display area and the touch point of the touch operation sliding from the first display area to a second response area, moving the target virtual object to the second response area.

[0055] Specifically, when a player actually drags and moves a virtual object, this drag-and-drop action takes precedence over actions performed by pressing and holding with a finger in conjunction with the phone's gyroscope. For example, if the player continues to drag and drop an object after the first response area is highlighted, the latter action will take precedence. The second response area can be the same area as the first response area, or it can be a different area.

[0056] Optionally, in step S31, in response to a touch operation performed on the first display area, determining the target virtual object includes:

[0057] Step S311: In response to a touch operation performed on the first display area, obtain the touch position of the touch operation within the first display area;

[0058] Step S312: Determine the target virtual object corresponding to the touch position within the first display area, and display the target virtual object according to the second preset display style.

[0059] Specifically, after detecting the touch location where the player has long-pressed and dragged within the first display area, the system determines the corresponding target virtual object based on that touch location and displays the target virtual object according to a second preset display style. Displaying the target virtual object according to the second preset display style includes, but is not limited to, vibrating the target virtual object, changing its display state, or changing its display style; the specific actions are not limited.

[0060] Based on the above-described cool embodiment, by responding to the touch operation performed on the first display area, the touch position of the touch operation in the first display area is obtained, and then the target virtual object corresponding to the touch position is determined in the first display area. The target virtual object is then displayed according to the second preset display style, which can quickly determine the target virtual object to be moved.

[0061] Optionally, the tilt direction is determined by the direction to be operated on of the target virtual object.

[0062] Specifically, the tilt direction is consistent with the direction of the target virtual object to be operated on, and at least one candidate response area can be arranged horizontally or vertically in the graphical user interface. When the player wants to move the target virtual object to the left area, the tilt direction is to the left; when the player wants to move the target virtual object to the right area, the tilt direction is to the right; when the player wants to move the target virtual object to the upper area, the tilt direction is to the upper; and when the player wants to move the target virtual object to the lower area, the tilt direction is to the lower.

[0063] In this embodiment, by responding to a touch operation performed on the first display area, the initial tilt angle of the target virtual object and the terminal device is determined. Then, in response to a change in the tilt direction of the terminal device, the magnitude of the change in the initial tilt angle is obtained. Subsequently, based on the magnitude of the change, a first response area is selected from the second display area. Finally, in response to a touch operation leaving the first display area, the target virtual object is moved to the first response area. This allows for the mapping of real long-distance dragging operations by dragging the target virtual object and tilting the phone. This can improve the efficiency of operating and discarding backpack equipment when holding the phone with both hands or even with one hand, and further improve the accuracy of operation.

[0064] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0065] This embodiment also provides a device for moving virtual objects, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0066] Figure 8 This is a structural block diagram of a device for moving virtual objects according to one embodiment of this application. A graphical user interface is provided through a terminal device. The content displayed by the graphical user interface includes a first display area and a second display area, such as... Figure 8 As shown, the device for moving the virtual object includes:

[0067] The determining module 801 is used to respond to a touch operation performed on the first display area and determine the target virtual object to be operated and the initial tilt angle of the terminal device, wherein the first display area is used to provide at least one alternative virtual object associated with the virtual game character;

[0068] The acquisition module 802 is used to acquire the magnitude of the change in the initial tilt angle in response to a change in the tilt direction of the terminal device;

[0069] Selection module 803 is used to select a first response area from a second display area based on the magnitude of change, wherein the second display area is used to provide at least one candidate response area associated with at least one alternative virtual object;

[0070] The moving module 804 is used to move the target virtual object to the first response area in response to a touch operation leaving the first display area.

[0071] Optionally, the determining module 801 is further configured to determine the first tilt angle change range corresponding to the number of regions and the change amplitude of at least one candidate response region; the device for moving the virtual object further includes: a dividing module 805, configured to divide the first tilt angle change range based on the number of regions to obtain at least one candidate change interval corresponding to at least one candidate response region.

[0072] Optionally, the device for moving virtual objects further includes: a setting module 806 for setting a second tilt angle variation range, wherein the second tilt angle variation range is used to reject the determination of the first response area.

[0073] Optionally, the selection module 803 is further configured to: select a target change interval corresponding to the change amplitude from at least one candidate change interval; and determine a first response region based on the target change interval.

[0074] Optionally, the device for moving virtual objects further includes a display module 807, used to display the first response area in a graphical user interface according to a first preset display style.

[0075] Optionally, the display module 807 is also used to display a prompt message within the graphical user interface, wherein the prompt message is used to indicate the movement result of the target virtual object.

[0076] Optionally, the moving module 804 is further configured to move the target virtual object to the second response area in response to a touch operation continuously contacting the first display area and the touch point of the touch operation sliding from the first display area to the second response area.

[0077] Optionally, the determining module 801 is further configured to: respond to a touch operation performed on the first display area, obtain the touch position of the touch operation in the first display area; determine the target virtual object corresponding to the touch position in the first display area, and display the target virtual object according to a second preset display style.

[0078] Optionally, the tilt direction is determined by the direction to be operated on of the target virtual object.

[0079] Optionally, the first display area is used to display the virtual equipment area associated with the virtual game character, and the content displayed in the virtual equipment area includes: at least one virtual weapon or equipment currently equipped by the virtual game character.

[0080] Optionally, the content displayed in the second display area includes at least one of the following: a virtual backpack area associated with the virtual game character, a list of virtual items to be picked up within the activity range of the virtual game character, and a drop area for virtual weapons and equipment within the virtual equipment area.

[0081] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0082] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.

[0083] Optionally, in this embodiment, the computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0084] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.

[0085] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0086] S1, in response to a touch operation performed on the first display area, determine the target virtual object to be operated and the initial tilt angle of the terminal device, wherein the first display area is used to provide at least one alternative virtual object associated with the virtual game character;

[0087] S2, in response to a change in the tilt direction of the terminal device, obtain the magnitude of the initial tilt angle change;

[0088] S3, based on the magnitude of change, select a first response area from the second display area, wherein the second display area is used to provide at least one candidate response area associated with at least one alternative virtual object;

[0089] S4, in response to a touch operation leaving the first display area, moves the target virtual object to the first response area.

[0090] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: determining a first tilt angle variation range corresponding to the number of regions and the magnitude of the variation of at least one candidate response region; dividing the first tilt angle variation range based on the number of regions to obtain at least one candidate variation interval corresponding to at least one candidate response region.

[0091] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: setting a second tilt angle variation range, wherein the second tilt angle variation range is used to reject the determination of the first response region.

[0092] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: selecting a target change interval corresponding to the change magnitude from at least one candidate change interval; and determining a first response region based on the target change interval.

[0093] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: displaying a first response area within a graphical user interface according to a first preset display style.

[0094] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: displaying a prompt message within a graphical user interface, wherein the prompt message is used to indicate the movement result of the target virtual object.

[0095] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: moving a target virtual object to the second response area in response to a touch operation continuously contacting the first display area and the touch point of the touch operation sliding from the first display area to the second response area.

[0096] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: responding to a touch operation performed on a first display area, obtaining the touch position of the touch operation within the first display area; determining a target virtual object corresponding to the touch position within the first display area, and displaying the target virtual object according to a second preset display style.

[0097] Optionally, the tilt direction is determined by the direction to be operated on of the target virtual object.

[0098] Optionally, the first display area is used to display the virtual equipment area associated with the virtual game character, and the content displayed in the virtual equipment area includes: at least one virtual weapon or equipment currently equipped by the virtual game character.

[0099] Optionally, the content displayed in the second display area includes at least one of the following: a virtual backpack area associated with the virtual game character, a list of virtual items to be picked up within the activity range of the virtual game character, and a drop area for virtual weapons and equipment within the virtual equipment area.

[0100] In the computer-readable storage medium of this embodiment, by responding to a touch operation performed on a first display area, the initial tilt angle of the target virtual object to be operated and the terminal device is determined. Then, in response to a change in the tilt direction of the terminal device, the magnitude of the change in the initial tilt angle is obtained. Subsequently, based on the magnitude of the change, a first response area is selected from the second display area. Finally, in response to a touch operation leaving the first display area, the target virtual object is moved to the first response area. This achieves the purpose of quickly and conveniently moving game virtual objects in the game's graphical user interface, thereby improving the technical effect of operation accuracy when moving game virtual objects. This solves the technical problem of low operation accuracy when moving game virtual objects after reducing the interaction area in related technologies.

[0101] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this application.

[0102] In exemplary embodiments of this application, a computer-readable storage medium stores a program product capable of implementing the methods described above in this embodiment. In some possible implementations, various aspects of the embodiments of this application may also be implemented as a program product including program code, which, when the program product is run on a terminal device, causes the terminal device to perform the steps described in the "Exemplary Methods" section of this embodiment according to various exemplary embodiments of this application.

[0103] The program product for implementing the above-described method according to embodiments of this application may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the embodiments of this application is not limited thereto. In the embodiments of this application, the computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0104] The aforementioned program product may take the form of any combination of one or more computer-readable media. Such computer-readable storage media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples (not exhaustive) of computer-readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0105] It should be noted that the program code contained on the computer-readable storage medium can be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0106] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0107] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0108] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0109] S1, in response to a touch operation performed on the first display area, determine the target virtual object to be operated and the initial tilt angle of the terminal device, wherein the first display area is used to provide at least one alternative virtual object associated with the virtual game character;

[0110] S2, in response to a change in the tilt direction of the terminal device, obtain the magnitude of the initial tilt angle change;

[0111] S3, based on the magnitude of change, select a first response area from the second display area, wherein the second display area is used to provide at least one candidate response area associated with at least one alternative virtual object;

[0112] S4, in response to a touch operation leaving the first display area, moves the target virtual object to the first response area.

[0113] Optionally, the processor may also be configured to perform the following steps via a computer program: determining the first tilt angle variation range corresponding to the number and magnitude of at least one candidate response region; dividing the first tilt angle variation range based on the number of regions to obtain at least one candidate variation interval corresponding to at least one candidate response region.

[0114] Optionally, the processor may also be configured to perform the following steps via a computer program: setting a second tilt angle variation range, wherein the second tilt angle variation range is used to reject the determination of the first response region.

[0115] Optionally, the processor may also be configured to perform the following steps via a computer program: selecting a target change interval corresponding to the change magnitude from at least one candidate change interval; and determining a first response region based on the target change interval.

[0116] Optionally, the processor may also be configured to perform the following steps via a computer program: displaying a first response area within a graphical user interface according to a first preset display style.

[0117] Optionally, the processor may also be configured to perform the following steps via a computer program: displaying a prompt message within a graphical user interface, wherein the prompt message is used to indicate the movement result of the target virtual object.

[0118] Optionally, the processor may also be configured to perform the following steps via a computer program: in response to a touch operation continuously contacting the first display area and the touch point of the touch operation sliding from the first display area to the second response area, moving the target virtual object to the second response area.

[0119] Optionally, the processor may also be configured to perform the following steps via a computer program: responding to a touch operation performed on the first display area, obtaining the touch position of the touch operation in the first display area; determining the target virtual object corresponding to the touch position in the first display area, and displaying the target virtual object according to a second preset display style.

[0120] Optionally, the tilt direction is determined by the direction to be operated on of the target virtual object.

[0121] Optionally, the first display area is used to display the virtual equipment area associated with the virtual game character, and the content displayed in the virtual equipment area includes: at least one virtual weapon or equipment currently equipped by the virtual game character.

[0122] Optionally, the content displayed in the second display area includes at least one of the following: a virtual backpack area associated with the virtual game character, a list of virtual items to be picked up within the activity range of the virtual game character, and a drop area for virtual weapons and equipment within the virtual equipment area.

[0123] In the electronic device of this embodiment, by responding to a touch operation performed on the first display area, the initial tilt angle of the target virtual object to be operated and the terminal device is determined. Then, in response to a change in the tilt direction of the terminal device, the magnitude of the change in the initial tilt angle is obtained. Subsequently, based on the magnitude of the change, a first response area is selected from the second display area. Finally, in response to a touch operation leaving the first display area, the target virtual object is moved to the first response area. This achieves the purpose of quickly and conveniently moving game virtual objects in the game's graphical user interface, thereby improving the technical effect of operation accuracy when moving game virtual objects. This solves the technical problem of low operation accuracy when moving game virtual objects after reducing the interaction area in related technologies.

[0124] Figure 9 This is a schematic diagram of an electronic device according to an embodiment of this application. Figure 9 As shown, the electronic device 900 is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0125] like Figure 9 As shown, the electronic device 900 is presented in the form of a general-purpose computing device. The components of the electronic device 900 may include, but are not limited to: at least one processor 910, at least one memory 920, a bus 930 connecting different system components (including memory 920 and processor 910), and a display 940.

[0126] The memory 920 stores program code that can be executed by the processor 910, causing the processor 910 to perform the steps described in the method section of the embodiments of this application according to various exemplary implementations of this application.

[0127] The memory 920 may include a readable medium in the form of volatile memory cells, such as random access memory (RAM) 9201 and / or cache memory 9202, and may further include read-only memory (ROM) 9203, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.

[0128] In some instances, memory 920 may also include a program / utility 9204 having a set (at least one) of program modules 9205, including but not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Memory 920 may further include memory remotely located relative to processor 910, which can be connected to electronic device 900 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0129] Bus 930 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, peripheral bus, graphics acceleration port, processor 910, or a local bus using any of the various bus structures.

[0130] The display 940 may be, for example, a touchscreen liquid crystal display (LCD) that allows a user to interact with the user interface of the electronic device 900.

[0131] Optionally, the electronic device 900 can also communicate with one or more external devices 1000 (e.g., keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 900, and / or any device that enables the electronic device 900 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via the input / output (I / O) interface 950. Furthermore, the electronic device 900 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via the network adapter 960. Figure 9 As shown, network adapter 960 communicates with other modules of electronic device 900 via bus 930. It should be understood that, although... Figure 9 As not shown, other hardware and / or software modules may be used in conjunction with electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0132] The aforementioned electronic device 900 may also include: a keyboard, a cursor control device (such as a mouse), an input / output interface (I / O interface), a network interface, a power supply, and / or a camera.

[0133] Those skilled in the art will understand that Figure 9 The structure shown is for illustrative purposes only and does not limit the structure of the electronic device described above. For example, the electronic device 900 may also include components that are more... Figure 9 The more or fewer components shown, or having the same Figure 2 Different configurations are shown. The memory 920 can be used to store computer programs and corresponding data, such as the computer program and corresponding data corresponding to the method for moving virtual objects in this embodiment. The processor 910 executes various functional applications and data processing by running the computer program stored in the memory 920, thereby implementing the aforementioned method for moving virtual objects.

[0134] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0135] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0136] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0137] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0138] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0139] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0140] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for moving a virtual object, characterized in that, A graphical user interface is provided through a terminal device, wherein the content displayed by the graphical user interface includes a first display area and a second display area, and the method includes: In response to a touch operation performed on the first display area, the target virtual object to be operated and the initial tilt angle of the terminal device are determined, wherein the first display area is used to provide at least one alternative virtual object associated with the virtual game character; In response to a change in the tilt direction of the terminal device, the magnitude of the change in the initial tilt angle is obtained; Based on the magnitude of the change, a first response area is selected from the second display area, wherein the second display area is used to provide at least one candidate response area associated with the at least one alternative virtual object; In response to the touch operation leaving the first display area, the target virtual object is moved to the first response area.

2. The method according to claim 1, characterized in that, The method further includes: Determine the number of regions of the at least one candidate response region and the range of first tilt angle changes corresponding to the magnitude of change; The range of the first tilt angle change is divided based on the number of regions to obtain at least one candidate change interval corresponding to the at least one candidate response region.

3. The method according to claim 2, characterized in that, The method further includes: A second tilt angle variation range is set, wherein the second tilt angle variation range is used to reject the determination of the first response region.

4. The method according to claim 2, characterized in that, Selecting the first response area from the second display area based on the magnitude of the change includes: Select the target change interval corresponding to the change magnitude from the at least one candidate change interval; The first response region is determined based on the target change range.

5. The method according to claim 1, characterized in that, The method further includes: The first response area is displayed within the graphical user interface according to the first preset display style.

6. The method according to claim 1, characterized in that, The method further includes: A prompt message is displayed within the graphical user interface, wherein the prompt message is used to indicate the movement result of the target virtual object.

7. The method according to claim 1, characterized in that, In response to the touch operation performed on the first display area, determining the target virtual object includes: In response to the touch operation performed on the first display area, the touch position of the touch operation within the first display area is obtained; Within the first display area, the target virtual object corresponding to the touch position is determined, and the target virtual object is displayed according to the second preset display style.

8. The method according to claim 1, characterized in that, The tilt direction is determined by the direction to be operated on the target virtual object.

9. The method according to claim 1, characterized in that, The first display area is used to display the virtual equipment area associated with the virtual game character. The content displayed in the virtual equipment area includes at least one virtual weapon or equipment currently equipped by the virtual game character.

10. The method according to claim 1, characterized in that, The content displayed in the second display area includes at least one of the following: the virtual backpack area associated with the virtual game character, the list of virtual items to be picked up within the activity range of the virtual game character, and the discard area corresponding to virtual weapons and equipment within the virtual equipment area.

11. A device for moving virtual objects, characterized in that, A graphical user interface is provided through a terminal device, the content displayed by the graphical user interface including a first display area and a second display area, the device comprising: A determining module is used to respond to a touch operation performed on the first display area and determine the target virtual object to be operated and the initial tilt angle of the terminal device, wherein the first display area is used to provide at least one alternative virtual object associated with the virtual game character; The acquisition module is used to acquire the magnitude of the change in the initial tilt angle in response to a change in the tilt direction of the terminal device; The selection module is used to select a first response area from the second display area based on the change magnitude, wherein the second display area is used to provide at least one candidate response area associated with the at least one alternative virtual object; A movement module is used to move the target virtual object to the first response area in response to the touch operation leaving the first display area.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute, when run by a processor, the method for moving a virtual object as described in any one of claims 1 to 10.

13. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the method of moving a virtual object as described in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Method and device for processing information, storage medium and electronic equipment

    CN107913515A

  • Game display control method and device, electronic equipment and storage medium

    CN116099195A