Virtual character control method, non-volatile storage medium and electronic device

By responding to the touch operation of the target control in MOBA mobile games, the target touch area is generated to control the virtual character to release displacement skills, and the release speed and accuracy of the displacement skills is improved without changing the movement method, which solves the problem of Problems caused by independent settings of the mobile control and the displacement skill control.

CN113908550BActive Publication Date: 2024-12-20NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111221422.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-20
Publication Date
2024-12-20
Estimated Expiration
2041-10-20

AI Technical Summary

Technical Problem

In MOBA mobile games, the mobile control and the displacement skill control are set independently of each other, resulting in a decrease in the release speed and accuracy of the displacement skill.

Method used

Provide a graphical user interface through terminal devices, respond to the touch operation of the target control, control the virtual character to move and release displacement skills in the game scene based on the touch position, generate target touch areas to trigger skills, adjust the movement direction and speed, and realize one-handed Operational displacement skills release.

Benefits of technology

It improves the release speed and accuracy of displacement skills, and solves the problem of reduced release speed and accuracy caused by independent settings of the mobile control and the displacement skill control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113908550B_ABST
    Figure CN113908550B_ABST
Patent Text Reader

Abstract

The present invention discloses a virtual character control method, a non-volatile storage medium and an electronic device. The method comprises: responding to a first touch operation performed on a target control, controlling a virtual character to move in a game scene based on a first touch position of the first touch operation; responding to a second touch operation performed on the target control, generating a target touch area based on a second touch position of the second touch operation, wherein the target touch area is used to trigger the virtual character to release a displacement skill; responding to a third touch operation performed on the target touch area, controlling the virtual character to release a displacement skill in the game scene. The present invention solves the technical problem that in MOBA mobile games provided by the related art, the independent settings of the mobile control and the displacement skill control are likely to result in different degrees of reduction in the release speed and accuracy of the displacement skill control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a virtual character control method, a non-volatile storage medium and an electronic device. Background Art

[0002] In the Multiplayer Online Battle Arena (MOBA) mobile games provided by the related technology, the distance between the movement controls used by the game player to control the virtual character to move freely in the game scene and the displacement skill controls used by the game player to control the virtual character to change the movement state in the game scene is far. Figure 1 It is a schematic diagram of a game player controlling a virtual character to move in a game scene according to the related technology, such as Figure 1 As shown, the above-mentioned mobile control is composed of a virtual wheel and a virtual joystick at the lower left of the game interface, and the above-mentioned displacement skill control is the "teleport" small skill control at the lower right of the game interface. The game player can control the virtual character to move freely in the game scene by sliding the virtual joystick in the virtual wheel with one hand. In addition, in the process of controlling the virtual character to move freely in the game scene, the game player can also click the "teleport" small skill control with another hand to control the virtual character to move instantly from the first position to the second position in the game scene. That is, the above process requires the cooperation of the game player's hands to complete. However, the obvious defect of this operation mode is that: on the one hand, when the game player performs a sliding operation on the virtual joystick in the virtual wheel to control the virtual character to move freely in the game scene, it is necessary to distract attention to determine the position of the "teleport" small skill control so as to click the "teleport" small skill control to control the virtual character to complete the instant movement in the game scene. On the other hand, since the above process requires the cooperation of the game player's hands to complete, the release speed and accuracy of the teleportation small skill will be affected to a certain extent.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] At least some embodiments of the present invention provide a virtual character control method, a non-volatile storage medium and an electronic device, so as to at least solve the technical problem in MOBA mobile games provided by the relevant technology that the independent settings of movement controls and displacement skill controls may easily lead to different degrees of reduction in release speed and accuracy of displacement skill controls.

[0005] According to one embodiment of the present invention, a method for controlling a virtual character is provided, wherein a graphical user interface is provided by a terminal device, and the content displayed by the graphical user interface at least partially includes a game scene. The method for controlling a virtual character includes:

