Virtual character movement control method, device, electronic device and storage medium

By using thumbnail maps and cursor movement technology in real-time strategy games, the problem of virtual character movement destinations switching between different scenes is solved, improving user immersion and operation accuracy, and reducing fatigue caused by frequent operations. .

CN113694530BActive Publication Date: 2024-08-23NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111015668.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-31
Publication Date
2024-08-23
Estimated Expiration
2041-08-31

AI Technical Summary

Technical Problem

In real-time strategy games, users need to frequently switch game scenes to control virtual characters to move to destinations, which prevents users from being immersed in the game for a long time. Frequent operations also lead to physical fatigue and discomfort, reducing immersion.

Method used

Provides a virtual character movement control method. By selecting a virtual character on a touch terminal and dragging it to activate a thumbnail map, a cursor is generated and moves along the dragging trajectory. The cursor movement distance is reduced according to a preset ratio. When the drag is released The virtual character moves to the target position to avoid frequent scene switching and improve positioning accuracy and immersion.

Benefits of technology

Users can be immersed in a game scene for a long time, improving immersion and operation accuracy, reducing fatigue and discomfort caused by frequent operations, and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113694530B
    Figure CN113694530B
Patent Text Reader

Abstract

The present disclosure provides a virtual character movement control method, a virtual character movement control device, an electronic device and a computer-readable storage medium; and relates to the field of information technology. The virtual character movement control method is applied to a touch terminal presenting a graphical user interface, and the method comprises: in response to a user selecting one or more first virtual characters and dragging on the graphical user interface for a distance greater than a predetermined distance, activating a thumbnail map; generating a cursor corresponding to the current position of the first virtual character at a first position on the thumbnail map; in response to the user continuing to drag on the thumbnail map, causing the cursor to move from the first position along the user's dragging trajectory, wherein the moving distance of the cursor is reduced by a preset ratio relative to the length of the dragging trajectory; in response to the user releasing the drag when the cursor moves to a second position on the thumbnail map, causing one or more first virtual characters to move to a first target position corresponding to the second position. The present disclosure can improve the user's immersion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information technology, and in particular to a virtual character movement control method, a virtual character movement control device, an electronic device, and a computer-readable storage medium based on information technology. Background Art

[0002] With the development of information technology, more and more users are beginning to meet their personal entertainment needs through terminal devices such as smartphones that can install and run applications. How to ensure and enhance the user's immersion in the entertainment process is a problem that developers have been working hard to solve.

[0003] Taking the game program running on the touch terminal as an example, in real-time strategy (RTS) games, it is often necessary to frequently control various virtual characters to move to different destinations, and in many cases, the destination is often outside the field of vision of the game scene. At this time, the user needs to swipe on the screen of the touch terminal multiple times to find the corresponding destination, so that the user cannot have an immersive experience in a game scene for a long time, but needs to frequently and quickly operate to repeatedly switch game scenes, which can easily cause physical fatigue and discomfort to the user, greatly reducing the user's immersion.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of the embodiments of the present disclosure is to provide a virtual character movement control method, a virtual character movement control device, an electronic device and a computer-readable storage medium, thereby improving the user's immersion at least to a certain extent and reducing the user's fatigue.

[0006] According to one aspect of the present disclosure, a method for controlling movement of a virtual character is provided, which is applied to a touch terminal presenting a graphical user interface; the method comprises:

[0007] In response to a user selecting one or more first virtual characters and dragging on the graphical user interface for more than a predetermined distance, activating the thumbnail map;

[0008] generating a cursor corresponding to a current position of the one or more first virtual characters at a first position on the thumbnail map;

[0009] In response to the user continuing to drag on the thumbnail map, the cursor moves from the first position along the dragging trajectory of the user, wherein the moving distance of the cursor is reduced according to a preset ratio relative to the length of the dragging trajectory;

[0010] In response to the user releasing the drag when the cursor moves to a second position on the thumbnail map, the one or more first virtual characters move to a first target position corresponding to the second position.

[0011] In an exemplary embodiment of the present disclosure, the value of the preset ratio is positively correlated with the size of the thumbnail map.

[0012] In an exemplary embodiment of the present disclosure, the method further includes: generating at least one first control on the thumbnail map after the user releases the drag; and in response to the user touching one of the first controls, causing the one or more first virtual characters to perform corresponding actions after reaching the first target position.

