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

By setting up virtual joysticks and teleportation control areas in the game scene, game characters can teleport in response to dragging operations, solving the problem of monotonous movement methods for game characters and improving the richness of game skills and user experience.

CN115501601BActive Publication Date: 2025-12-05NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211204761.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-29
Publication Date
2025-12-05
Estimated Expiration
2042-09-29

AI Technical Summary

Technical Problem

Existing game character movement methods are monotonous, resulting in a poor user experience and a lack of variety.

Method used

By setting up a virtual joystick in the game scene, a teleportation control area is generated in response to dragging operations. The teleportation direction is determined based on the dragging position and direction, and the teleportation skill is released to realize the teleportation of the game character.

Benefits of technology

It has increased the richness of game skills, simplified the operation process, enhanced the user experience, and the teleportation skill can be completed with one hand, reducing the operation time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115501601B_ABST
    Figure CN115501601B_ABST
Patent Text Reader

Abstract

The application discloses a virtual character control method and device, a storage medium and an electronic device. The method comprises the following steps: in response to a first dragging operation on a virtual joystick in a movement control area, controlling a target virtual character to move in a game scene; in response to the first dragging operation meeting a preset condition, generating a teleportation control area in the movement control area, the teleportation control area being used for triggering the target virtual character to release a teleportation skill; in response to a second dragging operation on the virtual joystick in the teleportation control area, determining a teleportation direction of the target virtual character according to a dragging position of the second dragging operation; and in response to the end of the second dragging operation, controlling the target virtual character to release the teleportation skill according to a corresponding teleportation direction at the end position, so that the teleportation skill of the game character can be realized, and the richness of the game skill is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of games, and in particular to a virtual character control method and device, a storage medium and an electronic device. BACKGROUND

[0002] In the design process of games and application programs, a virtual joystick capable of controlling the movement of a game character is usually set in a game interface, and a user controls the movement of the game character by dragging the virtual joystick.

[0003] However, the existing movement mode is only walking and running, which is monotonous and has poor user experience. SUMMARY

[0004] The present application provides a virtual character control method and device, a storage medium and an electronic device, which can realize the teleportation skill of a game character and improve the richness of game skills.

[0005] The present application provides a virtual character control method, which provides a graphical user interface by an electronic device, the content displayed by the graphical user interface at least partially contains a game scene, the game scene includes a target virtual character, a movement control area, and a virtual joystick located in the movement control area, and the virtual character control method includes:

[0006] In response to a first dragging operation on the virtual joystick in the movement control area, the target virtual character is controlled to move in the game scene;

[0007] In response to the first dragging operation satisfying a preset condition, a teleportation control area is generated in the movement control area, and the teleportation control area is used to trigger the target virtual character to release a teleportation skill;

[0008] In response to a second dragging operation on the virtual joystick in the teleportation control area, the teleportation direction of the target virtual character is determined according to the dragging position of the second dragging operation;

[0009] In response to the end of the second dragging operation, the target virtual character is controlled to release a teleportation skill according to the corresponding teleportation direction at the end position.

[0010] The present application also provides a virtual character control device, which provides a graphical user interface by an electronic device, the content displayed by the graphical user interface at least partially contains a game scene, the game scene includes a target virtual character, a movement control area, and a virtual joystick located in the movement control area, and the virtual character control device includes:

[0011] a control module, configured to control the target virtual character to move in the game scene in response to a first dragging operation on the virtual joystick in the movement control area;

[0012] a generation module, configured to generate a teleportation control area in the movement control area in response to the first dragging operation meeting a preset condition, the teleportation control area being used to trigger the target virtual character to release a teleportation skill;

[0013] a determination module, configured to determine a teleportation direction of the target virtual character according to a dragging position of a second dragging operation on the virtual joystick in the teleportation control area in response to the second dragging operation;

[0014] a release module, configured to control the target virtual character to release the teleportation skill according to a corresponding teleportation direction at an ending position in response to an end of the second dragging operation.

[0015] In some embodiments, before generating the teleportation control area in the movement control area in response to the first dragging operation meeting the preset condition, the generation module is further configured to:

[0016] obtain a dragging position and a dragging direction of the first dragging operation;

[0017] determine that the first dragging operation meets the preset condition when a distance between the dragging position and a target reference position reaches a target threshold value and the dragging direction is a preset direction.

[0018] In some embodiments, the movement control area further comprises a joystick chassis area, the target reference position is a center position of the joystick chassis area, and before detecting that the distance between the dragging position and the target reference position reaches the target threshold value, the generation module is further configured to:

[0019] obtain a radius value of the joystick chassis area;

[0020] determine a product between the radius value and a preset multiple;

[0021] when the product is not less than a preset maximum threshold value, taking the preset maximum threshold value as the target threshold value;

[0022] when the product is less than the preset maximum threshold value, taking the product as the target threshold value.

[0023] In some embodiments, the generation module is specifically configured to:

[0024] generate an arc line of a preset angle in the movement control area with the target reference position as a center position and with the target threshold value as a radius value;

[0025] The region where the arc line is located and the region around the arc line are taken as a teleportation control region.

[0026] In some embodiments, the determining module is specifically configured to:

[0027] obtain a current visual angle direction of the target virtual character;

[0028] determine a line connecting a drag position of the second drag operation and the target reference position, and determine an included angle between the line and a preset straight line;

[0029] determine a direction after the visual angle direction is rotated by the included angle, and take the rotated direction as a teleportation direction of the target virtual character.

[0030] In some embodiments, after obtaining the current visual angle direction of the target virtual character, the determining module is further configured to:

[0031] display a targeting prompt icon in the game scene according to the visual angle direction;

[0032] after taking the rotated direction as the teleportation direction of the target virtual character, the method further includes updating a display position of the targeting prompt icon in the game scene according to the teleportation direction.