[0006] In response to a first touch operation performed on a target control, a virtual character is controlled to move in a game scene based on a first touch position of the first touch operation; in response to a second touch operation performed on the target control, a target touch area is generated based on a second touch position of the second touch operation, wherein the target touch area is used to trigger the virtual character to release a displacement skill; in response to a third touch operation performed on the target touch area, the virtual character is controlled to release a displacement skill in the game scene.

[0007] Optionally, generating the target touch area based on the second touch position includes: generating the target touch area within the touch range of the target control based on the second touch position.

[0008] Optionally, generating the target touch area based on the second touch position includes: generating the target touch area in an adjacent area outside the touch range of the target control based on the second touch position.

[0009] Optionally, controlling the virtual character to move in the game scene based on the first touch position includes: determining the movement direction of the virtual character in the game scene based on the relative position relationship between the first touch position and the reference position of the target control; and controlling the virtual character to move in the game scene according to the movement direction.

[0010] Optionally, the virtual character control method further includes: adjusting the moving speed of the virtual character in the game scene in real time based on the relative distance relationship between the first touch position and the reference position.

[0011] Optionally, controlling the virtual character to move in the game scene according to the moving direction includes: controlling the virtual character to move in the game scene according to the moving direction and the moving speed.

[0012] Optionally, controlling the virtual character to release a displacement skill in the game scene includes: controlling the virtual character to release the displacement skill along the moving direction in the game scene, teleporting from a first position where the virtual character is currently located to a second position, wherein the teleportation distance between the first position and the second position is determined by the attributes of the displacement skill.

[0013] Optionally, controlling the virtual character to release a displacement skill in the game scene includes: controlling the virtual character to release the displacement skill along the moving direction in the game scene, adjusting the first moving speed currently used by the virtual character to a second moving speed within a preset time length, wherein the second moving speed is greater than the first moving speed, and the preset time length is determined by the attributes of the displacement skill.

[0014] Optionally, controlling the virtual character to release a displacement skill in the game scene includes: determining the movement direction of the virtual character in the game scene based on the relative position relationship between the second touch position and the reference position of the target control; in response to an end instruction of the second touch operation, controlling the virtual character to move in the game scene according to the movement direction; in response to a continuous position change of the third touch position of the third touch operation within the target touch area, determining the skill indication direction of the displacement skill; in response to an end instruction of the third touch operation, adjusting the movement direction according to the skill indication direction; controlling the virtual character to release the displacement skill in the game scene along the adjusted movement direction.

[0015] According to one embodiment of the present invention, there is also provided a virtual character control device, which provides a graphical user interface through a terminal device, and the content displayed by the graphical user interface at least partially includes a game scene. The virtual character control device includes:

[0016] The first control module is used to respond to a first touch operation performed on a target control, and control the virtual character to move in a game scene based on a first touch position of the first touch operation; the generation module is used to respond to a second touch operation performed on the target control, and generate a target touch area based on a second touch position of the second touch operation, wherein the target touch area is used to trigger the virtual character to release a displacement skill; the second control module is used to respond to a third touch operation performed on the target touch area, and control the virtual character to release a displacement skill in the game scene.

[0017] Optionally, the generating module is used to generate a target touch area within the touch range of the target control based on the second touch position.

[0018] Optionally, the generating module is used to generate a target touch area in an adjacent area outside the touch range of the target control based on the second touch position.

[0019] Optionally, the first control module is used to determine the moving direction of the virtual character in the game scene based on the relative position relationship between the first touch position and the reference position of the target control; and control the virtual character to move in the game scene according to the moving direction.

[0020] Optionally, the first control module is used to adjust the movement speed of the virtual character in the game scene in real time based on the relative distance relationship between the first touch position and the reference position.

[0021] Optionally, the first control module is used to control the movement of the virtual character in the game scene according to the moving direction and moving speed.

[0022] Optionally, the second control module is used to control the virtual character to release a displacement skill along the moving direction in the game scene, and teleport from a first position where the virtual character is currently located to a second position, wherein the teleportation distance between the first position and the second position is determined by the attributes of the displacement skill.