[0013] In an exemplary embodiment of the present disclosure, the method further includes: generating a second control on the graphical user interface after the user releases the drag; and moving the one or more second virtual characters to the first target position in response to the user selecting one or more second virtual characters and pressing the second control.

[0014] In an exemplary embodiment of the present disclosure, the method also includes: generating a third control on the graphical user interface after the user releases the drag; activating the thumbnail map and displaying the cursor on the thumbnail map in response to the user touching the third control; and moving the one or more first virtual characters to a second target position corresponding to the third position in response to the user dragging the cursor and releasing the drag at a third position on the thumbnail map.

[0015] In an exemplary embodiment of the present disclosure, moving the one or more first virtual characters to a first target position corresponding to the second position includes: moving the one or more first virtual characters to the first target position in an automatic navigation manner; or moving the one or more first virtual characters to the first target position according to the dragging trajectory.

[0016] In an exemplary embodiment of the present disclosure, the method further includes: the method further includes: adjusting the transparency of the thumbnail map in response to a touch command of a user.

[0017] According to one aspect of the present disclosure, a virtual character movement control device is provided, which is applied to a touch terminal presenting a graphical user interface, and is characterized by comprising:

[0018] A map activation module, for activating a thumbnail map in response to a user selecting one or more first virtual characters and dragging them on the graphical user interface for a distance greater than a predetermined distance;

[0019] A processing module, configured to generate a cursor corresponding to the current position of the one or more first virtual characters at a first position on the thumbnail map; and in response to the user continuing to drag on the thumbnail map, move the cursor from the first position along a dragging trajectory of the user, wherein the moving distance of the cursor is reduced according to a preset ratio relative to the length of the dragging trajectory;

[0020] The movement control module is used to move the one or more first virtual characters to a first target position corresponding to the second position in response to the user releasing the drag when the cursor moves to the second position on the thumbnail map.

[0021] According to one aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform any one of the above-mentioned methods by executing the executable instructions.

[0022] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any one of the above methods is implemented.

[0023] The exemplary embodiments of the present disclosure may have some or all of the following beneficial effects:

[0024] In the virtual character movement control method provided in the example implementation of the present disclosure, on the one hand, by selecting a virtual character and dragging to activate the thumbnail map, the user does not need to leave the current game scene to find the moving destination, but can easily and quickly set the moving destination of the virtual character in the thumbnail map, so that the user can have a longer immersive experience in a game scene, thereby improving the user's immersion. On the other hand, by reducing the moving distance of the virtual character's position cursor proportionally to the length of the dragging track, the operation accuracy of positioning the moving destination can be improved, avoiding the possibility that the user still needs to switch the game scene to find the destination due to positioning deviation, thereby ensuring the user's immersive experience of the game. On the other hand, since the need to frequently and quickly operate to repeatedly switch game scenes is avoided, the physiological fatigue and discomfort caused to the user by the strobing of operations and scenes is at least reduced to a certain extent, which helps to improve the user's experience and immersion.

[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0027] Figure 1 The interface diagram schematically shows a method for controlling the movement of a virtual character according to the related art;

[0028] Figure 2 A flowchart of a method for controlling movement of a virtual character according to an embodiment of the present disclosure is schematically shown;

[0029] Figure 3 The following schematically shows an interface diagram for activating a thumbnail map according to an embodiment of the present disclosure;

[0030] Figure 4 An interface diagram schematically shows a process of moving a cursor on a thumbnail map according to an embodiment of the present disclosure;

[0031] Figure 5 A schematic diagram of a first control according to an embodiment of the present disclosure is shown;

[0032] Figure 6 A schematic diagram showing a second control and a third control according to an embodiment of the present disclosure is shown;

[0033] Figure 7 A schematic diagram of a dragging trajectory according to an embodiment of the present disclosure is shown;

[0034] Figure 8 A block diagram of a virtual character movement control device according to an embodiment of the present disclosure is schematically shown;