[0033] In some embodiments, the game scene further includes at least one virtual object, and after displaying the targeting prompt icon in the game scene according to the visual angle direction, the determining module is further configured to:

[0034] in response to a first touch operation on any virtual object in the game scene, determine a screen magnification region according to a touch position of the first touch operation;

[0035] generate a magnification interface in the game scene, the magnification interface including a magnified screen in the screen magnification region at a preset magnification ratio;

[0036] in response to a second touch operation on the magnification interface, determine a teleportation direction according to a touch position of the second touch operation.

[0037] In some embodiments, the releasing module is specifically configured to:

[0038] take the teleportation direction corresponding to the end position as a target teleportation direction;

[0039] control the target virtual character to release a teleportation skill along the target teleportation direction.

[0040] The embodiment of the application further provides a computer readable storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute any of the virtual character control methods.

[0041] The embodiment of the application further provides an electronic device, which comprises a coupled memory and a processor, the memory stores a computer program, and the processor is used to run the computer program in the memory to execute any of the virtual character control methods.

[0042] The virtual character control method, device, storage medium and electronic device provided by the application can control the target virtual character to move in the game scene in response to the first dragging operation on the virtual joystick in the movement control area, then generate a teleportation control area in the movement control area in response to the first dragging operation meeting a preset condition, the teleportation control area is used to trigger the target virtual character to release a teleportation skill, then determine the teleportation direction of the target virtual character according to the dragging position of the second dragging operation on the virtual joystick in the teleportation control area in response to the second dragging operation on the virtual joystick in the teleportation control area, and finally control the target virtual character to release the teleportation skill according to the corresponding teleportation direction at the end position in response to the end of the second dragging operation, so that the teleportation skill of the game character can be realized, the richness of the game skill is improved, the release of the teleportation skill can be completed by single-hand operation, the operation time is reduced, the operation process is simplified, and the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS

[0043] The technical solutions and other beneficial effects of the application will be apparent from the following detailed description of the specific embodiments of the application, combined with the accompanying drawings.

[0044] Figure 1 The application scenario of the virtual character control method provided by the embodiment of the application is shown in the figure.

[0045] Figure 2 The flowchart of the virtual character control method provided by the embodiment of the application is shown in the figure.

[0046] Figure 3 The operation flowchart of the teleportation control area generation process provided by the embodiment of the application is shown in the figure.

[0047] Figure 4 Another flowchart of the virtual character control method provided by the embodiment of the application is shown in the figure.

[0048] Figure 5 The operation flowchart of the target virtual character releasing teleportation skill provided by the embodiment of the application is shown in the figure.

[0049] Figure 6 The structure diagram of the virtual character control device provided by the embodiment of the application is shown in the figure.

[0050] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0051] Figure 8 Another structural schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation

[0052] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0053] It should be noted that the terms "first," "second," etc., used in this document are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. Furthermore, the terms "comprising" and / or "including" as used herein specify the presence of the stated features, integers, steps, operations, units, and / or components, without excluding the presence or addition of one or more other features, integers, steps, operations, units, components, and / or combinations thereof.

[0054] This application provides a virtual character control method, device, storage medium, and electronic device.

[0055] This virtual character control method can be applied to, for example... Figure 1 The hardware environment shown consists of electronic devices such as terminal 101 and server 102. Figure 1 In this embodiment, server 102 connects to terminal 101 via a network and can be used to provide services (e.g., cloud gaming services) to the terminal or clients installed on the terminal (e.g., game clients). A database can be set up on server 102 or on other devices independent of server 102 to provide data storage services to server 102. Terminal 101 can provide a graphical user interface (GUI) to present the game screen to the player and obtain the player's operation commands. The aforementioned network includes, but is not limited to, wide area networks (WANs), metropolitan area networks (MANs), or local area networks (LANs), and terminal 101 is not limited to personal computers (PCs), mobile phones, tablets, etc. The virtual character control method provided in this application embodiment can be executed by server 102, terminal 101, or jointly by server 102 and terminal 101.

[0056] Please see Figure 2 , Figure 2is a flowchart of a virtual character control method provided by an embodiment of the present application. The virtual character control method is applied to an electronic device such as a server or a terminal. The electronic device provides a graphical user interface. The content displayed by the graphical user interface at least partially includes a game scene. The game scene includes a target virtual character, a movement control area, and a virtual joystick located in the movement control area. The specific process of the virtual character control method can include the following steps S101-S104.

[0057] S101. In response to a first dragging operation on the virtual joystick in the movement control area, the target virtual character is controlled to move in the game scene.

[0058] The game scene can include multiple virtual characters. The target virtual character usually refers to a virtual character controlled by a player account currently logged in the electronic device. The target virtual character can include a character role, an animal role, or other image game roles. The virtual joystick can have various forms. For example, please refer to Figure 3 , Figure 3 is an operation flowchart of a teleportation control area generation process provided by an embodiment of the present application. Figure 3 The virtual joystick Q in is in the form of a circular icon. The movement control area AA is mainly used to limit the movable range of the virtual joystick Q. The player can drag the virtual joystick Q to any position in the movement control area AA. During the dragging process, the target virtual character R moves in the game scene following the movement of the virtual joystick Q. The movement mainly refers to walking or running.

[0059] The setting position and area size of the movement control area can be determined according to requirements. Considering that the operation habits of players are to control the movement of the character with the left hand and control the attack of the character with the right hand, the movement control area can be set in the left lower area of the game interface, such as in the above Figure 3 The movement control area AA is located in the left lower area of the game interface. The size of the movement control area AA is the system default size. Of course, the system can also provide a setting interface for the player to adjust the setting position and area size of the movement control area according to the player's own requirements. For example, players with small hands or players using electronic devices with small screens can reduce the area size of the movement control area or change the setting position of the movement control area.