[0023] Optionally, a second control module is used to control the virtual character to release a displacement skill along the moving direction in the game scene, and adjust the first moving speed currently used by the virtual character to a second moving speed within a preset time period, wherein the second moving speed is greater than the first moving speed, and the preset time period is determined by the attributes of the displacement skill.

[0024] Optionally, a second control module is used to determine the movement direction of the virtual character in the game scene based on the relative position relationship between the second touch position and the reference position of the target control; in response to the end instruction of the second touch operation, control the virtual character to move in the game scene according to the movement direction; in response to the continuous position change of the third touch position of the third touch operation within the target touch area, determine the skill indication direction of the displacement skill; in response to the end instruction of the third touch operation, adjust the movement direction according to the skill indication direction; control the virtual character to release the displacement skill along the adjusted movement direction in the game scene.

[0025] According to one embodiment of the present invention, a non-volatile storage medium is further provided, characterized in that a computer program is stored in the storage medium, wherein the computer program is configured to execute any of the above-mentioned virtual character control methods when running.

[0026] According to one embodiment of the present invention, a processor is further provided, wherein the processor is used to run a program, wherein the program is configured to execute any of the above-mentioned virtual character control methods when running.

[0027] According to one embodiment of the present invention, there is also provided an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any of the above-mentioned virtual character control methods.

[0028] In at least some embodiments of the present invention, a first touch operation performed on a target control is adopted, and a virtual character is controlled to move in a game scene based on a first touch position of the first touch operation; a second touch operation performed on the target control is responded to, and a target touch area is generated based on the second touch position of the second touch operation (the target touch area is used to trigger the virtual character to release a displacement skill); and by responding to a third touch operation performed on the target touch area, the virtual character is controlled to release the displacement skill in the game scene, thereby achieving the purpose of adjusting the release method of the virtual character's displacement skill without changing the existing control of the virtual character to move freely in the game scene, thereby achieving the technical effect of effectively improving the release speed of the displacement skill and enhancing the release accuracy of the displacement skill, and further solving the technical problem in MOBA mobile games provided by the relevant technology that the independent settings of the mobile control and the displacement skill control may easily lead to different degrees of reduction in the release speed and accuracy of the displacement skill control. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0030] Figure 1 It is a schematic diagram of a game player controlling a virtual character to move in a game scene according to the related art;

[0031] Figure 2 It is a hardware structure block diagram of a mobile terminal of a virtual character control method according to an embodiment of the present invention;

[0032] Figure 3 is a flow chart of a virtual character control method according to one embodiment of the present invention;

[0033] Figure 4 is a schematic diagram of generating a target touch area within a touch range of a target control according to one optional embodiment of the present invention;

[0034] Figure 5 is a schematic diagram of generating a target touch area from an adjacent area outside the touch range of a target control according to one optional embodiment of the present invention;

[0035] Figure 6 is a structural block diagram of a virtual character control device according to one embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 should fall within the scope of protection of the present invention.

[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0038] According to one embodiment of the present invention, an embodiment of a virtual character control method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0039] In one embodiment of the present invention, the virtual character control method can be run on a local terminal device or a server. When the virtual character control method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.

[0040] In an optional implementation, various cloud applications, such as cloud games, can be run under the cloud interaction system. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the virtual character control method are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the terminal device for information processing is a cloud game server in the cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.

[0041] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.

[0042] In a possible implementation, an embodiment of the present invention provides a virtual character control method, which provides a graphical user interface through a terminal device, wherein the terminal device can be the local terminal device mentioned above, or can be a client device in the cloud interaction system mentioned above.