[0035] Fig. 9 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0036] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0037] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0038] In the related technologies related to the movement control of virtual characters, such as Figure 1As shown, for example, in a real-time strategy (RTS) game running on a touch terminal, when it is necessary to control the movement of one's own virtual character, the user needs to select one or more of his own virtual characters 101 in the game scene, and then set the movement destination or select the enemy virtual character 102 that needs to perform an action in the same game scene by touching; in response to the user's touch command, the own virtual character 101 will move toward the set movement destination or enemy virtual character 102. However, when the movement destination or enemy virtual character 102 is located in another scene different from the current game scene, that is, outside the field of view of the current game scene, the user needs to drag on the screen to control the camera to move in order to find the desired movement destination or enemy virtual character. Since games often involve controlling the movement of large numbers and batches of virtual characters, the above-mentioned movement control method causes users to often need to frequently and quickly drag the game scenes back and forth, and sometimes even need to swipe on the screen multiple times to find a destination for a movement. As a result, users are unable to experience immersion in a game scene for a long time, but instead have to frequently and quickly operate to repeatedly switch game scenes. The high operational load and the flickering screen caused by repeated switching of game scenes can easily cause physical fatigue and discomfort to users, seriously affecting the user's immersion.

[0039] The technical solution of the embodiment of the present disclosure is described in detail below:

[0040] This exemplary embodiment provides a method for controlling the movement of a virtual character, which is applied to a touch terminal that presents a graphical user interface. Figure 2 As shown, the virtual character movement control method may include the following steps:

[0041] Step S210. In response to the user selecting one or more first virtual characters and dragging them on the graphical user interface for a distance greater than a predetermined distance, activating the thumbnail map;

[0042] Step S220. Generate a cursor corresponding to the current position of the one or more first virtual characters at a first position on the thumbnail map;

[0043] Step S230. In response to the user continuing to drag on the thumbnail map, the cursor moves from the first position along the dragging trajectory of the user, wherein the moving distance of the cursor is reduced according to a preset ratio relative to the length of the dragging trajectory;

[0044] Step S240: In response to the user releasing the drag when the cursor moves to a second position on the thumbnail map, the one or more first virtual characters move to a first target position corresponding to the second position.

[0045] In the virtual character movement control method provided in the example implementation of the present disclosure, on the one hand, by selecting a virtual character and dragging to activate the thumbnail map, the user does not need to leave the current game scene to find the moving destination, but can easily and quickly set the moving destination of the virtual character in the thumbnail map, so that the user can have a longer immersive experience in a game scene, thereby improving the user's immersion. On the other hand, by reducing the moving distance of the virtual character's position cursor proportionally to the length of the dragging track, the operation accuracy of positioning the moving destination can be improved, avoiding the possibility that the user still needs to switch the game scene to find the destination due to positioning deviation, thereby ensuring the user's immersive experience of the game. On the other hand, since the need to frequently and quickly operate to repeatedly switch game scenes is avoided, the physiological fatigue and discomfort caused to the user by the strobing of operations and scenes is at least reduced to a certain extent, which helps to improve the user's experience and immersion.

[0046] Next, in another embodiment, the above steps are described in more detail.

[0047] In step S210 , in response to the user selecting one or more first virtual characters and dragging them on the graphical user interface for a distance greater than a predetermined distance, the thumbnail map is activated.

[0048] In this example implementation, if Figure 3 As shown, when it is necessary to control the movement of the virtual character, the user can select one or more first virtual characters 301 to be moved on the game interface, such as four armored infantrymen 301, and can drag the four armored infantrymen 301 in a touch manner in the selected state; when the touch terminal detects that the dragging distance L of the user on the graphical user interface is greater than the predetermined distance, the thumbnail map 302 can be activated. Among them, in real-time strategy games, a "small map" that schematically displays the overall map situation is often displayed on the game interface, and the thumbnail map 302 can be, for example, a map view that enlarges the small map and more clearly displays the details of the overall map, and can be rendered on the top layer of the game layer; and the predetermined distance can be, for example, a length of 200 pixels, and can be set to other lengths according to actual conditions or the size of the touch screen of the touch terminal, or can be set in advance by the user, and this exemplary embodiment does not specifically limit this.

[0049] In one example, when the thumbnail map 302 is activated, the position where the thumbnail map 302 is displayed can be determined according to the position where the user's finger is pressed in real time. Figure 3As shown, for example, the user selects 4 armored infantrymen 301 and drags them to the upper right. When the touch terminal detects that the drag distance L is greater than 200 pixels, the thumbnail map 302 is activated, and the rendering of the small map can be stopped, for example. When activating the thumbnail map, the touch terminal can detect the coordinates of the position of the touch screen being pressed by the user's finger, and according to the coordinates, the position of the thumbnail map 302 is set so that the thumbnail map is located near the upper right corner of the game interface as a whole, and the position where the user's finger is pressed in real time is near the left edge of the thumbnail map 302. In addition, for example, when the user selects one or more first virtual characters and drags downward for a length greater than 200 pixels, the position of the thumbnail map 302 can be set so that the lower edge of the thumbnail map is aligned with the lower edge of the game interface, and the position where the user's finger is pressed in real time is near the upper edge or near the center of the thumbnail map 302. In addition, the position of the thumbnail map can be adaptively adjusted according to the size of the touch screen or actual needs, and this exemplary embodiment is not particularly limited to this.