[0060] S102. In response to the first dragging operation satisfying a preset condition, a teleportation control area is generated in the movement control area. The teleportation control area is used to trigger the target virtual character to release a teleportation skill.

[0061] The instant moving skill refers to moving from one place to another in a very short time, which is negligible compared to walking or running. The preset condition can be set according to the pressing force, the dragging position and / or the dragging direction of the first dragging operation, or other parameters. For example, the preset condition can be that the dragging direction of the first dragging operation is a specified direction, and the pressing force is greater than a specified pressing force.

[0062] In some embodiments, the preset condition is set according to the dragging position and the dragging direction, for example, please refer to Figure 4 Before the step 102, the virtual character control method can further include:

[0063] S1051. detecting the dragging position and the dragging direction of the first dragging operation;

[0064] S1052. determining that the first dragging operation meets the preset condition when the distance between the dragging position and the target reference position reaches a target threshold, and the dragging direction is a preset direction.

[0065] The target reference position can be a fixed position or a non-fixed position on the game interface, and the distance between the target reference position and the dragging position can be regarded as the dragging distance. The target reference position, the target threshold and the preset direction can be set by default by the system, such as the above Figure 3 The target reference position can be a fixed position O, which is the initial setting position of the virtual joystick Q, and the preset direction N can be the forward direction indicated by the arrow. The target threshold is mainly used to determine whether the player needs to move normally (such as walking and running) or to move instantaneously. Considering that in many current games, the player only needs to drag the virtual joystick for a short distance to trigger normal movement, in order to distinguish between normal movement and instantaneous movement, the target threshold can be set to a relatively large value. In order to further avoid misjudgment, the dragging distance and the dragging direction need to be combined to analyze whether the player wants to move instantaneously or normally. Only when the dragging distance reaches the target threshold and the dragging direction is the preset direction, it can be considered that the preset condition is met, and it is determined that the player needs to move instantaneously. In order to improve the fault tolerance of the player's operation, the dragging direction of the first dragging operation can be allowed to deviate from the preset direction by a certain angle, that is, within a certain angle range of the preset direction, it is considered to be the preset direction.

[0066] In some embodiments, please continue to refer to Figure 3 The moving control area AA can further include a joystick base area BB, and the target reference position is the center position of the joystick base area BB. Before the step of "determining that the first dragging operation meets the preset condition", the virtual character control method can further include:

[0067] obtaining a radius value of the rocker chassis region;

[0068] determining a product between the radius value and a preset multiple;

[0069] when the product is not less than a preset maximum threshold, taking the preset maximum threshold as a target threshold;

[0070] when the product is less than the preset maximum threshold, taking the product as the target threshold.

[0071] wherein the size of the target threshold can change along with the change of the size of the rocker chassis region, generally, the larger the rocker chassis region is, the larger the target threshold can be. The size of the rocker chassis region can be set by the player according to the operation habit and the device hardware condition, a maximum area, a minimum area and an initial area can be set for the rocker chassis region in advance, and the player can enlarge or reduce the rocker chassis region based on the initial area in proportion, as long as the maximum area and the minimum area are not exceeded. The preset multiple can be artificially set, for example, when the preset multiple is set to 3 and the radius value of the rocker chassis region is r, the target threshold is 3r. Please continue to refer to the above Figure 3 , the rocker chassis region BB is a circular region, and the center position is generally the initial setting position O of the virtual rocker Q, which is also the target reference position. When the player drags the virtual rocker Q to move to other positions, if the distance between the dragging position and the target reference position reaches 3r, and the preset direction N is the front direction, it is determined that the first dragging operation meets the preset condition.

[0072] It should be pointed out that when it is determined that the first dragging operation meets the preset condition, the instant movement control region can be generated based on the display position of the rocker chassis region. In some embodiments, the above-mentioned step "generating an instant movement control region in the movement control region" can specifically include:

[0073] generating an arc line of a preset angle in the movement control region, with the target reference position as the center position and with the target threshold as the radius value;

[0074] taking the region where the arc line is located and the region around the arc line as the instant movement control region.

[0075] wherein the preset angle can be artificially set to 120°, which is more consistent with the field of view of the human eye. Of course, the preset angle can also be set to other angles, such as 180°, etc. Please continue to refer to Figure 3When the virtual joystick Q is dragged forward to a position of 3r distance, an arc line m can be drawn in the movement control area, the arc line m has the center position of the joystick base area BB as the center position and has an arc angle of 120°, and the instant movement control area CC can be a sector area including the arc line m and having a width substantially consistent with the diameter of the virtual joystick Q. Of course, in other embodiments, the instant movement control area CC can also have other shapes or other presentations, which are not limited herein.

[0076] In some embodiments, the instant movement control area can coincide with or partially coincide with the movement control area, for example, the instant movement control area coincides with or contains the upper half of the movement control area, which is related to the setting of the preset direction. When the first dragging operation meets the preset condition, an auxiliary track control is provided in the instant movement control area, the movement of the virtual joystick is limited on the auxiliary track control during the instant movement operation, the position of the virtual joystick on the auxiliary track control is adjusted according to the second dragging operation, and the instant movement direction of the target virtual character is determined according to the position of the virtual joystick on the auxiliary track control. The auxiliary track control can be a strip or a circular arc, or other track shapes. Through the auxiliary track control, the instant movement direction of the target virtual character can be controlled within a certain dimension, because according to the specific setting of the game, the target virtual character cannot be instantaneously moved to any point in the game scene.

[0077] In addition, after the instant movement control area is generated, the user can be prompted in a certain way, such as flashing or highlighting the arc line, and the flashing or highlighting can be cancelled after the instant movement skill is released.

[0078] S103. In response to the second dragging operation of the virtual joystick in the instant movement control area, determining the instant movement direction of the target virtual character according to the dragging position of the second dragging operation.