[0043] Taking a mobile terminal running in a local terminal device as an example, the mobile terminal can be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, referred to as MID), a PAD, a game console, and other terminal devices. Figure 2 FIG. 1 is a hardware structure block diagram of a mobile terminal of a virtual character control method according to an embodiment of the present invention. Figure 2 As shown, the mobile terminal may include one or more ( Figure 2Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microprocessor (MCU), a programmable logic device (FPGA), a neural network processor (NPU), a tensor processor (TPU), an artificial intelligence (AI) type processor, etc.) and a memory 104 for storing data. Optionally, the mobile terminal may also include a transmission device 106 for communication functions, an input and output device 108, and a display device 110. It can be understood by those skilled in the art that Figure 2 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 2 More or fewer components as shown, or with Figure 2 Different configurations are shown.

[0044] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the virtual character control method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above-mentioned virtual character control method is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0045] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0046] The inputs in the input / output device 108 may come from a plurality of human interface devices (HIDs), such as keyboards and mice, game controllers, and other dedicated game controllers (such as steering wheels, fishing rods, dance mats, remote controls, etc.). In addition to providing input functions, some human interface devices may also provide output functions, such as force feedback and vibration of game controllers, audio output of controllers, etc.

[0047] The display device 110 may be, for example, a head-up display (HUD), a touch-screen liquid crystal display (LCD), and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a graphical user interface (GUI), and a user may interact with the GUI by finger contacts and / or gestures on a touch-sensitive surface, wherein the human-computer interaction functions here may optionally include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music, and / or web browsing, etc. The executable instructions for executing the above-mentioned human-computer interaction functions are configured / stored in a computer program product or a readable storage medium executable by one or more processors.

[0048] In this embodiment, a method for controlling a virtual character running on the mobile terminal is provided. A graphical user interface is provided by a terminal device. The content displayed by the graphical user interface at least partially includes a game scene. Figure 3 is a flow chart of a virtual character control method according to one embodiment of the present invention. Figure 3 As shown, the method comprises the following steps:

[0049] Step S30, in response to a first touch operation performed on a target control, controlling the virtual character to move in the game scene based on a first touch position of the first touch operation;

[0050] The target control may be a mobile control displayed in a graphical user interface. In an optional embodiment, the mobile control may include a virtual roulette wheel and a virtual joystick. The target control may be located in any area in the graphical user interface, for example, the lower left corner of the graphical user interface, the lower right corner of the graphical user interface, etc. The first touch operation may include, but is not limited to, a sliding operation and a clicking operation. By responding to the first touch operation performed on the target control (for example, a game player dragging a virtual joystick in a virtual roulette wheel), the virtual character may be controlled to move freely in the game scene based on the first touch position of the first touch operation.

[0051] In the process of controlling the movement of the virtual character in the game scene based on the first touch position, the movement direction of the virtual character in the game scene can be determined based on the relative position relationship between the first touch position and the reference position of the target control, so as to control the virtual character to move in the game scene according to the movement direction. The above reference position can be the center position of the target control or other preset positions. The above relative position relationship is usually expressed in the screen space of the graphical user interface as the first touch position is located above, below, left, right, upper left, lower left, upper right and lower right of the reference position. When the above relative position relationship is mapped to the world space of the game scene, the movement direction of the virtual character in the game scene will be expressed as front, back, left, right, left front, left rear, right front and right rear. For example: when the outer contour of the target control is a circle, the reference position is the center position of the circle. Thus, the movement direction of the virtual character in the game scene can be determined based on the relative position relationship between the first touch position and the center position of the circle. While determining the moving direction of the virtual character in the game scene, the movement of the virtual character in the game scene can also be controlled by combining the preset movement speed (ie, the movement speed is a fixed value) and the movement direction in the game.

[0052] In addition, in addition to using the preset movement speed in the game, the movement speed of the virtual character in the game scene can also be adjusted in real time based on the relative distance relationship between the first touch position and the reference position. Assuming that the relative distance between the first touch position and the reference position is L, and the movement speed of the virtual character in the game scene is S, then L and S can be directly proportional (that is, the larger the value of L, the larger the value of S), or inversely proportional (that is, the larger the value of L, the smaller the value of S). Then, the virtual character is controlled to move in the game scene according to the movement direction and the adjusted movement speed.