[0050] In step S220, a cursor corresponding to the current position of the one or more first virtual characters is generated at a first position on the thumbnail map.

[0051] In this example implementation, if Figure 3 As shown, for example, a cursor 303 can be generated at or near the position where the user's finger is pressed in real time on the thumbnail map 302, so that the first position of the cursor 303 on the thumbnail map 302 corresponds to the current position of one or more first virtual characters 301 in the overall game scene. The cursor 303 plays the role of indicating the current position of one or more first virtual characters 301 selected by the user in real time. Through the cursor 303, the user can understand the relative position of the selected virtual character in the overall game scene in real time, so as to perform subsequent operations. The cursor 303 can be rendered as a mark with a specific geometric shape, such as a circle, a triangle, a cross, a sword, etc., or a mark with a specific animation effect, such as flashing, emitting ripples, etc. The cursor 303 can also have a pointing portion that can indicate the real-time moving direction of the moving virtual character, which is not particularly limited in this example embodiment.

[0052] In step S230, in response to the user continuing to drag on the thumbnail map, the cursor moves from the first position along the dragging trajectory of the user, wherein the moving distance of the cursor is reduced according to a preset ratio relative to the length of the dragging trajectory.

[0053] In the present exemplary embodiment, after activating the thumbnail map and generating the corresponding cursor, the user can continue to drag within the area of the thumbnail map without lifting the pressed finger, that is, without releasing the drag. When the drag action of the user is detected, the touch terminal can move the cursor along the drag trajectory of the user's finger. As Figure 4 shown, the initial position where the cursor 403 is located when generated is, for example, the first position near the lower left corner of the thumbnail map 402. When the drag action of the user's finger towards the upper right is detected, the touch terminal can cause the cursor 403 to move in the same direction along the drag trajectory of the finger in response to the drag action of the user's finger. In the example as Figure 4 shown, the length of the drag trajectory of the finger is, for example, l1, and the distance that the cursor 403 moves correspondingly along the drag trajectory is, for example, l2, where l1 and l2 can satisfy:

[0054] l2 = a × l1;

[0055] where a is a preset scale factor, and the value range of a can, for example, satisfy 0 < a < 1. That is to say, the moving distance l2 of the cursor 403 relative to the length l1 of the drag trajectory can be reduced according to a preset ratio. Since the thumbnail map 402 often does not occupy the entire graphical user interface but only occupies a part of the graphical user interface, if the user's finger drags a length of l1 on the thumbnail map and the cursor also moves a length of l1 accordingly, especially in some cases where a short-distance movement is required, it may cause the cursor to "fluctuate" back and forth near the target point, making it impossible to perform precise positioning. By setting the preset scale factor with a value less than 1 in the above way, this "fluctuation" phenomenon can be effectively suppressed, enabling the user to locate the desired target point faster and more accurately, avoiding the possibility that the user still needs to switch the game scene to find the destination due to positioning deviation, thus ensuring the user's immersion.

[0056] In one example, the value of the preset ratio, that is, the value of the scale factor a, can be positively correlated with the size of the thumbnail map. For example, when the size of the thumbnail map 402 occupies 1 / 5 of the game interface, the value of the scale factor a can be set to 0.5, for example; and when the size of the thumbnail map 402 occupies 1 / 3 of the game interface, for example, the value of the scale factor a can be set to 0.8, for example. In other words, the size of the game interface is fixed and unchanged. When the size of the thumbnail map 402 occupies a larger proportion relative to the size of the game interface, the value of the scale factor a can be larger, for example, that is, the moving distance l2 of the cursor 403 is closer to the length l1 of the dragging trajectory. In this way, the value of the preset ratio can be flexibly adjusted according to the actual size of the thumbnail map in the game, so that while ensuring the precise positioning of the cursor, the phenomenon that the cursor movement lags behind the finger dragging and is slow can be reduced to a certain extent, thereby improving the user's hand experience and ensuring the user's immersion.