[0079] In some embodiments, after the instant movement control area is generated, the movement range of the virtual joystick previously moved in or around the joystick base area is changed to the instant movement control area, and then the player can determine the instant movement direction by dragging the virtual joystick in the instant movement control area to release the instant movement skill.

[0080] In some embodiments, please continue to refer to Figure 4 The above step S103 can specifically include:

[0081] S1031. Obtaining the current visual angle direction of the target virtual character;

[0082] S1032. Determining the line connecting the dragging position of the second dragging operation and the target reference position, and determining the included angle between the line and the preset straight line;

[0083] S1033. Determine the direction of the included angle after the perspective direction is rotated, and take the rotated direction as the teleport direction of the target virtual role.

[0084] Wherein, the preset straight line can be a longitudinal straight line passing through the target reference position, and the included angle between the connecting line and the preset straight line has positive and negative sizes, such as -30° and +30°, the included angle on the left side of the midpoint of the arc line can be defined as negative, and the included angle on the right side of the midpoint of the arc line is positive. At the initial moment of triggering the generation of the teleport control area, the perspective direction of the target virtual role is straight ahead, and as the virtual joystick moves in the teleport control area, the perspective direction of the target virtual role also changes. For example, please refer to Figure 5 , Figure 5 The operation flow diagram provided by the embodiment of the application for the target virtual role to release the teleport skill, wherein if the current perspective direction of the target virtual role R before moving is straight ahead, when the player drags the virtual joystick Q to move along the arc line m and makes the included angle between the connecting line between the dragging position and the target reference position and the longitudinal straight line be -30°, the direction of rotating 30° to the left from the current perspective is the teleport direction of the target virtual role R.

[0085] It is easy to understand that in the process of the player dragging the virtual joystick Q to move along the arc line m, the teleport direction of the target virtual role is updated in real time, and the teleport direction can be real-time prompted to the player in a certain way, that is, after obtaining the current perspective direction of the target virtual role, the virtual role control method can further include:

[0086] Displaying a aiming prompt icon in the game scene according to the perspective direction;

[0087] After taking the rotated direction as the teleport direction of the target virtual role, further including: updating the display position of the aiming prompt icon in the game scene according to the teleport direction.

[0088] Wherein, please continue to refer to Figure 5 , the virtual joystick Q is initially located at the midpoint of the arc line m, at this time, the teleport direction is straight ahead, and the aiming prompt icon q is located in the straight ahead, and when the player drags the virtual joystick Q to slide 30° to the left, the teleport direction is the current perspective rotating 30° to the left, and the position of the aiming prompt icon q also moves to the corresponding position of the teleport direction. In addition to as Figure 5The position of the aiming prompt icon q in the embodiment shown moves according to the operation of the player dragging the virtual joystick Q, and the rendering perspective of the game scene does not change; another embodiment can also be that the position of the aiming prompt icon q is always located at the center of the graphical user interface, and the rendering perspective of the game scene is changed according to the operation of the player dragging the virtual joystick Q, so that the position pointed to by the aiming prompt icon q is changed. At this time, if the player releases the hand, the second dragging operation ends, and the target virtual object R teleports to the position indicated by the aiming prompt icon q, completing the release of the teleportation skill.

[0089] In some embodiments, the game scene can further include at least one virtual object, and after the aiming prompt icon is displayed in the game scene, the method further includes:

[0090] In response to a first touch operation on any of the virtual objects in the game scene, a screen magnification area is determined according to the touch position of the first touch operation;

[0091] A magnification interface is generated in the game scene, and the magnification interface includes a magnified screen that magnifies the game screen in the screen magnification area by a preset ratio;

[0092] In response to a second touch operation on the magnification interface, a teleportation direction is determined according to the touch position of the second touch operation.

[0093] In some embodiments, the virtual object is a display object other than the target virtual object in the game scene, which can be a display object of a person, an animal, or other images, such as mountains, walls, etc. When the player wants to adjust the teleportation direction, in addition to the way of moving in the teleportation control area by dragging the virtual joystick, if the player needs to quickly and accurately teleport to the side of a certain object, the player can first select a certain large area by a first touch operation such as clicking, which is defined as a screen magnification area. The screen magnification area can be a fixed area, which can be a circular area centered on the touch position of the first touch operation. Then, the screen magnification area is displayed by the magnification interface. At this time, multiple virtual objects such as cows, mountains, and people can appear in the screen magnification area. The player can further select the virtual object to be teleported to by a second touch operation such as clicking, and the connecting line direction between the selected virtual object and the current position of the target virtual object is the teleportation direction, so that the teleportation direction is selected without moving step by step by dragging the virtual joystick, and the teleportation operation speed is improved.

[0094] S104. In response to the end of the second dragging operation, the target virtual character releases the teleportation skill according to the corresponding teleportation direction at the end position.

[0095] When the player releases the pressing on the virtual joystick, the second dragging operation can be considered to be ended.

[0096] In some embodiments, please continue to refer to the above Figure 4 The step S104 can specifically include:

[0097] S1041. Taking the corresponding teleportation direction at the end position as a target teleportation direction;

[0098] S1042. Controlling the target virtual character to release a teleportation skill along the target teleportation direction.

[0099] The target teleportation direction can or can not have other virtual objects. The teleportation skill can be released without a target, i.e., can teleport to any position in the game scene, in which case, the teleportation can be performed according to a maximum teleportation distance set by the system. The teleportation skill can also be released with a target, i.e., can only teleport to the side of other virtual objects, in which case, when there is a virtual object in the target teleportation direction, the virtual character can be directly teleported to the side of the virtual object, and when there are multiple virtual objects in the target teleportation direction, the virtual character can be teleported to the side of the virtual object with the highest priority according to the priorities of the virtual objects. Generally, the priorities of the virtual objects are set in advance according to object types, such as virtual objects of a character type (such as virtual objects controlled by other game players), which have a higher priority than virtual objects of an animal type (such as monsters), and virtual objects of the animal type have a higher priority than virtual objects of a non-living type (such as mountains and walls).

