Game object movement control method, device and electronic device
By introducing virtual moving controls and automatic movement functions in the game, the problem of virtual objects being touched all the time is solved, and fast and intelligent automatic movement is achieved, reducing the operating burden of players and improving the gaming experience.
Patent Information
- Application Number
- CN202011599449.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-29
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2040-12-29
AI Technical Summary
The movement of virtual objects in existing games requires touching the moving roulette all the time, which makes players cumbersome to operate and unable to perform other operations at the same time, which increases the operating burden and affects the game experience.
By introducing virtual moving controls into the graphical user interface, it is determined whether to enter the automatic moving state in response to the end position of the drag operation, and the target position is determined based on the end position, so as to realize automatic movement of the virtual object.
Reduces the player's operation burden, allows other operations to be performed while controlling the automatic movement of virtual objects, and improves the gaming experience.
Smart Images

Figure CN112619124B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of human-computer interaction technology, and in particular to a method, device and electronic equipment for controlling the movement of a game object. Background Art
[0002] At present, a virtual moving wheel is usually provided in the game screen. The movement function of the virtual object can only be realized by constantly touching the moving wheel. If the touching of the moving wheel is stopped, the virtual object will also stop moving, resulting in the player being unable to perform other operations and control the movement of the virtual object at the same time. This restricts the player's operation and increases the player's operation burden, affecting the game experience. Summary of the invention
[0003] In view of this, an object of the present invention is to provide a method, device and electronic device for controlling the movement of a game object, which can effectively reduce the operating burden of the player and thus improve the gaming experience.
[0004] In a first aspect, an embodiment of the present invention provides a method for controlling the movement of a game object, which is applied to a touch terminal, wherein a game screen is displayed on a graphical user interface of the touch terminal, wherein the game screen at least partially includes a game scene of the game, wherein the game scene includes at least one virtual object, and the graphical user interface also includes a virtual mobile control. The method comprises: responding to a first drag operation on the mobile control, controlling a first virtual object to move in the game scene; responding to the end of the first drag operation, judging whether to control the first virtual object to enter an automatic movement state according to an end position at the end of the first drag operation; if so, determining a target position of the first virtual object according to the end position, and controlling the first virtual object to automatically move to the target position.
[0005] In one embodiment, the graphical user interface also includes an avatar area of a second virtual object, and the second virtual object is a teammate and / or enemy of the first virtual object; the step of determining whether to control the first virtual object to enter an automatic movement state based on the end position at the end of the first drag operation includes: determining whether the end position at the end of the first drag operation is located in the avatar area; if so, determining to control the first virtual object to enter an automatic movement state.
[0006] In one embodiment, the method further includes: if the touch point moves to the avatar area during the first drag operation, controlling the avatar area to perform a specified response.
[0007] In one embodiment, the step of determining the target position of the first virtual object according to the end position includes: determining the position of the second virtual object corresponding to the avatar area where the end position is located in the game scene as the target position of the first virtual object.
[0008] In one embodiment, the method further includes: if the first virtual object moves to the target position and the second virtual object is a teammate of the first virtual object, controlling the first virtual object to follow the second virtual object corresponding to the avatar area at the end position.
[0009] In one embodiment, the graphical user interface also includes a map area of a first preset size; the step of determining whether to control the first virtual object to enter an automatic movement state based on the end position at the end of the first drag operation includes: determining whether the end position at the end of the first drag operation is located in the map area; if so, determining to control the first virtual object to enter an automatic movement state.
[0010] In one embodiment, before the step of determining whether to control the first virtual object to enter an automatic movement state based on the end position at the end of the first drag operation, the method further includes: if the touch point moves to the map area of the first preset size during the first drag operation, determining whether the duration for which the touch point is located in the map area of the first preset size meets a preset time condition; if so, setting the map area of the first preset size to a map area of a second preset size; wherein the second preset size is larger than the first preset size.
[0011] In one embodiment, the method further includes: when the first drag operation ends, controlling the map area of the second preset size to restore the map area of the first preset size.
[0012] In one embodiment, the step of determining the target position of the first virtual object based on the end position includes: determining a scene position in the game scene corresponding to the end position based on the map area, and determining the scene position as the target position of the first virtual object.
[0013] In one embodiment, the step of controlling the first virtual object to automatically move to the target position includes: calculating a movement path of the first virtual object for automatic movement according to the current position of the first virtual object and the target position; and controlling the first virtual object to automatically move to the target position according to the movement path.
[0014] In one embodiment, the method further includes: displaying the moving path through a map area; and / or displaying a thumbnail path corresponding to the moving path through a map area.
[0015] In one embodiment, the method further includes: in response to a second drag operation on the mobile control, controlling the first virtual object to exit the automatic movement state.
[0016] In a second aspect, an embodiment of the present invention further provides a control device for the movement of a game object, which is applied to a touch terminal, wherein a game screen is displayed on a graphical user interface of the touch terminal, wherein the game screen at least partially includes a game scene of the game, wherein the game scene includes at least one virtual object, and the graphical user interface also includes a virtual movement control, wherein the device includes: a first movement module, which is used to respond to a first drag operation on the movement control and control the movement of a first virtual object in the game scene; a judgment module, which is used to respond to the end of the first drag operation and judge whether to control the first virtual object to enter an automatic movement state according to the end position at the end of the first drag operation; and a second movement module, which is used to determine the target position of the first virtual object according to the end position when the judgment result of the judgment module is yes, and control the first virtual object to automatically move to the target position.
[0017] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor and a memory; a computer program is stored in the memory, and when the computer program is executed by the processor, the method described in any one of the first aspects is executed.
[0018] In a fourth aspect, an embodiment of the present invention further provides a computer storage medium for storing computer software instructions used for any of the methods provided in the first aspect.
[0019] The embodiments of the present invention provide a method, device and electronic device for controlling the movement of a game object. The method can respond to a first drag operation on a mobile control, control the movement of a first virtual object in a game scene, and at the end of the first drag operation, if the first virtual object is controlled to enter an automatic movement state based on the end position at the end of the first drag operation, the target position of the first virtual object is determined based on the end position, and the first virtual object is controlled to automatically move to the target position. The above method can determine whether to control the first virtual object to enter an automatic movement state based on the end position of the mobile control at the end of the first drag, so that the first virtual object can automatically move to the moving position. Compared with the prior art, which cannot perform other operations while controlling the movement of the first virtual object, the embodiments of the present invention use the above method to achieve fast and intelligent automatic movement, and can perform other operations during the process of controlling the automatic movement of the first virtual object, reducing the player's operating burden, thereby effectively improving the game experience.
[0020] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0021] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 A flowchart of a method for controlling the movement of a game object provided by an embodiment of the present invention;
[0024] Figure 2 A schematic diagram of a game screen provided by an embodiment of the present invention;
[0025] Figure 3 A schematic diagram of another game screen provided by an embodiment of the present invention;
[0026] Figure 4 A schematic diagram of another game screen provided by an embodiment of the present invention;
[0027] Figure 5A schematic diagram of another game screen provided by an embodiment of the present invention;
[0028] Figure 6 A schematic diagram of the structure of a control device for moving a game object provided by an embodiment of the present invention;
[0029] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described in combination with the embodiments below. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] At present, the movement function can only be realized by constantly touching the virtual moving wheel in the game screen. If the finger leaves the moving wheel, the virtual object will stop moving, which is quite restrictive. When the finger leaves the moving wheel to perform other operations, the movement of the virtual character will be interrupted. Based on this, the present invention provides a control method, device and electronic device for the movement of game objects, which can effectively reduce the operating burden of players, thereby improving the gaming experience.
[0032] To facilitate understanding of this embodiment, a method for controlling the movement of a game object disclosed in an embodiment of the present invention is first described in detail. The method is applied to a touch terminal. A game screen is displayed on a graphical user interface of the touch terminal. The game screen at least partially includes a game scene of the game. The game scene includes at least one virtual object. The graphical user interface also includes a virtual movement control. Figure 1 The flowchart of a method for controlling the movement of a game object is shown in FIG. 1 , and the method mainly includes the following steps S102 to S106:
[0033] Step S102, responding to the first drag operation on the mobile control, controlling the first virtual object to move in the game scene. The first drag operation can be understood as a sliding operation of the player on the mobile control, and the first virtual object is the game character controlled by the player. In one embodiment, the mobile control is in an initial state when not operated. When the player drags the mobile control with a finger, the mobile control will move with the finger, and the first virtual object will also move in the game scene according to the dragging direction of the mobile control. It should be noted that the mobile control can follow the touch point of the first drag operation to move to any position in the game screen, or it can only move in a specific area of the game screen (such as Figure 2-5The area defined by the dotted circle outside the moving wheel) moves along with the touch point of the first drag operation, which is not limited in the present invention.
[0034] Step S104, in response to the end of the first drag operation, it is determined whether to control the first virtual object to enter the automatic movement state according to the end position when the first drag operation ends. Among them, the end position when the first drag operation ends is also the position of the player's finger touch point in the game screen at the moment when the player stops the first drag operation. The automatic movement state can be understood as a state in which the first virtual character can move by itself when the player does not manipulate the mobile control. In actual application, when the player's finger performing the first drag operation leaves the touch display screen of the touch terminal, it can be confirmed that the first drag operation ends. In one embodiment, it can be determined whether the end position is located in a specified area. If the end position is located in the specified area, it can be determined that the first virtual object is controlled to enter the automatic movement state. Optionally, the specified area may include an avatar area and / or a map area of a second virtual object. When the end position is in the above-mentioned avatar area or map area, it can be determined that the first virtual object is controlled to enter the automatic movement state. It should be noted that the above-mentioned specified position can be flexibly set based on actual needs. In addition, the above-mentioned second virtual object can be a teammate and / or an enemy of the first virtual object.
[0035] Step S106, if yes, determine the target position of the first virtual object according to the end position, and control the first virtual object to automatically move to the target position. In one embodiment, assuming that the end position of the first drag operation is the avatar area of a second virtual object, the position of the second virtual object in the game scene can be determined as the target position; assuming that the end position of the first drag operation is the map area, and the end position is point M in the map area, then point N in the game scene corresponding to point M in the map area can be determined, and point N is the target position.
[0036] The above-mentioned game object movement control method provided by the embodiment of the present invention can determine whether to control the first virtual object to enter the automatic movement state according to the end position of the mobile control at the end of the first drag, so that the first virtual object can automatically move to the moving position. Compared with the prior art that is unable to perform other operations while controlling the movement of the first virtual object, the embodiment of the present invention adopts the above-mentioned method to achieve fast and intelligent automatic movement, and can perform other operations during the process of controlling the automatic movement of the first virtual object, thereby reducing the player's operating burden and effectively improving the game experience.
[0037] To facilitate understanding of the control method for moving a game object provided in the above-mentioned embodiment, the present invention provides two exemplary implementation methods, see the following method 1 to method 2:
[0038] Method 1: A method for controlling the movement of a game object is implemented according to an avatar area of a second virtual object included in a graphical user interface, wherein the second virtual object is a teammate and / or an enemy of the first virtual object. On this basis, an embodiment of the present invention provides an implementation method for determining whether to control the first virtual object to enter an automatic movement state according to an end position at the end of a first drag operation, by determining whether the end position at the end of the first drag operation is located in the avatar area, and when the judgment result is yes, determining to control the first virtual object to enter an automatic movement state. Exemplarily, assuming that the second virtual object is a teammate of the first virtual object, and the number of second virtual objects is multiple, the avatar area of each second virtual object is displayed separately in the graphical user interface, and when the end position is the avatar area of any second virtual object, it can be determined that the first virtual object is controlled to enter an automatic movement state.
[0039] In an optional embodiment, if the touch point moves to the avatar area during the first drag operation, the avatar area is controlled to perform a specified response. The specified response may be an amplification response or a highlight response. By controlling the avatar area to perform a specified response, the player can be assisted in determining whether to end the first drag operation in the avatar area. For example, the user graphical interface displays the avatar areas of the second virtual object A1, the second virtual object A2, and the third virtual object A3, respectively. When the player has not ended the first drag operation, when the player's finger moves to the avatar area a1 of the second virtual object A1, the avatar area a1 will amplify the response, and the remaining avatar areas are in the initial state. When the player's finger moves from the avatar area a1 to the avatar area a2 of the second virtual object A2, the avatar area a2 will amplify the response, and the remaining avatar areas are in the initial state.
[0040] In addition, the embodiment of the present invention also provides an implementation method for determining the target position of the first virtual object according to the end position, and the position of the second virtual object corresponding to the avatar area where the end position is located in the game scene can be determined as the target position of the first virtual object. Assuming that the player's finger ends the first drag operation when it is located in the avatar area a2, that is, the end position is in the avatar area a2, at this time the avatar area a2 will be restored to the initial state (in order to prompt the player that it is currently in a state of automatic movement toward the second virtual object A2, the avatar area a2 can also be set to a state different from the initial state), and the position of the second virtual object A2 in the game scene is determined as the target position.
[0041] To further reduce the operating burden of the player, if the first virtual object moves to the target position and the second virtual object is a teammate of the first virtual object, the first virtual object is controlled to follow the second virtual object corresponding to the avatar area at the end position. For example, when the first virtual object automatically moves to the position of the second virtual object A2 in the game scene, if the second virtual object is moving in the game scene, the first virtual object will follow the movement path of the second virtual object, and the player still does not need to manipulate the movement control, so that the player can perform other operations during the following process.
[0042] Method 2: A method for controlling the movement of a game object is implemented according to a map area of a first preset size included in a graphical user interface, wherein the map area can display a game scene in thumbnails, and can also display the positions of various virtual characters in the game scene through avatars. On this basis, an embodiment of the present invention provides another implementation method for determining whether to control the first virtual object to enter an automatic movement state according to the end position at the end of the first drag operation, see steps 1 to 3 below:
[0043] Step 1, if the touch point moves to a map area of a first preset size during the first drag operation, determine whether the duration for which the touch point remains in the map area of the first preset size meets the preset time condition. If yes, execute step 2; if not, maintain the size of the map area at the first preset size. The duration for holding can be understood as starting from the time when the touch point of the first drag operation moves to the map area of the first preset size, and stopping when the player ends the first drag operation in the map area of the first preset size. The duration obtained is the duration for holding. In one embodiment, the touch point of the finger of the player performing the first drag operation moves to the map area of the first preset size and remains there for a certain period of time. For example, the preset time condition is 800ms. If the touch point of the first drag operation remains in the map area of the first preset size for 800ms, it can be determined that the preset time condition is met.
[0044] Step 2, set the map area of the first preset size to the map area of the second preset size. The second preset size is larger than the first preset size. In an optional embodiment, the map area of the first preset size can be displayed in the upper left corner of the user graphical interface to roughly display the game scene. When the holding time of the mobile control in the map area of the first preset size meets the preset time condition, the map area of the second preset size with a larger size can be expanded. The map area of the second preset size can be located on the left half of the user graphical interface to display the game scene in more detail, thereby making it easier for players to determine the release position of the mobile control and achieve more accurate automatic mobile control. Obviously, the position of the map area in the game screen can also be other positions, not limited to the scheme shown in the drawings of this specification.
[0045] Step 3, determining whether the end position of the first drag operation is located in a map area of a second preset size. If yes, determining to control the first virtual object to enter an automatic movement state; if not, controlling the first virtual character to move according to the dragging direction of the first drag operation.
[0046] Considering that the map area of the second preset size affects the player's line of sight, when the first drag operation ends, the map area of the second preset size is controlled to be restored to the map area of the first preset size. Specifically, when the player ends the first drag operation in the map area of the second preset size, the size of the map area will also be restored from the second preset size to the first preset size at the same time to display more game scenes and avoid affecting the player's realization due to the map area being too large.
[0047] In addition, the embodiment of the present invention also provides an implementation method for determining the target position of the first virtual object according to the end position. Optionally, the scene position in the game scene corresponding to the end position can be determined according to the map area of the second preset size, and the scene position is determined as the target position of the first virtual object. For example, in one implementation method, each point in the map area corresponds to each point in the game scene one by one. If the end position of the first drag operation is point M in the map area, then point N in the game scene corresponding to point M in the map area can be determined, and the point N is the target position.
[0048] When executing the step of controlling the first virtual object to automatically move to the target position, the moving path of the first virtual object can be calculated according to the current position and the target position of the first virtual object, and then the first virtual object can be controlled to automatically move to the target position according to the moving path. In one embodiment, an algorithm can be used to calculate the shortest path for the first virtual object to move from the current position to the target position, and the shortest path is determined as the moving path for the first virtual object to automatically move, so as to minimize the time required for the first virtual object to move to the target position. Of course, in addition to the shortest path, the moving path can also be a path that meets other preset conditions.
[0049] In order to facilitate the player to know the movement path of the first virtual character, the movement path can also be displayed through the map area; and / or, the thumbnail path corresponding to the movement path can be displayed through the map area. The thumbnail path can be a line segment (such as a dotted line of a specified color) connecting the current position and the target position of the first virtual character. Furthermore, a dotted line of a specified color can be used to connect the first virtual object displayed in the map area and the avatar of the second virtual object corresponding to the avatar area where the end position is located, and the display of the dotted line is updated as the first virtual object and / or the second virtual object moves.
[0050] In one embodiment, if the automatic movement state needs to be exited, a second drag operation on the mobile control can be responded to, thereby controlling the first virtual object to exit the automatic movement state. For example, when the player clicks and / or drags the mobile control again, the target mobile object will exit the automatic movement state.
[0051] To facilitate understanding of the control method for moving a game object provided in the above-mentioned embodiment, the present invention takes a MOBA (Multiplayer Online Battle Arena) game as an example to provide an application example of the control method for moving a game object. Figure 2 A schematic diagram of a game screen is shown, exemplarily, the game screen includes a game scene, multiple virtual objects, a mobile wheel (that is, the above-mentioned mobile control), an avatar area and a map area, wherein the virtual objects may include a first virtual object, a second virtual object, an NPC (Non-Player Character) virtual object, the mobile control is located in the lower left corner of the game screen, the map area is located in the upper left corner of the game screen, and the avatar area is located on the right side of the map area.
[0052] In the above Figure 2 Based on the above, the embodiment of the present invention provides a specific implementation method of a method for controlling the movement of a game object, see Figure 3 Schematic diagram of another game screen shown in FIG. 1 , when the player drags the mobile wheel and drags it to the teammate's avatar area, the avatar area at the corresponding position enlarges in response, and when the player releases the mobile wheel, the first virtual character will automatically move to the teammate's position corresponding to the avatar area, and the map area will display a thumbnail path of automatic movement. In addition, after moving to the teammate's position, follow the teammate. In actual application, if the player clicks and / or drags the mobile wheel again, the automatic movement of the first virtual character will be canceled.
[0053] In the above Figure 2 Based on this, the embodiment of the present invention also provides another specific implementation method of the control method for moving a game object, see Figure 4 Another game screen shown in the figure, first the player drags the moving wheel to Figure 4 The map area in the drag operation (or the touch point of the drag operation of the moving wheel is moved to the map area), it is determined whether the holding time of the moving wheel or the touch point of the drag operation in the map area meets the preset time condition (such as 800ms), and if so, the map area is expanded (such as Figure 5The finger can be released at any position in the expanded map area, and the map area shrinks back to the original position and displays the thumbnail path of automatic movement. The player's first virtual object will automatically move to the position where the finger is released. In actual application, if the player clicks and / or drags the moving wheel again, the automatic movement of the first virtual character will be canceled.
[0054] In summary, the embodiments of the present invention can achieve fast and intelligent movement, reduce the operating burden of players, and free up players' fingers, making it easier for players to perform other game operations, thereby improving operating efficiency and experience.
[0055] For the control method of the movement of the game object provided in the above embodiment, an embodiment of the present invention provides a control device for the movement of the game object, which is applied to a touch terminal, and a game screen is displayed on a graphical user interface of the touch terminal, the game screen at least partially includes a game scene of the game, the game scene includes at least one virtual object, and the graphical user interface also includes a virtual movement control, see Figure 6 The structure diagram of a control device for moving a game object is shown in FIG. 1 , and the device may include the following parts:
[0056] A first moving module 602, configured to respond to a first drag operation on the moving control and control the first virtual object to move in the game scene;
[0057] A determination module 604 is used to respond to the end of the first drag operation and determine whether to control the first virtual object to enter an automatic movement state according to the end position of the first drag operation;
[0058] The second moving module 606 is used to determine the target position of the first virtual object according to the end position when the judgment result of the judgment module is yes, and control the first virtual object to automatically move to the target position.
[0059] The control device for moving the game object provided in the embodiment of the present invention can determine whether to control the first virtual object to enter an automatic movement state according to the end position at the end of the first drag, so that the first virtual object can automatically move to the moving position. Compared with the prior art, it is impossible to perform other operations while controlling the movement of the first virtual object. The embodiment of the present invention adopts the above method to achieve fast and intelligent automatic movement, and other operations can be performed during the process of controlling the automatic movement of the first virtual object, thereby reducing the player's operating burden and effectively improving the game experience.
[0060] In one embodiment, the graphical user interface also includes an avatar area of a second virtual object, and the second virtual object is a teammate and / or enemy of the first virtual object; the judgment module 604 is also used to: determine whether the end position at the end of the first drag operation is located in the avatar area; if so, determine to control the first virtual object to enter an automatic movement state.
[0061] In one embodiment, the above-mentioned device further includes an avatar response module, which is used to: if the touch point moves to the avatar area during the first drag operation, control the avatar area to perform a specified response.
[0062] In one implementation, the second movement module 606 is further configured to determine the position of the second virtual object corresponding to the avatar area at the end position in the game scene as the target position of the first virtual object.
[0063] In one embodiment, the above-mentioned device also includes a following module, which is used to: if the first virtual object moves to the target position and the second virtual object is a teammate of the first virtual object, control the first virtual object to follow the second virtual object corresponding to the avatar area at the end position.
[0064] In one embodiment, the graphical user interface also includes a map area of a first preset size; the above-mentioned device also includes an area setting module, which is used to: if the touch point moves to the map area of the first preset size during the first drag operation, determine whether the length of time the touch point is located in the map area of the first preset size meets a preset time condition; if so, set the map area of the first preset size to a map area of a second preset size; wherein the second preset size is larger than the first preset size.
[0065] In one implementation, the determination module 604 is further used to: determine whether the end position of the first drag operation is located in a map area of a second preset size; if so, determine to control the first virtual object to enter an automatic movement state.
[0066] In one embodiment, the above-mentioned device also includes a region recovery module, which is used to: when the first drag operation ends, control the map area of the second preset size to recover to the map area of the first preset size.
[0067] In one implementation, the second movement module 606 is further used to: determine, according to the map area, a scene position in the game scene corresponding to the end position, and determine the scene position as the target position of the first virtual object.
[0068] In one embodiment, the second movement module 606 is further used to: calculate a movement path of the first virtual object for automatic movement according to the current position and the target position of the first virtual object; and control the first virtual object to automatically move to the target position according to the movement path.
[0069] In one embodiment, the above-mentioned device also includes a display module, which is used to: display the moving path through the map area; and / or display the thumbnail path corresponding to the moving path through the map area.
[0070] In one embodiment, the apparatus further includes a state exit module, which is used to: respond to a second drag operation on the mobile control and control the first virtual object to exit the automatic movement state.
[0071] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0072] An embodiment of the present invention provides an electronic device. Specifically, the electronic device includes a processor and a storage device. The storage device stores a computer program, and when the computer program is executed by the processor, it executes the method described in any one of the above-mentioned implementation methods.
[0073] Figure 7 A structural diagram of an electronic device provided in an embodiment of the present invention, the electronic device 100 includes: a processor 70, a memory 71, a bus 72 and a communication interface 73, wherein the processor 70, the communication interface 73 and the memory 71 are connected via the bus 72; the processor 70 is used to execute an executable module stored in the memory 71, such as a computer program.
[0074] The memory 71 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 73 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0075] The bus 72 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0076] Among them, the memory 71 is used to store programs, and the processor 70 executes the program after receiving the execution instruction. The method executed by the device for flow process definition disclosed in any embodiment of the above-mentioned embodiment of the present invention can be applied to the processor 70 or implemented by the processor 70.
[0077] The processor 70 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 70. The above processor 70 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor to be executed, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 71, and the processor 70 reads the information in the memory 71 and completes the steps of the above method in combination with its hardware.
[0078] The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be referred to the previous method embodiments, which will not be repeated here.
[0079] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0080] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for controlling the movement of a game object, applied to a touch terminal, characterized in that: A game screen is displayed on the graphical user interface of the touch terminal, the game screen at least partially includes a game scene of the game, the game scene includes at least one virtual object, and the graphical user interface also includes a virtual mobile control, and the method includes: In response to a first drag operation on the mobile control, controlling a first virtual object to move in the game scene; In response to the end of the first drag operation, judging whether to control the first virtual object to enter an automatic movement state according to the end position at the end of the first drag operation; wherein if the end position is located in a designated area, controlling the first virtual object to enter an automatic movement state; the designated area includes an avatar area and / or a map area of a second virtual object; If yes, determine the target position of the first virtual object according to the end position, and control the first virtual object to automatically move to the target position; wherein, if the end position is the avatar area of the second virtual object, determine the position of the second virtual object in the game scene as the target position; if the end position is a point in the map area, determine the point in the game scene corresponding to the point in the map area as the target position; The method further includes: if the first virtual object moves to the target position and the second virtual object is a teammate of the first virtual object, controlling the first virtual object to follow the second virtual object corresponding to the avatar area at the end position.
2. The method according to claim 1, characterized in that The graphical user interface also includes an avatar area of a second virtual object, where the second virtual object is a teammate and / or an enemy of the first virtual object; The step of judging whether to control the first virtual object to enter an automatic movement state according to the end position of the first drag operation, comprises: Determining whether the end position of the first drag operation is located in the avatar area; If yes, determine to control the first virtual object to enter an automatic movement state.
3. The method according to claim 2, characterized in that The method further comprises: If the touch point moves to the avatar area during the first drag operation, the avatar area is controlled to perform a designated response.
4. The method according to claim 2, characterized in that: The step of determining the target position of the first virtual object according to the end position comprises: The position of the second virtual object corresponding to the avatar area where the end position is located in the game scene is determined as the target position of the first virtual object.
5. The method according to claim 1, characterized in that The graphical user interface also includes a map area of a first preset size; The step of judging whether to control the first virtual object to enter an automatic movement state according to the end position of the first drag operation, comprises: Determining whether the end position of the first drag operation is located in the map area; If yes, determine to control the first virtual object to enter an automatic movement state.
6. The method according to claim 5, characterized in that Before the step of determining whether to control the first virtual object to enter an automatic movement state according to the end position of the first drag operation, the method further includes: If the touch point moves to the map area of the first preset size during the first drag operation, determining whether the time duration for which the touch point is located in the map area of the first preset size satisfies a preset time condition; If so, the map area of the first preset size is set to a map area of a second preset size; wherein the second preset size is larger than the first preset size.
7. The method according to claim 6, characterized in that The method further comprises: When the first drag operation ends, the map area of the second preset size is controlled to be restored to the map area of the first preset size.
8. The method according to claim 5, characterized in that The step of determining the target position of the first virtual object according to the end position comprises: According to the map area, a scene position in the game scene corresponding to the end position is determined, and the scene position is determined as a target position of the first virtual object.
9. The method according to claim 1, characterized in that: The step of controlling the first virtual object to automatically move to the target position comprises: Calculating a moving path of the first virtual object for automatic movement according to the current position of the first virtual object and the target position; The first virtual object is controlled to automatically move to the target position according to the moving path.
10. The method according to claim 9, characterized in that The method further comprises: The moving path is displayed in a map area; and / or, a thumbnail path corresponding to the moving path is displayed in a map area.
11. The method according to claim 1, characterized in that: The method further comprises: In response to a second drag operation on the mobile control, the first virtual object is controlled to exit the automatic movement state.
12. A control device for moving a game object, applied to a touch terminal, characterized in that: The graphical user interface of the touch terminal displays a game screen, the game screen at least partially includes a game scene of the game, the game scene includes at least one virtual object, and the graphical user interface also includes a virtual mobile control, and the device includes: A first moving module, configured to control the first virtual object to move in the game scene in response to a first drag operation on the moving control; a judgment module, configured to respond to the end of the first drag operation and judge whether to control the first virtual object to enter an automatic movement state according to an end position at the end of the first drag operation; wherein if the end position is located in a designated area, the first virtual object is controlled to enter an automatic movement state; the designated area includes an avatar area and / or a map area of a second virtual object; A second movement module is used to determine the target position of the first virtual object according to the end position when the judgment result of the judgment module is yes, and control the first virtual object to automatically move to the target position; wherein, if the end position is the avatar area of the second virtual object, the position of the second virtual object in the game scene is determined as the target position; if the end position is a point in the map area, a point in the game scene corresponding to the point in the map area is determined as the target position; The device also includes: a following module, which is used to: if the first virtual object moves to the target position and the second virtual object is a teammate of the first virtual object, control the first virtual object to follow the second virtual object corresponding to the avatar area at the end position.
13. An electronic device, characterized in that: including a processor and a memory; The memory stores a computer program, which, when executed by the processor, performs the method according to any one of claims 1 to 11.
14. A computer storage medium, characterized in that: Used to store computer software instructions used for the method according to any one of claims 1 to 11.