[0057] In step S240, in response to the user releasing the drag when the cursor moves to the second position on the thumbnail map, the one or more first virtual characters move to a first target position corresponding to the second position.

[0058] In this example implementation, if Figure 4 As shown, when the cursor 403 moves along the dragging track of the finger from the first position near the lower left corner of the thumbnail map 402 to the second position near the center of the thumbnail map 402, if the touch terminal detects that the user lifts the finger at this time, that is, the user ends and releases the drag, the touch terminal can set the first target position in the overall game scene corresponding to the second position as the moving destination, and control one or more first virtual characters selected by the user to move to the first target position. In this way, the user can quickly set the first target position in the overall game scene as the moving destination without having to leave the current game scene and repeatedly drag and switch game scenes to find the destination, thereby ensuring the user's immersive experience in the game.

[0059] In one example, after detecting that the user releases the drag, the touch terminal may generate at least one first control near the position where the user releases the drag on the thumbnail map, that is, the position where the user's finger is lifted. Figure 5In the example shown, for example, three first controls 504 can be generated near the position where the user releases the drag. The first controls can be implemented as virtual buttons with action prompt texts. For example, the three first controls 504 shown in the figure can have prompt texts of "attack", "patrol", and "garrison", respectively. The user can choose to touch one of the first controls as needed to issue an action instruction command to the first virtual character, so that the first virtual character performs the corresponding action after completing the movement. In real-time strategy games, users control virtual characters and often not only need the virtual characters to move, but also want the virtual characters to move in order to perform game-related actions, such as attacking the enemy after arriving at the destination, performing patrol tasks nearby after arriving at the destination to search for signs of the opponent's activities, etc. Therefore, in real-time strategy games such as Figure 5 In the example shown, after the user has finished dragging to set the moving destination of the virtual character, the user can touch one of the three generated first controls 504, for example, can touch "Attack", so that the selected four first virtual characters 501, after arriving at the moving destination, immediately respond to the "Attack" command issued in advance by the user and automatically execute an attack action on the nearby enemy virtual characters.

[0060] Through the above example, after the user sets the moving destination for the selected virtual character with the help of the thumbnail map 502, the action instruction after the move can be issued immediately, so that there is no need to pay attention to the progress of the virtual character's movement all the time, and there is no need to switch to the game scene where the virtual character is located to issue action instructions after the virtual character moves to the destination, thereby ensuring the user's coherent immersive experience in the current game interface, which helps to further improve the user's immersion. The first control in this example can set the number of generated and the corresponding action instructions according to actual needs, and this example implementation does not specifically limit this.

[0061] In one example, if Figure 6As shown, after detecting that the user releases the drag, that is, after completing the setting of the moving destination of the first virtual character, the touch terminal can, for example, generate a second control 606 on the graphical user interface of the game, and the second control 606 can be implemented in the form of a virtual button, and can, for example, carry a command prompt text such as "repeat movement". In real-time strategy games, users often encounter situations where different virtual characters need to be moved to a destination in batches, such as sending different troops that arrive at the battlefield one after another to attack the enemy base one after another. At this time, although the control method of selecting a virtual character - dragging to activate the thumbnail map - releasing the drag to set the destination can also quickly set the moving destination for the subsequent virtual character, in addition to the large amount of operation, the moving destinations set twice before and after may be different due to possible operation errors, resulting in deviations in the virtual character's execution of the user's instructions, affecting the user experience. In this case, the touch terminal can cache the destination (first target position) of the previous movement performed through the thumbnail map 602, and render and provide a second control 606 associated with the destination, and the user can select one or more second virtual characters 605, for example, three knights 605 in this example, and touch the second control 606 to issue a "repeat movement" instruction according to the prompt text. After detecting the "repeat movement" instruction, the touch terminal can control the three knights 605 to move to the destination of the previous movement, that is, the first target position.

[0062] Through the above examples, the user's operating load in the game can be further reduced, so that when the user needs to issue movement instructions to different batches of virtual characters, there is no need to repeatedly activate the thumbnail map operation, but the user can simply move different virtual characters to the same destination, thereby reducing the user's fatigue caused by the operating load and helping to improve the immersion of the game.