[0053] Step S31, in response to a second touch operation performed on a target control, generating a target touch area based on a second touch position of the second touch operation, wherein the target touch area is used to trigger the virtual character to release a displacement skill;

[0054] The second touch operation may include but is not limited to: a re-press operation. The second touch operation and the first touch operation may be touch operations that are performed continuously or may be independent of each other. In the process of generating a target touch area based on the second touch position, the target touch area may be generated based on the second touch position within the touch range of the target control, or may be generated based on an adjacent area outside the touch range of the target control where the second touch position is located. When the target control is a mobile control displayed in a graphical user interface, the touch range of the target control may be the display range of the virtual roulette wheel.

[0055] Figure 4 is a schematic diagram of generating a target touch area within a touch range of a target control according to one optional embodiment of the present invention, such as Figure 4 As shown, the game player drags the virtual joystick in the virtual wheel from the center of the virtual wheel to the lower left touch position by dragging the virtual joystick in the screen space. At this time, the game player presses the virtual joystick hard at the lower left touch position, thereby generating a target touch area in the area adjacent to the lower left touch position in the virtual wheel.

[0056] Figure 5 is a schematic diagram of generating a target touch area in an adjacent area outside the touch range of a target control according to one optional embodiment of the present invention, such as Figure 5 As shown, the game player drags the virtual joystick in the virtual wheel from the center of the virtual wheel to the lower left touch position in the screen space. At this time, the game player presses the virtual joystick hard at the lower left touch position, thereby generating a target touch area in an adjacent area outside the virtual wheel corresponding to the lower left touch position.

[0057] Step S32, responding to the third touch operation performed on the target touch area, controlling the virtual character to release a displacement skill in the game scene.

[0058] The third touch operation may include but is not limited to: a sliding operation and a clicking operation. The second touch operation and the third touch operation may be touch operations that are performed continuously or independently of each other. The displacement skill may control the virtual character to teleport from the current first position to the second position, or may control the virtual character to increase the movement speed within a preset time.

[0059] Before entering the game scene, the game player can select the target skill to be used in the game scene on the game setting page. After the game player selects the target skill to be used in the game scene, a skill control corresponding to the target skill will appear in the graphical user interface. In an optional embodiment, the target skill is a "small skill" used in the game scene. The small skill may include but is not limited to: a displacement skill that changes the movement state of the virtual character, a violent skill that improves the attack state of the virtual character, a healing skill that increases the health state of the virtual character, and a purification skill that releases the controlled state of the virtual character. Taking the above-mentioned small skill selected in the game setting page as a displacement skill as an example, it is different from the existing game player using one hand to slide the virtual joystick in the virtual roulette to control the virtual character to move freely in the game scene, and using the other hand to click the "teleport" small skill control to control the virtual character to move instantly from the first position to the second position in the game scene, but by the game player performing a third touch operation on the target touch area, the virtual character can be controlled to release the displacement skill in the game scene. That is, the game player can continuously control the virtual character to move freely in the game scene and control the virtual character to move from a first position to a second position in the game scene instantly through a single-handed touch operation.

[0060] Through the above steps, a first touch operation performed on a target control can be adopted to control the movement of a virtual character in a game scene based on a first touch position of the first touch operation, and a second touch operation performed on the target control can be responded to to generate a target touch area based on a second touch position of the second touch operation. By responding to a third touch operation performed on the target touch area, the virtual character can be controlled to release a displacement skill in the game scene, thereby achieving the purpose of adjusting the release method of the virtual character's displacement skill without changing the existing control of the virtual character's free movement in the game scene, thereby achieving the technical effect of effectively improving the release speed of the displacement skill and enhancing the release accuracy of the displacement skill, and further solving the technical problem in MOBA mobile games provided by the relevant technology that the independent settings of the mobile control and the displacement skill control are easy to lead to different degrees of reduction in the release speed and accuracy of the displacement skill control.