[0100] As can be seen from the above, the virtual character control method provided in this embodiment can control a target virtual character to move in a game scene in response to a first dragging operation on a virtual joystick in a movement control area, then generate a teleportation control area in the movement control area in response to the first dragging operation meeting a preset condition, the teleportation control area is used to trigger the target virtual character to release a teleportation skill, then determine a teleportation direction of the target virtual character according to a dragging position of a second dragging operation on the virtual joystick in the teleportation control area in response to the second dragging operation, and then control the target virtual character to release the teleportation skill according to a teleportation direction corresponding to an end position in response to the end of the second dragging operation, so as to realize the teleportation skill of the game character, improve the richness of the game skill, and complete the release of the teleportation skill by single-hand operation, reduce the operation time, simplify the operation process, and improve the user experience.

[0101] Based on the method described in the above embodiments, this embodiment will be further described from the perspective of a virtual character control device, which can be implemented as an independent entity and can be applied to an electronic device such as a server or a terminal. The terminal can include a mobile phone, a tablet computer, a personal PC, etc. The server can be a server capable of providing a game service.

[0102] Please refer to Figure 6 , Figure 6 The virtual character control device provided by the embodiments of the present application is specifically described. The virtual character control device is applied to an electronic device, and a graphical user interface is provided by the electronic device. The content displayed by the graphical user interface at least partially contains a game scene, and the game scene includes a target virtual character, a movement control area, and a virtual joystick located in the movement control area. The virtual character control device can include a control module 10, a generation module 20, a determination module 30, and a release module 40, wherein:

[0103] (1) Control module 10

[0104] The control module 10 is configured to control the target virtual character to move in the game scene in response to a first drag operation on the virtual joystick in the movement control area.

[0105] (2) Generation module 20

[0106] The generation module 20 is configured to generate a teleport control area in the movement control area in response to the first drag operation satisfying a preset condition, and the teleport control area is used to trigger the target virtual character to release a teleport skill.

[0107] In some embodiments, before the generation module 20 generates a teleport control area in the movement control area in response to the first drag operation satisfying a preset condition, the generation module 20 is further configured to:

[0108] Obtain a drag position and a drag direction of the first drag operation;

[0109] When it is detected that the distance between the drag position and the target reference position reaches a target threshold, and the drag direction is a preset direction, it is determined that the first drag operation satisfies the preset condition.

[0110] In some embodiments, the movement control area further includes a joystick chassis area, and the target reference position is a center position of the joystick chassis area. Before the generation module 20 detects that the distance between the drag position and the target reference position reaches the target threshold, the generation module 20 is further configured to:

[0111] Obtain a radius value of the joystick chassis area;

[0112] determining a product between the radius value and a preset multiple;

[0113] when the product is not less than a preset maximum threshold, taking the preset maximum threshold as a target threshold;

[0114] when the product is less than the preset maximum threshold, taking the product as the target threshold.

[0115] In some embodiments, the generating module 20 is specifically configured to:

[0116] generating an arc line of a preset angle in the movement control region, with the target reference position as a center position and with the target threshold as a radius value;

[0117] taking a region where the arc line is located and a region around the arc line as a teleport control region.

[0118] (3) Determining module 30

[0119] The determining module 30 is configured to determine a teleport direction of the target virtual character according to a drag position of a second drag operation of the virtual joystick in the teleport control region in response to the second drag operation of the virtual joystick in the teleport control region.

[0120] In some embodiments, the determining module 30 is specifically configured to:

[0121] obtaining a current visual angle direction of the target virtual character;

[0122] determining a line connecting the drag position of the second drag operation and the target reference position, and determining an included angle between the line and a preset straight line;

[0123] determining a direction after the visual angle direction is rotated by the included angle, and taking the rotated direction as the teleport direction of the target virtual character.

[0124] In some embodiments, after obtaining the current visual angle direction of the target virtual character, the determining module 30 is further configured to:

[0125] displaying a sight-aiming prompt icon in the game scene according to the visual angle direction;

[0126] after taking the rotated direction as the teleport direction of the target virtual character, the method further includes updating a display position of the sight-aiming prompt icon in the game scene according to the teleport direction.

[0127] In some embodiments, the game scene further includes at least one virtual object, and after displaying the sight-aiming prompt icon in the game scene according to the visual angle direction, the determining module 30 is further configured to:

[0128] determining a zoom-in area according to a touch position of the first touch operation in response to the first touch operation on any of the virtual objects in the game scene;

[0129] generating a zoom-in interface in the game scene, the zoom-in interface including a zoomed-in picture of a game picture in the zoom-in area;

[0130] determining a teleport direction according to a touch position of the second touch operation in response to a second touch operation on the zoom-in interface.

[0131] (4) a releasing module 40

[0132] The releasing module 40 is configured to control the target virtual character to release a teleport skill according to the teleport direction corresponding to the end position in response to an end of the second dragging operation.

[0133] In some embodiments, the releasing module is specifically configured to:

[0134] take the teleport direction corresponding to the end position as a target teleport direction;

[0135] control the target virtual character to release a teleport skill along the target teleport direction.

[0136] In implementation, each of the above modules can be implemented as an independent entity, or can be combined as the same or several entities, and the implementation of each of the above modules can be referred to the method embodiments above, which will not be described here.

[0137] In addition, the embodiments of the present application also provide an electronic device, which can be a smart phone, a tablet computer or the like. As shown in Figure 7 The electronic device 200 includes a processor 201 and a memory 202. The processor 201 is electrically connected to the memory 202.