[0063] In one example, if Figure 6As shown, after detecting that the user releases the drag, that is, after completing the setting of the moving destination of the first virtual character, the touch terminal can, for example, generate a third control 607 on the graphical user interface of the game. The third control 607 can, for example, be implemented in the form of a virtual button, and can, for example, carry a virtual character indicator such as "first formation". In real-time strategy games, due to the rapid changes in the game process in real time, users often encounter situations where they need to temporarily adjust the virtual character movement instructions that have been issued; or, due to rapid operations, users sometimes encounter situations where they fail to set the destination at the desired location due to erroneous operations. In the above case, for example, the user has completed setting the moving destination for the first virtual character belonging to the first batch, and the user can touch the third control 607 according to the virtual character indicator on the third control 607, such as "first formation" corresponding to the first batch. In response to the user's touch action, the touch terminal can, for example, activate the thumbnail map 602 and display a cursor 603 on the thumbnail map 602 to indicate the real-time position of the first virtual character; in the example Figure 6 In the example shown, according to the position of the cursor 603, the real-time position of the first virtual character is, for example, located near the center of the thumbnail map 602. At this time, the user can touch and drag the cursor 603 to select a new destination for the first virtual character. Figure 6 In the example shown, the user can, for example, drag the cursor 603 from the current position near the center of the thumbnail map 602 to a third position near the right edge of the thumbnail map 602, and lift the finger to release the drag; when it is detected that the user has released the drag, the touch terminal can, for example, set the position in the overall game scene corresponding to the third position as the second target position, and use the second target position to replace the first target position of the first virtual character and immediately control the first virtual character to move toward the second target position.

[0064] Through the above example, the user can easily and quickly activate the thumbnail map and adjust the moving destination of the virtual character by dragging the cursor; in this way, when the moving destination needs to be temporarily adjusted or the user makes an error operation, the user does not need to drag the game scene to find the moving virtual character, but can directly change the moving destination on the thumbnail map, which improves the user's operating efficiency and reduces the user's operating load, thereby reducing the user's fatigue caused by the operating load and helping to improve the immersion of the game.

[0065] In addition, in the above example, the number of generated third controls 607 can be preset, for example, up to 3 third controls 607 are generated, and after the number of third controls reaches the maximum value, the earliest generated third control 607 can be removed when a new third control 607 is generated. In addition, for example, the third control 607 currently displayed on the user graphical interface can be removed in response to the user's operation; for example, the user can touch a third control 607 and drag the third control toward the outside of the graphical user interface. In response to the above operation of the user, the touch terminal can stop rendering the third control and remove the map information associated with the third control from the cache. The maximum number of third controls and the removal operation can be set according to actual conditions and needs, and this example does not specifically limit this.

[0066] In one example, if Figure 7 As shown, when the user's finger is dragged on the thumbnail map, the dragging track 708 or 709 of the user's finger can be displayed in real time on the thumbnail map 702. Of course, according to actual needs, the dragging track 708 or 709 may not be displayed. After the user releases the drag to set a moving destination for the first virtual character 701, the touch terminal can control the first virtual character 701 to move toward the moving destination in the following two ways, for example.

[0067] The first method may be: the moving route of the first virtual character 701 is independent of the dragging trajectory 708 of the user's finger. For example, the user may drag the thumbnail map 702 from the starting position near the left edge of the thumbnail map along a straight line to the end position near the right edge of the thumbnail map; after the user releases the drag, the touch terminal may, for example, only record the end position, and set the position in the overall game scene corresponding to the end position as the moving destination of the first virtual character 701. Afterwards, the touch terminal may, for example, calculate the moving route of the first virtual character 701 by means of an obstacle avoidance path finding algorithm such as A*, and make the first virtual character 701 move toward the moving destination along the shortest moving route while avoiding obstacles in the overall game scene. The moving route is calculated by the touch terminal according to the overall game scene and is independent of the dragging trajectory 708 of the user's finger. In addition to the above-mentioned A* algorithm, for example, the moving route of the first virtual character 701 may also be calculated by a path finding algorithm such as an artificial potential field algorithm and an ant colony algorithm, which is not particularly limited in this example.

[0068] The second method may be: during the dragging process of the user's finger, the touch terminal may record the dragging trajectory 709 of the user's finger in real time, and in a possible implementation method, the touch terminal may record the dragging trajectory 709 as a plurality of path nodes 710, Figure 7The dragging track 709 formed by connecting a plurality of path nodes 710 to each other is exemplarily shown. After the user drags along the dragging track 709 from the starting position to the end position and releases the dragging, the touch terminal can also record the end position and set the position in the overall game scene corresponding to the end position as the moving destination of the first virtual character 701. Afterwards, the touch terminal can control the first virtual character 701 to move along the dragging track 709, that is, to move toward the moving destination in a manner of moving from one path node 710 to the next path node 710.