[0061] Optionally, in step S32, controlling the virtual character to release a displacement skill in the game scene may include the following execution steps:

[0062] Step S320, controlling the virtual character to release a displacement skill along the moving direction in the game scene, teleporting from a first position where the virtual character is currently located to a second position, wherein the teleportation distance between the first position and the second position is determined by the attributes of the displacement skill.

[0063] By controlling the virtual character to release the displacement skill along the moving direction in the game scene, the virtual character can be teleported from the current first position to the second position. The teleportation distance between the first position and the second position is determined by the actual skill attribute of the displacement skill. Therefore, the teleportation distances of various virtual characters in the game scene after releasing the displacement skill can be completely the same, partially the same, or different from each other.

[0064] Still like Figure 4 As shown, the game player can control the virtual character to release displacement skills along the moving direction in the game scene by clicking or sliding the target touch area in the virtual roulette in the screen space, thereby making the virtual character teleport from the current first position to the second position.

[0065] Optionally, in step S32, controlling the virtual character to release a displacement skill in the game scene may include the following execution steps:

[0066] Step S321, controlling the virtual character to release a displacement skill along the moving direction in the game scene, adjusting the first moving speed currently used by the virtual character to a second moving speed within a preset time, wherein the second moving speed is greater than the first moving speed, and the preset time is determined by the attributes of the displacement skill.

[0067] By controlling the virtual character to release the displacement skill along the moving direction in the game scene, the virtual character can increase the currently used first moving speed to the second moving speed within the preset time (that is, the virtual character is in an accelerated moving state), and then, at the end of the preset time, the virtual character will automatically return to the first moving speed from the second moving speed. The preset time is determined by the properties of the displacement skill. Therefore, the preset time after each virtual character in the game scene releases the displacement skill can be completely the same, partially the same, or different from each other.

[0068] Still like Figure 5 As shown, the game player can control the virtual character to release displacement skills along the moving direction in the game scene by clicking or sliding the target touch area corresponding to the lower left touch position outside the virtual roulette in the screen space, thereby allowing the virtual character to increase the currently used first moving speed to the second moving speed within a preset time.

[0069] Optionally, in step S32, controlling the virtual character to release a displacement skill in the game scene may include the following execution steps:

[0070] Step S322, determining the moving direction of the virtual character in the game scene based on the relative position relationship between the second touch position and the reference position of the target control;

[0071] Step S323, in response to the end instruction of the second touch operation, controlling the virtual character to move in the game scene according to the moving direction;

[0072] Step S324, in response to the third touch position of the third touch operation continuously changing within the target touch area, determining a skill indication direction of the displacement skill;

[0073] Step S325, in response to the end instruction of the third touch operation, adjusting the moving direction according to the skill indication direction;

[0074] Step S326, controlling the virtual character to release the displacement skill along the adjusted moving direction in the game scene.

[0075] The release direction of the above displacement skill can be the same as or different from the moving direction of the virtual character in the game scene. The moving direction of the virtual character in the game scene can be determined based on the relative position relationship between the second touch position and the reference position of the target control. When the finger of the game player leaves the target control (i.e., the end instruction of the second touch operation) and moves to the target touch area, the virtual character will continue to move in the game scene in the direction of movement when the finger leaves the target control. At this time, when the finger slides in the target touch area (i.e., the third touch position of the third touch operation continues to change position in the target touch area), the skill indication direction of the displacement skill (i.e., the direction indicated by the skill indicator) can be determined, but it does not affect the moving direction of the virtual character in the game scene. When the finger determines the release direction of the displacement skill in the target touch area and leaves the screen (i.e., the end instruction of the third touch operation), the moving direction is adjusted according to the skill indication direction, and the virtual character is controlled to release the displacement skill in the game scene along the adjusted moving direction. Then, the virtual character is controlled to continue to move along the adjusted moving direction in the game scene.