[0138] The processor 201 is the control center of the electronic device 200, and connects each part of the electronic device through various interfaces and lines. By running or loading the application program stored in the memory 202 and calling the data stored in the memory 202, the processor 201 can execute various functions and process data of the electronic device, thereby monitoring the whole electronic device.

[0139] In the embodiment, the processor 201 in the electronic device 200 loads the instructions corresponding to the processes of one or more application programs into the memory 202, and runs the application program stored in the memory 202 by the processor 201, thereby realizing various functions.

[0140] Figure 8 A specific structural block diagram of an electronic device provided by an embodiment of the present application is shown, which can be used to implement the virtual character control method provided in the above embodiments. The electronic device 300 can include a smart phone or a server.

[0141] The electronic device can include a processor 301 with one or more processing cores, a memory 302 with one or more computer readable storage media, a radio frequency (RF) circuit 303, a power supply 304, an input unit 305, a display unit 306, and the like. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the electronic device, and can include more or fewer components than shown in the figure, or combine certain components, or different component arrangements. Among them:

[0142] The processor 301 is the control center of the electronic device. The processor connects various parts of the entire electronic device through various interfaces and lines, executes the software programs and / or modules stored in the memory 302, and calls the data stored in the memory 302, to perform various functions and process data of the electronic device, thereby overall monitoring the electronic device. Optionally, the processor can include one or more processing cores; preferably, the processor can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor.

[0143] The memory 302 can be used to store software programs (computer programs) and modules, and the processor 301 executes various functions and data processing by running the software programs and modules stored in the memory 302. The memory 302 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), and the like; the data storage area can store data created according to the use of the electronic device, etc. In addition, the memory 302 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory 302 can also include a memory controller to provide access for the processor 301 to the memory 302.

[0144] The RF circuit 303 can be used in the process of receiving and transmitting signals in the process of transmitting and receiving information. In particular, after receiving the downlink information from the base station, the processor 301 processes the information. In addition, the data related to the uplink is transmitted to the base station. Generally, the RF circuit 303 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 303 can also communicate with the network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to the global system for mobile communication (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), and the like.

[0145] The electronic device also includes a power supply 304 (such as a battery) for supplying power to each component. Preferably, the power supply 304 can be logically connected to the processor 301 through a power management system, so that the power management system can realize the functions of managing charging, discharging, and power consumption management, etc. The power supply 304 can also include one or more direct or alternating current power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.

[0146] The electronic device can further include an input unit 305 that can be used to receive inputted digital or character information, and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. Specifically, in one particular embodiment, the input unit 305 can include a touch-sensitive surface and other input devices. The touch-sensitive surface, also known as a touch display or touchpad, can collect touch operations by a user thereon or proximate thereto (such as operations by a user using a finger, a stylus, or any suitable object or accessory on or proximate to the touch-sensitive surface), and drive corresponding connected devices according to pre-set programs. Optionally, the touch-sensitive surface can include two parts, a touch detection device and a touch controller. The touch detection device detects the touch position of a user and detects signals resulting from touch operations, and transmits the signals to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch coordinates, and sends it to the processor 301, and can also receive commands from the processor 301 and execute them. In addition, the touch-sensitive surface can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface, the input unit 305 can also include other input devices. Specifically, the other input devices can include one or more of a physical keyboard, function keys (such as volume control keys, on / off keys, etc.), a trackball, a mouse, a joystick, etc.

[0147] The electronic device can further include a display unit 306 that can be used to display information input by a user or information provided to a user, as well as various graphical user interfaces of the electronic device, which can be composed of graphics, text, icons, video, and any combination thereof. The display unit 306 includes a plurality of hardware display processing units, a video frame processing module, a display screen, etc. The plurality of hardware display processing units and the video frame processing module can be integrated in a processing chip. The display screen can include a display panel, which can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch-sensitive surface can cover the display panel, and when the touch-sensitive surface detects a touch operation thereon or proximate thereto, it transmits to the processor 301 to determine the type of touch event, and then the processor 301 provides corresponding visual output on the display panel according to the type of touch event. Although in the figure, the touch-sensitive surface and the display panel are implemented as two independent components to achieve input and output functions, in some embodiments, the touch-sensitive surface and the display panel can be integrated to achieve input and output functions.

[0148] Although not shown, the electronic device can further include a camera, a Bluetooth module, etc., which will not be described herein. In the present embodiment, the processor 301 in the electronic device loads one or more executable files corresponding to processes of one or more application programs into the memory 302 according to the following instructions, and runs the application programs stored in the memory 302 by the processor 301, thereby implementing various functions, as follows:

[0149] in response to a first drag operation on the virtual joystick in the movement control area, control the target virtual character to move in the game scene;

[0150] in response to the first drag operation satisfying a preset condition, generate a teleport control area in the movement control area, the teleport control area being used to trigger the target virtual character to release a teleport skill;

[0151] in response to a second drag operation on the virtual joystick in the teleport control area, determine a teleport direction of the target virtual character according to a drag position of the second drag operation;

[0152] in response to an end of the second drag operation, control the target virtual character to release the teleport skill according to the teleport direction corresponding to the end position.

[0153] In some embodiments, before generating the teleport control area in the movement control area in response to the first drag operation satisfying the preset condition, the method further includes:

[0154] obtaining a drag position and a drag direction of the first drag operation;

[0155] when detecting that a distance between the drag position and a target reference position reaches a target threshold, and the drag direction is a preset direction, determining that the first drag operation satisfies the preset condition.

[0156] In some embodiments, the movement control area further includes a joystick chassis area, and the target reference position is a center position of the joystick chassis area. Before detecting that the distance between the drag position and the target reference position reaches the target threshold, the method further includes:

[0157] obtaining a radius value of the joystick chassis area;

[0158] determining a product between the radius value and a preset multiple;

[0159] when the product is not less than a preset maximum threshold, taking the preset maximum threshold as the target threshold;