[0069] In the above manner, when the user needs to set the movement route of the virtual character by himself, for example, when he needs to avoid enemy units on the way, he can simply manually draw the movement route of the virtual character by dragging the track on the thumbnail map, so as to make the virtual character move along the drawn movement route. When there is no need to specifically specify the movement route of the virtual character, the movement route can also be calculated by the touch terminal itself. In this way, it is possible to determine the movement route of the virtual character according to actual needs, so that the user does not need to frequently operate in the game scene to set the movement route of the virtual character at different stages, thereby further reducing the user's operation load and enabling the user to immerse himself in the current game scene for a longer time, thereby helping to reduce user fatigue and enhance user immersion.

[0070] In one example, the touch terminal can adjust the transparency of the thumbnail map according to the user's touch command. Since the touch map will occupy a part of the graphical user interface when it is activated, a part of the game interface will be blocked, which may cause the user to be unable to observe the game interface normally during a fast-paced game. Figure 7 As shown, the touch terminal may, for example, provide a virtual adjustment slider 711 for the transparency of the thumbnail map 702 on the graphical user interface. The user may touch and drag the virtual adjustment slider 711 to select the appropriate transparency of the thumbnail map 702 as required. In response to the user's touch command, the touch terminal may adjust the rendering parameters to increase or decrease the transparency of the thumbnail map 702 according to the user's touch command, so that the user can observe the game interface blocked by the thumbnail map 702.

[0071] Through the above examples, users can flexibly adjust the transparency of thumbnail maps according to their own needs, thereby reducing the impact of the occlusion effect of thumbnail maps on the user's field of view to at least a certain extent, thereby providing users with a good experience.

[0072] It should be noted that although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0073] Furthermore, in this exemplary embodiment, a virtual character movement control device is also provided, and the virtual character movement control device can be applied to a touch terminal that presents a graphical user interface. Figure 8 As shown, the virtual character movement control device 800 may include a map activation module 810, a processing module 820, and a movement control module 830, wherein:

[0074] The map activation module 810 may be used to activate the thumbnail map in response to the user selecting one or more first virtual characters and dragging them on the graphical user interface for more than a predetermined distance;

[0075] The processing module 820 may be configured to generate a cursor corresponding to the current position of the one or more first virtual characters at a first position on the thumbnail map; and in response to the user continuing to drag on the thumbnail map, move the cursor from the first position along a dragging trajectory of the user, wherein the moving distance of the cursor is reduced according to a preset ratio relative to the length of the dragging trajectory;

[0076] The movement control module 830 may be configured to move the one or more first virtual characters to a first target position corresponding to the second position in response to the user releasing the drag when the cursor moves to the second position on the thumbnail map.

[0077] In an exemplary embodiment of the present disclosure, the value of the preset ratio is positively correlated with the size of the thumbnail map.

[0078] In an exemplary embodiment of the present disclosure, the processing module 820 can also be used to generate at least one first control on the thumbnail map after the user releases the drag; the movement control module 830 can also be used to respond to the user touching one of the first controls, so that the one or more first virtual characters perform corresponding actions after reaching the first target position.

[0079] In an exemplary embodiment of the present disclosure, the processing module 820 can also be used to generate a second control on the graphical user interface after the user releases the drag; the movement control module 830 can also be used to move the one or more second virtual characters to the first target position in response to the user selecting one or more second virtual characters and touching the second control.

[0080] In an exemplary embodiment of the present disclosure, the processing module 820 can also be used to generate a third control on the graphical user interface after the user releases the drag; the map activation module 810 can also be used to activate the thumbnail map and display the cursor on the thumbnail map in response to the user touching the third control; the movement control module 830 can also be used to move the one or more first virtual characters to a second target position corresponding to the third position in response to the user dragging the cursor and releasing the drag at a third position on the thumbnail map.

[0081] In an exemplary embodiment of the present disclosure, the movement control module 830 may also be used to enable the one or more first virtual characters to move to the first target position in an automatic navigation manner; or to enable the one or more first virtual characters to move to the first target position according to the dragging trajectory.