[0076] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0077] In this embodiment, a virtual character control device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0078] Figure 6 is a structural block diagram of a virtual character control device according to one embodiment of the present invention, wherein a graphical user interface is provided by a terminal device, and the content displayed by the graphical user interface at least partially includes a game scene, such as Figure 6 As shown, the device includes: a first control module 10, used to respond to a first touch operation performed on a target control, and control the virtual character to move in a game scene based on a first touch position of the first touch operation; a generation module 20, used to respond to a second touch operation performed on the target control, and generate a target touch area based on a second touch position of the second touch operation, wherein the target touch area is used to trigger the virtual character to release a displacement skill; a second control module 30, used to respond to a third touch operation performed on the target touch area, and control the virtual character to release a displacement skill in the game scene.

[0079] Optionally, the generating module 20 is configured to generate a target touch area within the touch range of the target control based on the second touch position.

[0080] Optionally, the generating module 20 is configured to generate a target touch area in an adjacent area outside the touch range of the target control based on the second touch position.

[0081] Optionally, the first control module 10 is used to determine the moving direction of the virtual character in the game scene based on the relative position relationship between the first touch position and the reference position of the target control; and control the virtual character to move in the game scene according to the moving direction.

[0082] Optionally, the first control module 10 is used to adjust the moving speed of the virtual character in the game scene in real time based on the relative distance relationship between the first touch position and the reference position.

[0083] Optionally, the first control module 10 is used to control the movement of the virtual character in the game scene according to the moving direction and the moving speed.

[0084] Optionally, the second control module 30 is used to control the virtual character to release a displacement skill along the moving direction in the game scene, and teleport from a first position where the virtual character is currently located to a second position, wherein the teleportation distance between the first position and the second position is determined by the attributes of the displacement skill.

[0085] Optionally, the second control module 30 is used to control the virtual character to release a displacement skill along the moving direction in the game scene, and adjust the first moving speed currently used by the virtual character to a second moving speed within a preset time period, wherein the second moving speed is greater than the first moving speed, and the preset time period is determined by the attributes of the displacement skill.

[0086] Optionally, the second control module 30 is used to determine the movement direction of the virtual character in the game scene based on the relative position relationship between the second touch position and the reference position of the target control; in response to the end instruction of the second touch operation, control the virtual character to move in the game scene according to the movement direction; in response to the continuous position change of the third touch position of the third touch operation within the target touch area, determine the skill indication direction of the displacement skill; in response to the end instruction of the third touch operation, adjust the movement direction according to the skill indication direction; control the virtual character to release the displacement skill along the adjusted movement direction in the game scene.

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

[0088] An embodiment of the present invention further provides a non-volatile storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

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

[0090] S1, responding to a first touch operation performed on a target control, controlling a virtual character to move in a game scene based on a first touch position of the first touch operation;

[0091] S2, in response to a second touch operation performed on the target control, generating a target touch area based on a second touch position of the second touch operation, wherein the target touch area is used to trigger the virtual character to release a displacement skill;

[0092] S3, responding to a third touch operation performed on the target touch area, controlling the virtual character to release a displacement skill in the game scene.

[0093] Optionally, in this embodiment, the above-mentioned non-volatile storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0094] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

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

[0096] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0097] S1, responding to a first touch operation performed on a target control, controlling a virtual character to move in a game scene based on a first touch position of the first touch operation;

[0098] S2, in response to a second touch operation performed on the target control, generating a target touch area based on a second touch position of the second touch operation, wherein the target touch area is used to trigger the virtual character to release a displacement skill;

[0099] S3, responding to a third touch operation performed on the target touch area, controlling the virtual character to release a displacement skill in the game scene.