[0160] when the product is less than the preset maximum threshold, taking the product as the target threshold.

[0161] In some embodiments, the generating a transient control region in the movement control region comprises:

[0162] generating an arc line of a preset angle in the movement control region, with the target reference position as a center position and with the target threshold value as a radius value;

[0163] taking the region where the arc line is located and the region around the arc line as the transient control region.

[0164] In some embodiments, the determining the transient direction of the target virtual character according to the drag position of the second drag operation comprises:

[0165] obtaining a current visual angle direction of the target virtual character;

[0166] determining a connecting line between the drag position of the second drag operation and the target reference position, and determining an included angle between the connecting line and a preset straight line;

[0167] determining a direction after the visual angle direction is rotated by the included angle, and taking the rotated direction as the transient direction of the target virtual character.

[0168] In some embodiments, after the current visual angle direction of the target virtual character is obtained, the method further comprises:

[0169] displaying a sight-aiming prompt icon in the game scene according to the visual angle direction;

[0170] after the rotated direction is taken as the transient direction of the target virtual character, the method further comprises updating a display position of the sight-aiming prompt icon in the game scene according to the transient direction.

[0171] In some embodiments, the game scene further comprises at least one virtual object, and after the sight-aiming prompt icon is displayed in the game scene according to the visual angle direction, the method further comprises:

[0172] in response to a first touch operation on any virtual object in the game scene, determining a screen magnification region according to a touch position of the first touch operation;

[0173] generating a magnification interface in the game scene, the magnification interface comprising a magnified screen of a preset magnification ratio of a game screen in the screen magnification region;

[0174] in response to a second touch operation on the magnification interface, determining a transient direction according to a touch position of the second touch operation.

[0175] In some embodiments, the controlling the target virtual character to release the teleportation skill according to the teleportation direction corresponding to the end position comprises:

[0176] taking the teleportation direction corresponding to the end position as a target teleportation direction;

[0177] controlling the target virtual character to release the teleportation skill along the target teleportation direction.

[0178] The electronic device can implement the steps in any embodiment of the virtual character control method provided in the embodiments of the present application, and thus can implement the beneficial effects of any virtual character control method provided in the embodiments of the present application. Details are described above, and will not be described here.

[0179] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions (computer programs) or controlled by related hardware by instructions (computer programs). The instructions can be stored in a computer readable storage medium and loaded and executed by a processor.

[0180] To this end, the embodiments of the present application provide a computer readable storage medium, which stores a computer program capable of being loaded by a processor to execute the steps of any embodiment of the virtual character control method provided in the embodiments of the present application. For example, the computer program can execute the following steps:

[0181] in response to a first drag operation of the virtual joystick in the movement control area, controlling the target virtual character to move in the game scene;

[0182] in response to the first drag operation satisfying a preset condition, generating a teleportation control area in the movement control area, the teleportation control area being used to trigger the target virtual character to release a teleportation skill;

[0183] in response to a second drag operation of the virtual joystick in the teleportation control area, determining a teleportation direction of the target virtual character according to a drag position of the second drag operation;

[0184] in response to the end of the second drag operation, controlling the target virtual character to release the teleportation skill according to the teleportation direction corresponding to the end position.

[0185] In some embodiments, before generating the teleportation control area in the movement control area in response to the first drag operation satisfying the preset condition, the method further comprises:

[0186] obtaining a drag position and a drag direction of the first drag operation;

[0187] When it is detected that the distance between the dragging position and the target reference position reaches a target threshold, and the dragging direction is a preset direction, it is determined that the first dragging operation meets a preset condition.

[0188] In some embodiments, the movement control region further comprises a joystick base region, and the target reference position is a center position of the joystick base region. Before it is detected that the distance between the dragging position and the target reference position reaches a target threshold, the method further comprises:

[0189] Obtaining a radius value of the joystick base region;

[0190] Determining a product between the radius value and a preset multiple;

[0191] When the product is not less than a preset maximum threshold, the preset maximum threshold is taken as the target threshold;

[0192] When the product is less than the preset maximum threshold, the product is taken as the target threshold.

[0193] In some embodiments, the generating a transient control region in the movement control region comprises:

[0194] Generating an arc line of a preset angle in the movement control region, with the target reference position as a center position and with the target threshold as a radius value;

[0195] Taking a region where the arc line is located and a region around the arc line as the transient control region.

[0196] In some embodiments, the determining a transient direction of the target virtual character according to the dragging position of the second dragging operation comprises:

[0197] Obtaining a current visual angle direction of the target virtual character;

[0198] Determining a line between the dragging position of the second dragging operation and the target reference position, and determining an included angle between the line and a preset straight line;

[0199] Determining a direction after the visual angle direction is rotated by the included angle, and taking the rotated direction as the transient direction of the target virtual character.

[0200] In some embodiments, after the current visual angle direction of the target virtual character is obtained, the method further comprises:

[0201] Displaying a sight-aiming prompt icon in the game scene according to the visual angle direction;

[0202] After the rotated direction is taken as the teleportation direction of the target virtual character, the display position of the aiming prompt icon in the game scene is updated according to the teleportation direction.

[0203] In some embodiments, the game scene further includes at least one virtual object, and after the aiming prompt icon is displayed in the game scene according to the view angle direction, the method further includes:

[0204] In response to a first touch operation on any virtual object in the game scene, a screen magnification area is determined according to a touch position of the first touch operation.

[0205] A magnification interface is generated in the game scene, and the magnification interface includes a magnified screen in the screen magnification area.

[0206] In response to a second touch operation on the magnification interface, a teleportation direction is determined according to a touch position of the second touch operation.

[0207] In some embodiments, the controlling the target virtual character to release a teleportation skill according to the teleportation direction corresponding to the end position includes:

[0208] The teleportation direction corresponding to the end position is taken as a target teleportation direction.