[0082] In an exemplary embodiment of the present disclosure, the map activation module 810 may also be configured to adjust the transparency of the thumbnail map in response to a touch command of the user.

[0083] The specific details of each module or unit in the above-mentioned virtual character movement control device have been described in detail in the corresponding virtual character movement control method, so they will not be repeated here.

[0084] Fig. 9 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present disclosure is shown.

[0085] It should be noted that Fig. 9 The computer system 900 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0086] like Fig. 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for system operation are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0087] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT) display, a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.

[0088] In particular, according to an embodiment of the present disclosure, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 909, and / or installed from a removable medium 911. When the computer program is executed by a central processing unit (CPU) 901, various functions defined in the method and apparatus of the present application are executed.

[0089] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

[0090] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0091] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0092] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for controlling the movement of a virtual character, applied to a touch terminal presenting a graphical user interface, It is characterized in that include: In response to a user selecting one or more first virtual characters and dragging on the graphical user interface for more than a predetermined distance, activating the thumbnail map; generating a cursor corresponding to a current position of the one or more first virtual characters at a first position on the thumbnail map; In response to the user continuing to drag on the thumbnail map, the cursor moves from the first position along the dragging trajectory of the user, wherein the moving distance of the cursor is reduced according to a preset ratio relative to the length of the dragging trajectory; In response to the user releasing the drag when the cursor moves to a second position on the thumbnail map, the one or more first virtual characters move to a first target position corresponding to the second position.

2. The virtual character movement control method according to claim 1, It is characterized in that The value of the preset ratio is positively correlated with the ratio of the size of the thumbnail map to the game interface.

3. The virtual character movement control method according to claim 1, It is characterized in that The method further comprises: After the user releases the dragging, generating at least one first control on the thumbnail map; In response to the user touching one of the first controls, the one or more first virtual characters perform corresponding actions after reaching the first target position.

4. The virtual character movement control method according to claim 1, It is characterized in that The method further comprises: After the user releases the dragging, generating a second control on the graphical user interface; In response to the user selecting one or more second virtual characters and pressing the second control, the one or more second virtual characters are moved to the first target position.

5. The virtual character movement control method according to claim 1, It is characterized in that The method further comprises: After the user releases the dragging, generating a third control on the graphical user interface; In response to a user pressing the third control, activating the thumbnail map and displaying the cursor on the thumbnail map; In response to the user dragging the cursor and releasing the drag at a third position on the thumbnail map, the one or more first virtual characters are moved to a second target position corresponding to the third position.

6. The virtual character movement control method according to claim 1, It is characterized in that The step of moving the one or more first virtual characters to a first target position corresponding to the second position comprises: enabling the one or more first virtual characters to move to the first target location in an automatic path-finding manner; or The one or more first virtual characters are moved to the first target position according to the dragging trajectory.

7. The method for controlling movement of a virtual character according to any one of claims 1 to 6, It is characterized in that The method further comprises: In response to a user's touch command, the transparency of the thumbnail map is adjusted.

8. A virtual character movement control device, applied to a touch terminal presenting a graphical user interface, It is characterized in that include: A map activation module, for activating a thumbnail map in response to a user selecting one or more first virtual characters and dragging them on the graphical user interface for a distance greater than a predetermined distance; A processing module, configured to generate a cursor corresponding to a current position of the one or more first virtual characters at a first position on the thumbnail map; and in response to the user continuing to drag on the thumbnail map, causing the cursor to move from the first position along the dragging trajectory of the user, wherein the moving distance of the cursor is reduced according to a preset ratio relative to the length of the dragging trajectory; The movement control module is used to move the one or more first virtual characters to a first target position corresponding to the second position in response to the user releasing the drag when the cursor moves to the second position on the thumbnail map.

9. An electronic device, It is characterized in that include: Memory; as well as A processor coupled to the memory, the processor being configured to execute the virtual character movement control method according to any one of claims 1 to 7 based on instructions stored in the memory.

10. A computer-readable storage medium having a program stored thereon, wherein when the program is executed by a processor, the method for controlling movement of a virtual character as claimed in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Man-machine interaction method and device and electronic device

    CN109976650A

  • Method and device for processing virtual object in game and electronic equipment

    CN112535866A

  • Game operation method and device, terminal and storage medium

    CN113082718A

  • Device and method to control game where characters are moved on map

    US20090247300A1

  • Virtual object control method, device, computer apparatus, and storage medium

    WO2019153824A1