[0100] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0101] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0102] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0103] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0104] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0105] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0106] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of 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 method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0107] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A virtual character control method, It is characterized in that A graphical user interface is provided through a terminal device, and the content displayed by the graphical user interface at least partially includes a game scene. The virtual character control method includes: In response to a first touch operation performed on a target control, controlling the virtual character to move in the game scene based on a first touch position of the first touch operation; In response to a second touch operation performed on the target control, a target touch area is generated based on a second touch position of the second touch operation, wherein the target touch area is used to trigger the virtual character to release a displacement skill, and the target touch area is located within the touch range of the target control or in an adjacent area outside the touch range of the target control; In response to a third touch operation performed on the target touch area, the virtual character is controlled to release a displacement skill in the game scene.

2. The virtual character control method according to claim 1, It is characterized in that Generating the target touch area based on the second touch position includes: Based on the second touch position, the target touch area is generated within the touch range of the target control.

3. The virtual character control method according to claim 1, It is characterized in that Generating the target touch area based on the second touch position includes: Based on the second touch position, the target touch area is generated in an adjacent area outside the touch range of the target control.

4. The virtual character control method according to claim 1, It is characterized in that Controlling the virtual character to move in the game scene based on the first touch position includes: Determining a moving direction of the virtual character in the game scene based on a relative position relationship between the first touch position and a reference position of the target control; The virtual character is controlled to move in the game scene according to the moving direction.

5. The virtual character control method according to claim 4, It is characterized in that The virtual character control method further comprises: Based on the relative distance relationship between the first touch position and the reference position, the moving speed of the virtual character in the game scene is adjusted in real time.

6. The virtual character control method according to claim 5, It is characterized in that Controlling the virtual character to move in the game scene according to the moving direction includes: The virtual character is controlled to move in the game scene according to the moving direction and the moving speed.

7. The virtual character control method according to claim 4, It is characterized in that Controlling the virtual character to release the displacement skill in the game scene includes: The virtual character is controlled to release the displacement skill along the moving direction in the game scene, and teleports from a first position where the virtual character is currently located to a second position, wherein the teleportation distance between the first position and the second position is determined by the attributes of the displacement skill.

8. The virtual character control method according to claim 4, It is characterized in that Controlling the virtual character to release the displacement skill in the game scene includes: Control the virtual character to release the displacement skill along the moving direction in the game scene, and adjust the first moving speed currently used by the virtual character to a second moving speed within a preset time period, wherein the second moving speed is greater than the first moving speed, and the preset time period is determined by the attributes of the displacement skill.

9. The virtual character control method according to claim 1, It is characterized in that Controlling the virtual character to release the displacement skill in the game scene includes: Determining a moving direction of the virtual character in the game scene based on a relative position relationship between the second touch position and a reference position of the target control; In response to an end instruction of the second touch operation, controlling the virtual character to move in the game scene according to the moving direction; In response to a continuous position change of a third touch position of the third touch operation within the target touch area, determining a skill indication direction of the displacement skill; In response to an end instruction of the third touch operation, adjusting the moving direction according to the skill indication direction; The virtual character is controlled to release the displacement skill along the adjusted moving direction in the game scene.

10. A virtual character control device, It is characterized in that A graphical user interface is provided through a terminal device, and the content displayed by the graphical user interface at least partially includes a game scene. The virtual character control device includes: A first control module, configured to respond to a first touch operation performed on a target control, and control the virtual character to move in the game scene based on a first touch position of the first touch operation; A generating module, configured to respond to a second touch operation performed on the target control, and to generate a target touch area based on a second touch position of the second touch operation, wherein the target touch area is used to trigger the virtual character to release a displacement skill, and the target touch area is located within the touch range of the target control or in an adjacent area outside the touch range of the target control; The second control module is used to respond to a third touch operation performed on the target touch area, and control the virtual character to release a displacement skill in the game scene.

11. A non-volatile storage medium, It is characterized in that The storage medium stores a computer program, wherein the computer program is configured to execute the virtual character control method described in any one of claims 1 to 9 when running.

12. An electronic device comprising a memory and a processor, It is characterized in that The memory stores a computer program, and the processor is configured to run the computer program to execute the virtual character control method described in any one of claims 1 to 9.