[0209] The target virtual character is controlled to release a teleportation skill along the target teleportation direction.

[0210] The specific implementation of each operation can refer to the foregoing embodiments, which will not be described here.

[0211] The computer readable storage medium can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0212] The computer program stored in the storage medium can execute the steps of any virtual character control method embodiment provided by the embodiments of the present application, and thus can achieve the beneficial effects of any virtual character control method provided by the embodiments of the present application. Details are described in the foregoing embodiments, which will not be described here.

[0213] The virtual character control method and device, the electronic device, and the storage medium provided by the embodiments of the present application are described in detail above, and the principles and implementation manners of the present application are described by applying specific examples. The above description of the embodiments is only used to help understand the method of the present application and its core idea; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manners and application ranges will be changed, and the above description should not be understood as a limitation on the present application.

Claims

1. A virtual character control method, characterized by, Providing a graphical user interface by an electronic device, content displayed by the graphical user interface at least partially contains a game scene, the game scene includes a target virtual character, a movement control area, and a virtual joystick located in the movement control area, and a virtual character control method includes: controlling the target virtual character to move in the game scene in response to a first dragging operation on the virtual joystick in the movement control area; obtaining a dragging position and a dragging direction of the first dragging operation; when it is detected that a distance between the dragging position and a target reference position reaches a target threshold, and the dragging direction is a preset direction, determining that the first dragging operation meets a preset condition; generating a teleportation control area in the movement control area in response to the first dragging operation meeting the preset condition, the teleportation control area is used to trigger the target virtual character to release a teleportation skill; in response to a second dragging operation on the virtual joystick in the teleportation control area, determining a teleportation direction of the target virtual character according to a dragging position of the second dragging operation, and displaying a aiming prompt icon in the game scene, wherein a position of the aiming prompt icon is updated in real time according to the dragging position; controlling the target virtual character to teleport to a position indicated by the aiming prompt icon in response to an end of the second dragging operation.

2. The virtual character control method of claim 1, wherein, The movement control area further includes a joystick chassis area, and the target reference position is a center position of the joystick chassis area, and before it is detected that the distance between the dragging position and the target reference position reaches the target threshold, the method further includes: obtaining a radius value of the joystick chassis area; determining a product between the radius value and a preset multiple; when the product is not less than a preset maximum threshold, taking the preset maximum threshold as the target threshold; when the product is less than the preset maximum threshold, taking the product as the target threshold.

3. The virtual character control method of claim 1, wherein, The generating of the teleportation control area in the movement control area includes: generating an arc line of a preset angle in the movement control area with the target reference position as a center position and with the target threshold as a radius value; and taking an area where the arc line is located and an area around the arc line as the teleportation control area.

4. The virtual character control method of claim 1, wherein, The determining of the teleportation direction of the target virtual character according to the dragging position of the second dragging operation includes: obtaining a current visual angle direction of the target virtual character; determining a line between the dragging position of the second dragging operation and the target reference position, and determining an included angle between the line and a preset straight line; determining a direction after the visual angle direction is rotated by the included angle, and taking the rotated direction as the teleportation direction of the target virtual character.

5. The virtual character control method of claim 4, wherein, After the current visual angle direction of the target virtual character is obtained, the method further includes: displaying the aiming prompt icon in the game scene according to the visual angle direction. After the rotated direction is taken as the teleportation direction of the target virtual character, the method further includes: updating a display position of the aiming prompt icon in the game scene according to the teleportation direction.

6. The virtual character control method of claim 5, wherein, The game scene further comprises at least one virtual object, and after the aiming prompt icon is displayed in the game scene according to the view angle direction, the game scene further comprises: In response to a first touch operation on any of the virtual objects in the game scene, a picture zoom area is determined according to a touch position of the first touch operation; An enlarged interface is generated in the game scene, and the enlarged interface comprises an enlarged picture of a game picture in the picture zoom area in a preset zoom ratio; In response to a second touch operation on the enlarged interface, a teleportation direction is determined according to a touch position of the second touch operation.

7. The virtual character control method of any one of claims 1-6, wherein, The control of the target virtual character to release a teleportation skill according to the teleportation direction corresponding to the end position comprises: The teleportation direction corresponding to the end position is taken as a target teleportation direction; The target virtual character is controlled to release a teleportation skill along the target teleportation direction.

8. A virtual character control apparatus characterized by comprising: The virtual character control device is applied to an electronic device, and a graphical user interface is provided by the electronic device, wherein content displayed by the graphical user interface at least partially comprises a game scene, and the game scene comprises a target virtual character, a movement control region, and a virtual joystick in the movement control region, and the virtual character control device comprises: A control module configured to control the target virtual character to move in the game scene in response to a first drag operation on the virtual joystick in the movement control region; A generation module configured to obtain a drag position and a drag direction of the first drag operation, determine that the first drag operation satisfies a preset condition when it is detected that a distance between the drag position and a target reference position reaches a target threshold value and the drag direction is a preset direction, and generate a teleportation control region in the movement control region in response to the first drag operation satisfying the preset condition, wherein the teleportation control region is used to trigger the target virtual character to release a teleportation skill; A determination module configured to determine a teleportation direction of the target virtual character according to a drag position of a second drag operation on the virtual joystick in the teleportation control region and display an aiming prompt icon in the game scene in response to the second drag operation, wherein a position of the aiming prompt icon is updated in real time according to the drag position; A release module configured to control the target virtual character to teleport to a position indicated by the aiming prompt icon in response to an end of the second drag operation.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute the virtual character control method in any one of claims 1 to 7.

10. An electronic device, comprising: The memory stores a computer program, and the processor is configured to execute the computer program in the memory to execute the steps in the virtual character control method in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Virtual character control method, nonvolatile storage medium and electronic device

    CN113908550A

  • Virtual joystick-based control method and apparatus, and device

    WO2018113490A1