Character control method and apparatus, electronic device, and computer-readable storage medium
By setting up first and second control areas on the graphical user interface, the movement speed of the virtual game character can be dynamically adjusted, solving the problem of insufficient flexibility in virtual joystick control, improving the flexibility of game character movement, and saving rendering resources.
Patent Information
- Application Number
- PCT/CN2025/097752
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-05
- Filing Date
- 2025-05-28
- Publication Date
- 2025-12-11
AI Technical Summary
In existing technologies, the method of controlling the speed of virtual game characters by dragging a virtual joystick has low flexibility, resulting in large variations in the movement speed of game characters and affecting the rendering efficiency of game scenes.
By setting preset first and second control areas on the graphical user interface, the virtual game character can be controlled to move at different speeds in response to sliding operations in different areas. The speed can be dynamically adjusted by utilizing the initial position and the relative position of the sliding operation, thus achieving flexible speed control.
It improves the speed control flexibility of virtual game characters, reduces the differences between game scenes, and saves computer resources for electronic devices to render game scenes.
Smart Images

Figure CN2025097752_11122025_PF_FP_ABST
Abstract
Description
Character control method and device, electronic device, and computer-readable storage medium
[0001] Cross-reference to Related Applications
[0002] This application claims priority to Chinese Patent Application No. 202410727553.0, filed on June 5, 2024, and entitled “Character control method and device, electronic device, and computer-readable storage medium,” the entire contents of which are incorporated herein by reference. TECHNICAL FIELD
[0003] The present disclosure relates to the technical field of games, and specifically relates to a character control method, device, electronic device, and computer-readable storage medium. BACKGROUND
[0004] With the development of science and technology, there are more and more types of electronic games. For example, an electronic game can be a first-person shooting game (FPS).
[0005] In a first-person shooting game, a player can control a virtual game character to move at different speeds by dragging a virtual joystick. However, the flexibility of the current way of controlling the speed of the virtual game character by dragging the virtual joystick is low. SUMMARY
[0006] The embodiments of the present disclosure provide a character control method, device, electronic device, and computer-readable storage medium, which can improve the flexibility of controlling the speed of a virtual game character.
[0007] In a first aspect, the embodiments of the present disclosure provide a character control method. A graphical user interface is provided by an electronic device. The graphical user interface includes a preset first control area and a second control area located at the periphery of the first control area. The first control area includes an initial position. The method includes the following steps:
[0008] In response to a first sliding operation acting on the first control area, a target virtual game character is controlled to move at a predetermined first speed.
[0009] In response to a second sliding operation acting on the second control area, the target virtual game character is controlled to move at a second speed according to the relative position of the initial position and a touch point corresponding to the second sliding operation on the graphical user interface.
[0010] In a second aspect, the embodiments of the present disclosure further provide a character control apparatus, which provides a graphical user interface through an electronic device, the graphical user interface comprising a preset first control area and a second control area located at the periphery of the first control area, the first control area comprising an initial position, and the apparatus comprising:
[0011] a first response module configured to perform a response to a first sliding operation acting on the first control area, and control the target virtual game character to move at a predetermined first speed;
[0012] a second response module configured to perform a response to a second sliding operation acting on the second control area, and control the target virtual game character to move at a second speed according to the initial position and the relative position of a touch point corresponding to the second sliding operation on the graphical user interface.
[0013] In a third aspect, the embodiments of the present disclosure further provide an electronic device, which comprises a memory storing a plurality of instructions, and a processor loading the instructions from the memory to execute any of the character control methods provided by the embodiments of the present disclosure.
[0014] In a fourth aspect, the embodiments of the present disclosure further provide a computer readable storage medium, which stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute any of the character control methods provided by the embodiments of the present disclosure.
[0015] In the embodiments of the present disclosure, the graphical user interface is provided through an electronic device, the graphical user interface comprising a preset first control area and a second control area located at the periphery of the first control area, the first control area comprising an initial position, a response to a first sliding operation acting on the first control area controls the target virtual game character to move at a predetermined first speed, and a response to a second sliding operation acting on the second control area controls the target virtual game character to move at a second speed according to the initial position and the relative position of a touch point corresponding to the second sliding operation on the graphical user interface, so as to realize the control of the target virtual game character to move at different speeds in the first control area and the second control area, and the control of the target virtual game character to move at different second speeds in the second control area according to different relative positions. This not only improves the flexibility of the speed of the target virtual game character, but also reduces the variation range of the speed of the target virtual game character, thereby reducing the difference between different game scenes embodied by the movement of the target virtual game character, and further saving the computer resources consumed by the electronic device to render the game scenes. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] FIG. 1 is a schematic diagram of a graphical user interface provided by one of the embodiments of the present disclosure;
[0018] FIG. 2 is a schematic diagram of an embodiment of a character control method provided by one of the embodiments of the present disclosure;
[0019] FIG. 3 is a schematic diagram of a first control area and a second control area provided by one of the embodiments of the present disclosure;
[0020] FIG. 4 is another schematic diagram of a first control area and a second control area provided by one of the embodiments of the present disclosure;
[0021] FIG. 5 is a schematic diagram of a first sliding operation provided by one of the embodiments of the present disclosure;
[0022] FIG. 6 is a schematic diagram of a second sliding operation provided by one of the embodiments of the present disclosure;
[0023] FIG. 7 is a schematic diagram of a third control area provided by one of the embodiments of the present disclosure;
[0024] FIG. 8 is a schematic diagram of a lock sub-control and an interface display sub-control provided by one of the embodiments of the present disclosure;
[0025] FIG. 9 is a schematic diagram of a joystick control interface provided by one of the embodiments of the present disclosure;
[0026] FIG. 10 is another schematic diagram of a joystick control interface provided by one of the embodiments of the present disclosure;
[0027] FIG. 11 is another schematic diagram of a joystick control interface provided by one of the embodiments of the present disclosure;
[0028] FIG. 12 is a schematic diagram of a change of a second control area provided by one of the embodiments of the present disclosure;
[0029] FIG. 13 is a schematic diagram of a change of a second control area and a first control area provided by one of the embodiments of the present disclosure;
[0030] FIG. 14 is another schematic diagram of a graphical user interface provided by one of the embodiments of the present disclosure;
[0031] FIG. 15 is a schematic diagram of a speed sub-control provided by one of the embodiments of the present disclosure;
[0032] FIG. 16 is a structural schematic diagram of a role control device according to an embodiment of the present disclosure;
[0033] FIG. 17 is a structural schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0034] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present disclosure.
[0035] Before the embodiments of the present disclosure are explained in detail, some terms related to the embodiments of the present disclosure are explained.
[0036] In the description of the embodiments of the present disclosure, the terms "first", "second", and the like can be used herein to describe various concepts, but unless specifically stated, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product, or device including a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0037] The embodiments of the present disclosure provide a role control method, device, electronic device, and computer readable storage medium. Specifically, the role control method of the embodiments of the present disclosure can be executed by an electronic device, which can be a terminal or a server, etc.
[0038] The terminal can be a terminal device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), etc. The terminal can also include a client, which can be a game application client, a browser client carrying a game program, or an instant messaging client, etc.
[0039] The server can be a standalone physical server, a server cluster or a distributed system composed of multiple physical servers, a cloud server providing cloud services, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, content delivery network (CDN), and basic cloud computing services such as big data and artificial intelligence platform.
[0040] The graphical user interface provided by the embodiments of the present disclosure will be described in detail below according to FIG. 1.
[0041] In the embodiments of the present disclosure, at least part of the game scene and many controls can be displayed on the graphical user interface. FIG. 1 only illustrates the controls on the graphical user interface, and the graphical user interface can also include controls other than those shown in FIG. 1.
[0042] 101 in FIG. 1 represents a fire control, which is used to control the virtual game character to fire. The 102 control in FIG. 1 represents a left probe control, which is used to control the left probe of the virtual game character. The 103 control in FIG. 1 represents a right probe control, which is used to control the right probe of the virtual game character. The 104 in FIG. 1 represents a cancel throwing object control, which is used to cancel the throwing of the throwing object.
[0043] 1051 in FIG. 1 represents an operation point, 1052 in FIG. 1 represents a first control area, and 1053 in FIG. 1 represents a second control located at the periphery of the first control area. The first control area, the second control area, and the operation point can constitute a virtual joystick, which is used to control the speed of the virtual game character movement. The player can control the target virtual game character to move at different speeds by dragging the operation point to the first control area and / or the second control area.
[0044] 106 in FIG. 1 represents a medical supply control, which is used to store the medical supplies possessed by the virtual game character. 107 in FIG. 1 represents a main weapon bar, which is used to control the main weapon of the virtual game character. 108 in FIG. 1 represents a secondary weapon bar, which is used to control the secondary weapon of the virtual game character. 109 in FIG. 1 represents a blood bar, which is used to display the blood volume of the virtual game character. 1010 in FIG. 1 represents a throwing object control, which is used to throw the throwing object.
[0045] 1011 in FIG. 1 represents a helmet control for displaying a helmet status. 1012 in FIG. 1 represents an armor control for displaying an armor status. 1013 in FIG. 1 represents a hunger status control for displaying a hunger status of a virtual game character. 1014 in FIG. 1 represents a probe hint control for setting a probe prop. 1015 in FIG. 1 represents a shooting mode control for switching between an automatic shooting mode and a semi-automatic shooting mode. 1016 in FIG. 1 represents a melee weapon control for controlling a melee weapon. 1017 in FIG. 1 represents a pistol control for controlling a pistol.
[0046] 1018 in FIG. 1 represents a reload control for controlling a virtual game character to switch bullets. 1019 in FIG. 1 represents a crouch control for controlling a virtual game character to perform a crouching action. 1020 in FIG. 1 represents a prone control for controlling a virtual game character to perform a prone action. 1021 in FIG. 1 represents a jump control for controlling a virtual game character to perform a jumping action.
[0047] 1022 in FIG. 1 represents a magnification switching control for switching magnification of a scope. 1023 in FIG. 1 represents a scope control for controlling a scope to aim at a virtual object. 1024 in FIG. 1 represents an outside world help control for seeking help from out-of-game lobby players and / or friends. 1025 in FIG. 1 represents a nearby help control for seeking help from in-game players. 1026 in FIG. 1 represents an inspection control for inspecting a weapon. 1027 in FIG. 1 represents a setting control for setting a first control region and / or a second control region. 1028 in FIG. 1 represents a rescue control for rescuing other players. 1029 in FIG. 1 represents a skill control for setting a duration of a skill.
[0048] 1030 in FIG. 1 represents a pet control for releasing a pet of a virtual game character. 1031 in FIG. 1 represents a focused skill control for releasing a focused skill. 1032 in FIG. 1 represents a marker control for marking a certain location. 1033 in FIG. 1 represents a chat control for sending and receiving messages in a game session. 1034 in FIG. 1 represents a speaker control for playing sounds in a game session. 1035 in FIG. 1 represents a microphone control for collecting a player's voice. 1036 in FIG. 1 represents a game setting control for setting related configurations in a game session. 1037 in FIG. 1 represents a motion control for controlling related motions of a virtual game character. 1038 in FIG. 1 represents a flashlight. 1039 in FIG. 1 represents a pickable resource. 1040 in FIG. 1 represents a storm progress bar.
[0049] The following will be described in detail with reference to the accompanying drawings. It should be noted that the sequence of the following embodiments is not limited as the preferred sequence of the embodiments. Although the logical sequence is shown in the flowchart, in some cases, the steps shown or described can be performed in an order different from that shown in the accompanying drawings.
[0050] In the embodiment, the terminal is taken as an example, a graphical user interface is provided by the terminal, the graphical user interface includes a preset first control area and a second control area located at the periphery of the first control area, the first control area includes an initial position, the embodiment provides a role control method, as shown in FIG. 2, the specific process of the role control method can be as follows:
[0051] 201, in response to a first sliding operation acting on the first control area, controlling the target virtual game role to move at a predetermined first speed.
[0052] The first control area refers to an area for controlling the target virtual game role to move at a predetermined first speed. The second control area refers to an area for controlling the target virtual game role to move at a second speed, and the second speed is a dynamically changing speed. The area shape of the first control area and the area shape of the second control area can be set according to actual conditions, for example, the first control area can be a rectangular control area, and the second control area can be a rectangular ring control area, as shown in FIG. 3, for another example, the first control area can be a circular control area, and the second control area can be a ring control area, as shown in 401 of FIG. 4, which is not limited in the embodiment of the present disclosure.
[0053] It should be understood that when the first control area is a circular control area, the first control area can also be as shown in 402 of FIG. 4, at this time, a ring is used to represent the periphery of the first control area, and when the first control area is as shown in 401 of FIG. 4, a line is used to represent the periphery of the first control area.
[0054] The terminal can fixedly display an operation point on the first control area, and control the target virtual game role to move at a predetermined first speed by controlling the operation point to slide in the first control area, and control the target virtual game role to move at a second speed by sliding the operation point to the second control area.
[0055] Alternatively, the terminal can also display an operation point in response to a trigger operation acting on the first control area, and then control the target virtual game role to move at a predetermined first speed by controlling the operation point to slide in the first control area, and control the target virtual game role to move at a second speed by sliding the operation point to the second control area.
[0056] The initial position in the first control region, i.e. the position where the operation point is located. When the operation point is fixedly displayed on the first control region, the operation point can be located at the center position of the first control region, and the initial position is the center position of the first control region. At this time, the operation point can be displayed as shown in FIG. 4.
[0057] When the operation point is displayed in response to the trigger operation on the first control region, the initial position is the trigger position corresponding to the trigger operation on the first control region. At this time, the trigger operation on the first control region can be another separate operation, or the trigger operation on the first control region can be the first sliding operation.
[0058] When the trigger operation on the first control region is another separate operation, the terminal can first display the operation point at the click position corresponding to the click operation on the first control region in response to the click operation on the first control region, and the initial position is the click position corresponding to the click operation. Then, the terminal controls the target virtual game character to move at the predetermined first speed in response to the first sliding operation of the operation point in the first control region.
[0059] When the trigger operation on the first control region is the first sliding operation, the terminal displays the operation point at the starting sliding position of the first sliding operation in response to the first sliding operation in the first control region, and then controls the operation point to move along with the first sliding operation and controls the target virtual game character to move at the predetermined first speed. At this time, the initial position is the starting sliding position of the first sliding operation.
[0060] It should be understood that when the terminal controls the target virtual game character to move at the predetermined first speed in response to the first sliding operation of the operation point in the first control region, the terminal can control the operation point to move along with the first sliding operation. The moving direction of the operation point is the sliding direction of the first sliding operation, and the moving distance of the operation point is the sliding distance of the first sliding operation.
[0061] For example, when the first sliding operation is as shown in 501 of FIG. 5, the moving result of the operation point along with the first sliding operation can be as shown in 502 of FIG. 5.
[0062] When the terminal controls the operation point to move along with the first sliding operation, the terminal can determine the moving direction of the operation point, and control the moving direction of the target virtual game character according to the moving direction of the operation point. The moving direction of the operation point is the moving direction of the target virtual game character. For example, when the first sliding operation is as shown in 501 of FIG. 5, the sliding direction corresponding to the first sliding operation is the right direction, and the target virtual game character is controlled to move at the first speed in the right direction.
[0063] The target virtual game character refers to a virtual game character controlled by the terminal in a game scene. The first speed is a pre-set speed. The specific value of the first speed can be set according to actual conditions. For example, the first speed can be 2A / B or 1A / B, A / B represents a speed unit, A represents a length unit, and B represents a time unit, which is not limited in the embodiments of the present disclosure.
[0064] 202. In response to a second sliding operation acting on the second control area, the target virtual game character is controlled to move at a second speed according to the initial position and the relative position of the touch point on the graphical user interface corresponding to the second sliding operation.
[0065] The touch point of the second sliding operation on the graphical user interface refers to the sliding position corresponding to the second sliding operation on the second control area. For example, as shown in FIG. 6, each position on the arrow of the second sliding operation can be a touch point.
[0066] When the relative positions of the touch points are different, the second speeds are also different, that is, the second speed corresponding to the second control area includes multiple, which realizes that the target virtual game character is controlled to move at different second speeds through one second control area. Compared with the mode that the target virtual game character is controlled to move at one second speed through one second control area, the change range of the speed of the target virtual game character can be reduced, thereby reducing the difference between different game scenes reflecting the movement of the target virtual game character, and further saving the computer resources consumed by the electronic device to render the game scene.
[0067] For example, the first speed can be 2A / B, when the second speed is one, the second speed is 6A / B, and the change range between the first speed and the second speed is large, when the second speed is multiple, the second speed can be between 2-6A / B, and the change range between the first speed and the second speed is small. When the speed of the target virtual game character changes from the first speed to the second speed, the game scene containing the target virtual game character can change from the first game scene to the second game scene. If the change range between the first speed and the second speed is large, the difference between the first game scene and the second game scene is large, and the computer resources consumed by rendering the game scene are more, if the change range between the first speed and the second speed is small, the difference between the first game scene and the second game scene is small, and the computer resources consumed by rendering the game scene are less, thereby saving the computer resources consumed by rendering the game scene.
[0068] Optionally, the relative position can correspond to a second speed, for example, the relative position includes a1-an meters, and the second speed corresponding to the second control region is located between 2-6 A / B, when the relative position is a1 meter, the second speed is 2.1 A / B, and when the relative position is a2 meter, the second speed is 2.2 A / B.
[0069] Alternatively, the relative position can correspond to a second speed, and in this case, the relative position can be in the same position interval and correspond to a second speed. For example, the relative position includes a1-an meters, and the second speed corresponding to the second control region is located between 2-6 A / B, when the relative position is a1-a3 meters, the second speed is 2.1 A / B, and when the relative position is a4-a6 meters, the second speed is 2.2 A / B.
[0070] It should be noted that the second speed corresponding to the second control region can be a uniform speed or a non-uniform speed. For example, when the second speed corresponding to the second control region is a uniform speed and the second speed corresponding to the second control region is located between 2-6 A / B, the second speed can be 2.1 A / B, 2.2 A / B, and 2.3 A / B. For another example, when the second speed corresponding to the second control region is a non-uniform speed and the second speed corresponding to the second control region is located between 2-6 A / B, the second speed can be 3 A / B, 4 A / B, and 5 A / B.
[0071] In some embodiments, the farther the relative position is from the initial position, the greater the second speed corresponding to the relative position, and the closer the relative position is to the initial position, the smaller the second speed corresponding to the relative position, or the farther the relative position is from the initial position, the smaller the second speed corresponding to the relative position, and the closer the relative position is to the initial position, the greater the second speed corresponding to the relative position.
[0072] When the farther the relative position is from the initial position, the greater the second speed corresponding to the relative position, and the closer the relative position is to the initial position, the smaller the second speed corresponding to the relative position, in response to the second sliding operation acting on the second control region, the target virtual game character is controlled to move at the second speed according to the relative position between the initial position and the touch point on the graphical user interface corresponding to the second sliding operation, including:
[0073] In response to the second sliding operation acting on the second control region, the relative position between the initial position and the touch point on the graphical user interface corresponding to the second sliding operation is determined;
[0074] determining a second speed corresponding to the relative position, wherein the second speed corresponding to the relative position close to the initial position is smaller than the second speed corresponding to the relative position far from the initial position;
[0075] controlling the target virtual game character to move at the second speed.
[0076] wherein the second speed corresponding to the relative position close to the initial position is smaller than the second speed corresponding to the relative position far from the initial position, it can be understood that the farther the relative position is from the initial position, the greater the second speed corresponding to the relative position is, and the closer the relative position is to the initial position, the smaller the second speed corresponding to the relative position is.
[0077] For example, the initial position is the center position of the first control area, the second speed corresponding to the second control area is between 2A / B and 6A / B, when the relative position is closer to the periphery of the first control area (the periphery of the first control area is shown in FIG. 6), that is, when the relative position is closer to the initial position, the second speed is closer to 2A / B, and the second speed is slower, when the relative position is closer to the periphery of the second control area (the periphery of the second control area is shown in FIG. 6), that is, when the relative position is farther from the initial position, the second speed is closer to 6A / B, and the second speed is faster.
[0078] Exemplarily, as shown in FIG. 6, when the touch point corresponding to the second sliding operation on the graphical user interface is the b1 point, the relative position is a1 meter, when the touch point corresponding to the second sliding operation on the graphical user interface is the b2 point, the relative position is a2 meter, a1 meter is smaller than a2 meter, and the second speed corresponding to a1 meter is smaller than the second speed corresponding to a2 meter.
[0079] In some embodiments, the graphical user interface further comprises a third control area located at the periphery of the second control area, and the embodiments of the present disclosure further comprise:
[0080] controlling the target virtual game character to move at a predetermined third speed in response to a third sliding operation acting on the third control area.
[0081] wherein the third speed is different from the first speed and the second speed, and the value of the third speed can be set according to actual conditions, for example, the first speed can be 2A / B, the second speed can be between 2A / B and 6A / B, and the third speed can be 6A / B, at this time, the first speed is smaller than the second speed, and the second speed is smaller than the third speed, for another example, the first speed can be 6A / B, the second speed can be between 2A / B and 6A / B, and the third speed can be 2A / B, at this time, the first speed is greater than the second speed, and the second speed is greater than the third speed, which is not limited in the embodiments of the present disclosure.
[0082] Optionally, the area range of the third control region can be limited or not limited. When the area range of the third control region is limited, the third control region can be as shown in FIG. 7. When the area range of the third control region is not limited, the area of the graphical user interface outside the second control region can be the third control region.
[0083] In the embodiments of the present disclosure, the graphical user interface further comprises a third control region located outside the second control region, so as to control the target virtual game character to move at a predetermined third speed in response to a third sliding operation acting on the third control region, and to realize the control of the target virtual game character to move at the first speed, the second speed or the third speed.
[0084] In some embodiments, when the third sliding operation is detected to slide to a certain position in the third control region and be released, the moving speed of the target virtual game character can be locked to the third speed, and the target virtual game character can be controlled to move at the third speed.
[0085] In some embodiments, when the first speed is less than the second speed, and the second speed is less than the third speed, when the target virtual game character moves at the first speed, the target virtual game character can be said to move in a slow-moving manner, when the target virtual game character moves at the second speed, the target virtual game character can be said to move in a normal-moving manner, and when the target virtual game character moves at the third speed, the target virtual game character can be said to move in a fast-moving manner.
[0086] In some embodiments, after the target virtual game character is controlled to move, the method further comprises:
[0087] According to the moving speed of the target virtual game character, the character index information of the target virtual game character is adjusted to obtain adjusted character index information, and the character index information affects the survival state of the target virtual game character in the game.
[0088] The adjusted character index information is displayed to prompt the player to adjust the moving speed of the target virtual game character according to the adjusted character index information.
[0089] The character index information refers to information indicating some indexes of the target virtual game character, which can be set according to actual conditions, for example, the character index information can be a temperature value, a physical value, a blood volume or an oxygen volume of the target virtual game character, and the embodiments of the present disclosure are not limited herein.
[0090] The character index information can be represented by a numerical value. The character index information affects the survival state of the target virtual game character in the game. It can be understood that the smaller the character index information, the higher the survival probability of the target virtual game character in the game, and the larger the character index information, the lower the survival probability of the target virtual game character in the game. For example, when the character index information represents the temperature value of the target virtual game character, the larger the temperature value of the target virtual game character, the higher the probability of the target virtual game character being attacked by other virtual game characters, and the lower the survival probability of the target virtual game character. Alternatively, the larger the character index information, the higher the survival probability of the target virtual game character in the game, and the smaller the character index information, the lower the survival probability of the target virtual game character in the game. For example, when the character index information represents the blood volume of the target virtual game character, the larger the blood volume of the target virtual game character, the smaller the probability of the target virtual game character being attacked to death, and the higher the survival probability of the target virtual game character.
[0091] The speed of the movement of the target virtual game character and the character index information can have a positive correlation relationship. For example, the character index information can be the temperature value of the target virtual game character. The faster the target virtual game character moves, the larger the temperature value of the target virtual game character. The slower the target virtual game character moves, the smaller the temperature value of the target virtual game character. Alternatively, the speed of the movement of the target virtual game character and the character index information can have a negative correlation relationship. For example, the character index information can be the oxygen volume of the target virtual game character. The faster the target virtual game character moves, the smaller the oxygen volume of the target virtual game character. The slower the target virtual game character moves, the larger the oxygen volume of the target virtual game character.
[0092] In the embodiments of the present disclosure, the character index information of the target virtual game character is adjusted according to the speed of the movement of the target virtual game character, to obtain adjusted character index information. The character index information affects the survival state of the target virtual game character in the game. The adjusted character index information is displayed to prompt the player to adjust the speed of the movement of the target virtual game character according to the adjusted character index information, so that the player can control the speed of the movement of the target virtual game character, thereby ensuring the survival state of the target virtual game character in the game.
[0093] In some embodiments, the graphical user interface further includes a setting control. The embodiments of the present disclosure further include:
[0094] In response to a first triggering operation on the setting control, the movement speed of the target virtual game character is locked as a first speed.
[0095] In response to a sliding operation performed on different control regions, a target virtual game character is controlled to move at a first speed, the different control regions including a first control region and a second control region.
[0096] When the graphical user interface includes a third control region, the different control regions can further include the third control region. The type of the first trigger operation can be set according to actual conditions, for example, the first trigger operation can be a click operation or a long press operation, which is not limited in the embodiments of the present disclosure.
[0097] The position of the setting control on the graphical user interface can be set according to actual conditions, for example, the setting control on the graphical user interface can be as shown in FIG. 6, which is not limited in the embodiments of the present disclosure.
[0098] In the embodiments of the present disclosure, in response to the first trigger operation on the setting control, the moving speed of the target virtual game character is locked at the first speed, at this time, when a sliding operation is detected in the different control regions, the target virtual game character can be directly controlled to move at the first speed, which realizes locking the speed of the target virtual game character, so that the player can lock the speed of the target virtual game character according to his own needs, and improves the game experience.
[0099] In some embodiments, when the speed at which the target virtual game character moves affects the character index information of the target virtual game character, the character index information affects the survival state of the target virtual game character in the game, the first speed is less than the second speed, the second speed is less than the third speed, and the faster the speed, the lower the survival probability of the target virtual game character in the game indicated by the character index information, the speed of the target virtual game character is locked at the first speed, which can ensure the survival rate of the target virtual game character in the game.
[0100] For example, the first speed is the speed corresponding to the static moving mode, the character index information is the temperature value of the target virtual game character, and the faster the target virtual game character moves, the faster the temperature value of the target virtual game character rises. When the temperature value of the target virtual game character rises to a temperature threshold, the target virtual game character will be attacked by other virtual game characters and thus the survival probability of the target virtual game character in the game is reduced. Therefore, the speed of the target virtual game character can be locked at the first speed to reduce the rising speed of the temperature value of the target virtual game character, so that the temperature value of the target virtual game character will not rise to the temperature threshold.
[0101] In some embodiments, the embodiments of the present disclosure further include:
[0102] displaying a joystick control interface on the graphical user interface, the joystick control interface including a control for adjusting a control region, the control region including a first control region and / or a second control region;
[0103] In response to the triggering operation on the control, the first control region and / or the second control region is adjusted.
[0104] The joystick control interface can be displayed on the graphical user interface within the game session or outside the game session.
[0105] The terminal can display the joystick control interface on the graphical user interface in response to a setting event. The setting event can be obtained in various ways, such as collecting the player's voice, recognizing the voice to obtain a recognition result, and generating a setting event based on the recognition result, or the graphical user interface includes a setting control, and a setting event is generated in response to a second triggering operation on the setting control, or the terminal can generate a setting event in response to a long-press operation on the operation point, which is not limited in the embodiments of the present disclosure.
[0106] When the setting event is generated in response to the second triggering operation on the setting control, the second triggering operation and the first triggering operation can be the same type of triggering operation or can not be the same type of triggering operation. When the second triggering operation and the first triggering operation are the same type of triggering operation, the setting control can include a lock sub-control and an interface display sub-control. The first triggering operation on the setting control can be a triggering operation on the lock sub-control, and the second triggering operation on the setting control can be a triggering operation on the interface display sub-control.
[0107] For example, the lock sub-control and the interface display sub-control can be as shown in FIG. 8, the first triggering operation and the second triggering operation are both click operations, the speed of the target virtual game character is locked to the first speed in response to the click operation on the lock sub-control, and the setting event is generated in response to the click operation on the interface display sub-control.
[0108] When the first triggering operation and the second triggering are different types of triggering operations, such as the first triggering operation can be a click operation and the second triggering operation is a long-press operation, or the first triggering operation is a long-press operation and the second triggering operation is a click operation, which is not limited in the embodiments of the present disclosure.
[0109] Adjusting the first control region and / or the second control region can be understood as adjusting the area range of the first control region and / or the area range of the second control region (the area range of the first control region can be understood as the area of the first control region, the area range of the second control region can be understood as the area of the second control region, or when the first control region and the second control region are annular regions, the area range of the first control region can be understood as the length and / or width of the annular region of the first control region, and the area range of the second control region can be understood as the length and / or width of the annular region of the second control region), and / or adjusting the first control region and / or the second control region can be understood as adjusting the first speed corresponding to the first control region and / or the second speed corresponding to the second control region.
[0110] The form of the control for adjusting the control region on the joystick control interface and the type of triggering operation on the control can be set according to actual conditions, for example, the control can include an input region, the triggering operation on the control can be an input operation on the input region, or the control can include a first sub-control corresponding to the first control region and a second sub-control corresponding to the second control region, the triggering operation on the control can be a triggering operation on the first sub-control and / or the second sub-control, or the control can display the first control region and the second control region, and the triggering operation on the control can be a boundary adjustment operation on the first control region and / or the second control region, which is not limited in the embodiments of the present disclosure.
[0111] In the embodiments of the present disclosure, the joystick control interface is displayed on the graphical user interface, the joystick control interface includes a control for adjusting the control region, and the control region includes a first control region and / or a second control region; in response to a triggering operation on the control, the first control region and / or the second control region are adjusted, so that the player can customize the area range and the corresponding speed of the first control region according to his own needs or habits, and can customize the area range and the corresponding speed of the second control region, thereby reducing the difficulty of the player in controlling the target virtual game character to move through the first control region and the second control region, and improving the flexibility of controlling the target virtual game character.
[0112] In some embodiments, when the control includes an input region, the triggering operation on the control is an input operation on the input region, and in response to the triggering operation on the control, the first control region and / or the second control region are adjusted, including:
[0113] In response to the input operation on the input region, a value is obtained from the input operation;
[0114] According to the value, the first control region and / or the second control region are adjusted.
[0115] For example, adjusting the first control region and / or the second control region is understood as adjusting the area range of the first control region and / or the area range of the second control region. As shown in FIG. 9, in response to the input operation on the input area corresponding to the static step movement mode, the control obtains the input value 3, and adjusts the radius of the first control region from 2 to 3, thereby changing the area range of the first control region.
[0116] In some embodiments, when the first control region and the second control region are displayed on the control, the triggering operation on the control is a boundary adjustment operation on the first control region and / or the second control region, and in response to the triggering operation on the control, the first control region and / or the second control region are adjusted, including:
[0117] In response to the boundary adjustment operation on the first control region and / or the second control region, the area range of the first control region and / or the second control region is adjusted.
[0118] The boundary adjustment operation can be a drag operation, and the drag operation is used to enlarge the area range of the first control region and / or the area range of the second control region, or the drag operation is used to reduce the area range of the first control region and / or the area range of the second control region.
[0119] The boundary adjustment operation on the first control region can be a drag operation on the periphery of the first control region. Since the periphery of the first control region is also the inner periphery of the second control region, in response to the drag operation on the periphery of the first control region, the area range of the first control region and the area range of the second control region are adjusted. The boundary adjustment operation on the second control region can be a drag operation on the periphery of the second control region.
[0120] For example, as shown in FIG. 10, when the first control region and the second control region displayed on the control are as shown in 1001, in response to the drag operation on the periphery of the second control region, the area range of the second control region is enlarged, and at this time, the second control region can be as shown in 1002. When the boundary adjustment operation is a drag operation, in response to the drag operation on the periphery of the first control region, the area range of the first control region is reduced, and at this time, the area range of the second control region is enlarged, and the first control region and the second control region can be as shown in 1003.
[0121] In the embodiments of the present disclosure, the first control area and the second control area displayed on the control belong to an editable state, and thus the area range of the first control area and / or the second control area can be adjusted in response to a boundary adjustment operation on the first control area and / or the second control area, and the convenience of adjusting the area range of the first control area and / or the second control area is improved.
[0122] In some embodiments, an identifier of a moving manner corresponding to the first speed can be displayed on the periphery of the first control area, and an identifier of a moving manner corresponding to the third speed can be displayed on the periphery of the second control area. For example, the moving manner corresponding to the first speed is referred to as a walking moving manner, and the moving manner corresponding to the third speed is referred to as a sprinting moving manner. The identifier of the walking moving manner and the identifier of the sprinting moving manner can be as shown in 1002 in FIG. 10.
[0123] In some embodiments, when the control includes a first sub-control corresponding to the first control area and a second sub-control corresponding to the second control area, and a trigger operation on the control is a trigger operation on the first sub-control and / or the second sub-control, the first control area and / or the second control area are adjusted in response to the trigger operation on the control, including:
[0124] The first control area is adjusted in response to the trigger operation on the first sub-control;
[0125] and / or the second control area is adjusted in response to the trigger operation on the second sub-control.
[0126] The trigger operation on the first sub-control and the trigger operation on the second sub-control can be an input operation or a sliding operation, which is not limited in the embodiments of the present disclosure.
[0127] In the embodiments of the present disclosure, the first sub-control corresponding to the first control area and the second sub-control corresponding to the second control area are set, so that the first control area can be adjusted through the first sub-control, and the second control area can be adjusted through the second sub-control. The first sub-control and the second sub-control can be as shown in FIG. 11.
[0128] When the trigger operation on the first sub-control and the trigger operation on the second sub-control are sliding operations, and the first sub-control and the second sub-control are used to adjust the area range of the control area, the first control area is adjusted in response to the trigger operation on the first sub-control, including:
[0129] A position of the first sub-control after sliding on the control is determined in response to the sliding operation on the first sub-control;
[0130] The area range of the first control area is adjusted according to the position of the first sub-control after sliding;
[0131] And / or, in response to the triggering operation on the second sub-control, adjusting the second control region, including:
[0132] In response to the sliding operation on the second sub-control, determining a position of the second sub-control after sliding on the control;
[0133] According to the position of the second sub-control after sliding, adjusting the area range of the second control region.
[0134] In the embodiments of the present disclosure, in response to the sliding operation on the first sub-control, a position of the first sub-control after sliding on the control is determined, and according to the position of the first sub-control after sliding, the area range of the first control region is adjusted, in response to the sliding operation on the second sub-control, a position of the second sub-control after sliding on the control is determined, and according to the position of the second sub-control after sliding, the area range of the second control region is adjusted, so as to adjust the area range of the control region through the position of the sub-control after sliding.
[0135] In some embodiments, different positions on the control can correspond to different numerical values, and the different numerical values corresponding to different positions represent different area ranges. The process of adjusting the area range of the first control region according to the position of the first sub-control after sliding can be:
[0136] Determining the numerical value corresponding to the position of the first sub-control after sliding as a first target area range;
[0137] Adjusting the area range of the first control region to the first target area range;
[0138] And / or, the process of adjusting the area range of the second control region according to the position of the second sub-control after sliding can be:
[0139] Determining the numerical value corresponding to the position of the second sub-control after sliding as a second target area range;
[0140] Adjusting the area range of the second control region to the second target area range.
[0141] In some embodiments, the process of adjusting the area range of the second control region according to the position of the second sub-control after sliding can also be:
[0142] According to the position of the second sub-control after sliding, determining a distance between the second sub-control and the first sub-control;
[0143] According to the distance, adjusting the area range of the second control region.
[0144] The terminal can perform mapping processing on the distance after obtaining the distance, obtain a region range corresponding to the distance, and then adjust the region range of the second control region to the region range corresponding to the distance. When the distance between the first sub-control and the second sub-control is greater, the region range corresponding to the distance is greater, and the adjusted region range of the second control region is greater. When the distance between the first sub-control and the second sub-control is smaller, the region range corresponding to the distance is smaller, and the adjusted region range of the second control region is smaller.
[0145] For example, when the first sub-control and the second sub-control are as shown in 1201 in FIG. 12, the region range of the second control region can be as shown in 1201 in FIG. 12. In response to a downward sliding operation of the second sub-control, the distance between the second sub-control and the first sub-control becomes smaller, and the adjusted region range of the second control region becomes smaller. At this time, the second control region can be as shown in 1202 in FIG. 12. As can be seen from 1202 in FIG. 12, the region range of the second control region is smaller than the region range of the second control region shown in 1201 in FIG. 12.
[0146] In the embodiments of the present disclosure, the distance between the second sub-control and the first sub-control is determined according to the position of the second sub-control after sliding, and the region range of the second control region is adjusted according to the distance, so that the region range of the second control region is adjusted by the distance between the first sub-control and the second sub-control, and the convenience of adjusting the region range of the second control region is improved.
[0147] In some embodiments, adjusting the region range of the first control region according to the position of the first sub-control after sliding includes:
[0148] determining the distance between the first sub-control and the second sub-control according to the position of the first sub-control after sliding;
[0149] adjusting the region range of the second control region according to the distance;
[0150] adjusting the region range of the first control region according to the position of the first sub-control after sliding.
[0151] The terminal can adjust only the region range of the first control region according to the position of the first sub-control after sliding, or the terminal can adjust not only the region range of the first control region but also the region range of the second control region according to the position of the first sub-control after sliding.
[0152] For example, when the first sub-control and the second sub-control are as shown in 1301 in FIG. 13, the first control area range and the second control area range can be as shown in 1301 in FIG. 13, in response to the downward sliding operation of the first sub-control, the first control area range is adjusted according to the position of the first sub-control after sliding, and in response to the downward sliding operation of the first sub-control, the distance between the second sub-control and the first sub-control becomes larger, and the adjusted second control area range becomes larger. At this time, the first control area and the second control area can be as shown in 1302 in FIG. 13. As can be seen from 1302 in FIG. 13, the first control area range is smaller than the first control area range shown in 1301 in FIG. 13, and the second control area range is larger than the second control area range shown in 1301 in FIG. 13.
[0153] Optionally, the method of adjusting the first control area range according to the position of the first sub-control after sliding can be set according to actual conditions, for example, the position of the first sub-control after sliding can be used as the adjusted first control area range, or the distance between the position of the first sub-control after sliding and the starting position on the control can be used to adjust the first control area range. The starting position on the control can be set according to actual conditions, for example, the starting position on the control can be as shown in 1301 in FIG. 13.
[0154] In the embodiments of the present disclosure, the distance between the first sub-control and the second sub-control is determined according to the position of the first sub-control after sliding, the second control area range is adjusted according to the distance, the first control area range is adjusted according to the position of the first sub-control after sliding, and the first control area range and the second control area range are adjusted simultaneously through one sliding operation of the first sub-control, thereby improving the adjustment efficiency of the first control area range and the second control area range.
[0155] In some embodiments, when the control includes the first sub-control and the second sub-control, the adjusted first control area range and the adjusted second control area range can be displayed on the graphical user interface in real time when the first control area range is adjusted by the first sub-control and the second control area range is adjusted by the second sub-control, so that the player can see the adjusted first control area range and the adjusted second control area range in real time, and the player can quickly adjust the first control area range and the second control area range to the required range.
[0156] For example, when the joystick control interface is displayed, the first sub-control, the second sub-control, the first control region and the second control region can be as shown in 1401 of FIG. 14. In response to the downward sliding operation on the second sub-control, the second sub-control is slid downward, the distance between the second sub-control and the first sub-control becomes smaller, and the area range of the second control region becomes smaller. At this time, the second control region on the graphical user interface can be as shown in 1402 of FIG. 14. As can be seen from 1402 of FIG. 14, the area range of the second control region is smaller than the area range of the second control region shown in 1401 of FIG. 14.
[0157] In some embodiments, when the adjusted area range of the first control region and the adjusted area range of the second control region are displayed in real time on the graphical user interface, the identification of the walking movement mode can also be displayed on the first control region, and the identification of the running movement mode can also be displayed on the second control region, for example, as shown in 1401 of FIG. 14.
[0158] In some embodiments, when the control includes the first sub-control and the second sub-control, the first speed can also be displayed on the first sub-control, and the maximum second speed among the second speeds can also be displayed on the second sub-control. For example, when the first speed is 2A / B, the second speed is between 2-6A / B, and the maximum second speed is 6A / B, 2 is displayed on the first sub-control, and 6 is displayed on the second sub-control. At this time, the first sub-control and the second sub-control can be as shown in 1401 of FIG. 14.
[0159] In some embodiments, the trigger operation is a sliding operation, the control includes a speed sub-control for adjusting the speed corresponding to the control region, and in response to the trigger operation on the control, the first control region and / or the second control region are adjusted, including:
[0160] In response to the sliding operation on the speed sub-control, the position of the speed sub-control after sliding on the control is determined.
[0161] According to the position of the speed sub-control after sliding, the speed corresponding to the first control region and / or the second control region is adjusted.
[0162] The speed corresponding to the first control region is referred to as the first speed, and the speed corresponding to the second control region is referred to as the second speed. The terminal can adjust the first speed or the second speed through one speed sub-control, or can also adjust the first speed and the second speed simultaneously through one speed sub-control, or the speed sub-control can include the first sub-control and the second sub-control. At this time, the first sub-control is used to adjust the first speed, and the second sub-control is used to adjust the second speed. That is, the first sub-control can be used to adjust the area range of the first control region and the first speed, and the second sub-control can be used to adjust the area range of the second control region and the second speed.
[0163] After the terminal obtains the position of the speed sub-control after sliding, the terminal can adjust the speed corresponding to the first control region and / or the second control region according to the value corresponding to the position of the speed sub-control after sliding.
[0164] Alternatively, the control further includes a first sub-control corresponding to the first control region and a second sub-control corresponding to the second control region, and the first sub-control and the second sub-control are used to adjust the region range of the control region. The process of adjusting the speed corresponding to the first control region and / or the second control region according to the position of the speed sub-control after sliding can also be:
[0165] obtaining a first distance between the first sub-control and the second sub-control;
[0166] determining a second distance according to the position of the speed sub-control after sliding, the second distance being a distance between the speed sub-control and the first sub-control, or the second distance being a distance between the speed sub-control and the second sub-control;
[0167] adjusting the speed corresponding to the first control region and / or the second control region according to the first distance and the second distance.
[0168] The second distance can be divided by the first distance to obtain a distance ratio, and then the speed corresponding to the distance ratio can be used to adjust the speed corresponding to the first control region and / or the second control region.
[0169] Alternatively, the maximum speed or the minimum speed in the speed corresponding to the second control region can be adjusted according to the speed corresponding to the distance ratio, and the adjusted maximum speed or the adjusted minimum speed in the speed corresponding to the second control region can be the speed corresponding to the distance ratio. For example, the speed corresponding to the distance ratio is 4A / B, and the maximum speed in the speed corresponding to the second control region is 6A / B, and the adjusted maximum speed in the speed corresponding to the second control region is 4A / B.
[0170] In the embodiments of the present disclosure, the control includes a speed sub-control used to adjust the speed corresponding to the control region. In response to a sliding operation on the speed sub-control, the position of the speed sub-control after sliding on the control is determined, and the speed corresponding to the first control region and / or the second control region is adjusted according to the position of the speed sub-control after sliding, so that the speed corresponding to the first control region and / or the second control region is adjusted through the speed sub-control.
[0171] In some embodiments, adjusting the speed corresponding to the second control region according to the position of the speed sub-control after sliding includes:
[0172] According to the position of the speed sub-control after sliding, the maximum speed or the minimum speed corresponding to the second control region in the speed is adjusted.
[0173] For example, the maximum speed corresponding to the second control region in the speed is 6A / B, according to the position of the speed sub-control after sliding, it is determined that the adjusted maximum speed is 4A / B, and the maximum speed corresponding to the second control region in the speed is adjusted to 4A / B.
[0174] In the embodiments of the present disclosure, the maximum speed or the minimum speed corresponding to the second control region in the speed is adjusted according to the position of the speed sub-control after sliding, so that the speed limiting processing of the target virtual game character is realized through the second control region.
[0175] In some embodiments, the control further includes a first sub-control corresponding to the first control region and a second sub-control corresponding to the second control region, the first sub-control and the second sub-control are used to adjust the region range of the control region, and the speed corresponding to the first control region and / or the second control region is adjusted according to the position of the speed sub-control after sliding, including:
[0176] It is judged whether the position of the speed sub-control after sliding is located between the first sub-control and the second sub-control;
[0177] If the position of the speed sub-control after sliding is located between the first sub-control and the second sub-control, the speed corresponding to the first control region and / or the second control region is adjusted according to the position of the speed sub-control after sliding.
[0178] If the position of the speed sub-control after sliding is not located between the first sub-control and the second sub-control, the speed corresponding to the first control region and / or the second control region is not adjusted according to the position of the speed sub-control after sliding.
[0179] For example, when the joystick control interface is displayed, the speed sub-control is not located between the first sub-control and the second sub-control, at this time, the speed sub-control, the first sub-control and the second sub-control can be as shown in 1501 of FIG. 15, the speed corresponding to the first control region and / or the second control region is not adjusted according to the position of the speed sub-control, in response to the sliding operation of the speed sub-control, the speed sub-control is slid to between the first sub-control and the second sub-control, at this time, the speed sub-control, the first sub-control and the second sub-control can be as shown in 1502 of FIG. 15, the speed corresponding to the first control region and / or the second control region is adjusted according to the position of the speed sub-control after sliding.
[0180] Optionally, if the position of the speed sub-control after sliding is located between the first sub-control and the second sub-control, the process of adjusting the speed corresponding to the first control region and / or the second control region according to the position of the speed sub-control after sliding can be:
[0181] If the position of the speed sub-control after sliding is between the first sub-control and the second sub-control, the maximum speed or the minimum speed corresponding to the speed of the second control region is adjusted according to the position of the speed sub-control after sliding.
[0182] Optionally, if the position of the speed sub-control after sliding is between the first sub-control and the second sub-control, the process of adjusting the speed corresponding to the first control region and / or the second control region according to the position of the speed sub-control after sliding can also be:
[0183] If the position of the speed sub-control after sliding is between the first sub-control and the second sub-control, a first distance between the first sub-control and the second sub-control is obtained.
[0184] According to the position of the speed sub-control after sliding, a second distance is determined, the second distance being a distance between the speed sub-control and the first sub-control, or the second distance being a distance between the speed sub-control and the second sub-control.
[0185] According to the first distance and the second distance, the speed corresponding to the first control region and / or the second control region is adjusted.
[0186] The second distance can be divided by the first distance to obtain a distance ratio, and then the speed corresponding to the distance ratio is used to adjust the speed corresponding to the first control region and / or the second control region.
[0187] Optionally, the maximum speed or the minimum speed corresponding to the second control region can be adjusted according to the speed corresponding to the distance ratio, and at this time, the adjusted maximum speed or the adjusted minimum speed corresponding to the second control region can be the speed corresponding to the distance ratio. For example, the speed corresponding to the distance ratio is 4A / B, and the maximum speed corresponding to the second control region is 6A / B, so the adjusted maximum speed corresponding to the second control region is 4A / B.
[0188] In some embodiments, in response to a triggering operation on the control, the first control region and / or the second control region is adjusted, including:
[0189] In response to a triggering operation on the control, the area range of the first control region and / or the second control region is adjusted.
[0190] In response to a change operation on the parameter adjusted by the control, the parameter adjusted by the control is changed from the area range of the control region to the speed corresponding to the control region.
[0191] In response to a triggering operation on the control, the speed corresponding to the first control region and / or the second control region is adjusted.
[0192] The type of the changing operation on the parameter adjusted by the control can be set according to actual conditions. For example, a sub-control can also be changed on the control, and the changing operation can be a triggering operation of changing the sub-control, or the changing operation can also be a voice changing operation, or the changing operation can also be a long-press operation on the control, which is not limited in the embodiments of the present disclosure.
[0193] In the embodiments of the present disclosure, the area range of the first control area and / or the second control area is adjusted in response to the triggering operation on the control, the parameter adjusted by the control is changed from the area range of the control area to the speed corresponding to the control area in response to the changing operation on the parameter adjusted by the control, and the speed corresponding to the first control area and / or the second control area is adjusted in response to the triggering operation on the control, so that the area range of the first control area, the speed corresponding to the first control area, the area range of the second control area, and the speed corresponding to the second control area can be adjusted through one control, the setting of the control on the rocker control interface is simplified, and the computing resources of the terminal are saved.
[0194] In some embodiments, the control includes a first sub-control corresponding to the first control area and a second sub-control corresponding to the second control area, and the area range of the first control area and / or the second control area is adjusted in response to the triggering operation on the control, including:
[0195] The area range of the first control area is adjusted in response to the triggering operation on the first sub-control;
[0196] And / or, the area range of the second control area is adjusted in response to the triggering operation on the second sub-control;
[0197] The parameter adjusted by the control is changed from the area range of the control area to the speed corresponding to the control area in response to the changing operation on the parameter adjusted by the control;
[0198] The speed corresponding to the first control area is adjusted in response to the triggering operation on the first sub-control;
[0199] And / or, the speed corresponding to the second control area is adjusted in response to the triggering operation on the second sub-control.
[0200] It can be seen from the above that, in the embodiments of the present disclosure, a graphical user interface is provided by an electronic device, the graphical user interface includes a preset first control area and a second control area located at the periphery of the first control area, the first control area includes an initial position, a target virtual game character is controlled to move at a predetermined first speed in response to a first sliding operation acting on the first control area, and the target virtual game character is controlled to move at a second speed according to a relative position of a touch point corresponding to the second sliding operation on the graphical user interface in response to a second sliding operation acting on the second control area, so that the target virtual game character is controlled to move at different speeds in the first control area and the second control area, and the target virtual game character is controlled to move at different second speeds in the second control area according to different relative positions. Not only can the flexibility of the speed of the target virtual game character be improved, but also the variation range of the speed of the target virtual game character can be reduced, thereby reducing the difference between different game scenes embodied by the movement of the target virtual game character, and further saving computer resources consumed by the electronic device for rendering the game scene.
[0201] In order to better implement the above method, the embodiments of the present disclosure also provide a character control apparatus, which can be integrated in an electronic device, such as a computer device, which can be a terminal, a server, or the like.
[0202] The terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a notebook computer, a personal computer, or the like. The server can be a single server or a server cluster composed of multiple servers.
[0203] For example, in the present embodiment, the character control apparatus is integrated in a terminal, and the method of the present disclosure is described in detail. The present embodiment provides a character control apparatus, as shown in FIG. 16, which provides a graphical user interface by an electronic device, the graphical user interface includes a preset first control area and a second control area located at the periphery of the first control area, the first control area includes an initial position, and the character control apparatus can include:
[0204] The first response module 1601 is configured to control the target virtual game character to move at a predetermined first speed in response to a first sliding operation acting on the first control area.
[0205] The second response module 1602 is configured to control the target virtual game character to move at a second speed according to a relative position of a touch point corresponding to the second sliding operation on the graphical user interface in response to a second sliding operation acting on the second control area.
[0206] In some embodiments, the graphical user interface further comprises a third control region located at a periphery of the second control region, and the role control apparatus further comprises a third response module configured to perform:
[0207] in response to a third sliding operation performed on the third control region, control the target virtual game role to move at a predetermined third speed.
[0208] In some embodiments, the second response module 1602 is specifically configured to perform:
[0209] in response to a second sliding operation performed on the second control region, determine a relative position between an initial position and a touch point on the graphical user interface corresponding to the second sliding operation;
[0210] determine a second speed corresponding to the relative position, wherein the second speed corresponding to the relative position close to the initial position is smaller than the second speed corresponding to the relative position away from the initial position;
[0211] control the target virtual game role to move at the second speed.
[0212] In some embodiments, the first response module 1601 is further configured to perform:
[0213] in response to a first triggering operation on the setting control, lock the moving speed of the target virtual game role to the first speed;
[0214] in response to a sliding operation performed on different control regions, control the target virtual game role to move at the first speed, the different control regions comprising the first control region and the second control region.
[0215] In some embodiments, the role control apparatus further comprises a setting module configured to perform:
[0216] display a joystick control interface on the graphical user interface, the joystick control interface comprising a control for adjusting the control region, the control region comprising the first control region and / or the second control region;
[0217] in response to a triggering operation on the control, adjust the first control region and / or the second control region.
[0218] In some embodiments, the control comprises a first sub-control corresponding to the first control region and a second sub-control corresponding to the second control region, and the setting module is specifically configured to perform:
[0219] in response to a triggering operation on the first sub-control, adjust the first control region;
[0220] and / or, in response to a triggering operation on the second sub-control, adjust the second control region.
[0221] In some embodiments, the triggering operation is a sliding operation, the first sub-control and the second sub-control are used to adjust the region range of the control region, and the setting module is specifically configured to perform:
[0222] In response to the sliding operation on the first sub-control, the position of the first sub-control after sliding on the control is determined;
[0223] According to the position of the first sub-control after sliding, the region range of the first control region is adjusted;
[0224] In response to the sliding operation on the second sub-control, the position of the second sub-control after sliding on the control is determined;
[0225] According to the position of the second sub-control after sliding, the region range of the second control region is adjusted.
[0226] In some embodiments, the setting module is specifically configured to perform:
[0227] According to the position of the second sub-control after sliding, the distance between the second sub-control and the first sub-control is determined;
[0228] According to the distance, the region range of the second control region is adjusted.
[0229] In some embodiments, the setting module is specifically configured to perform:
[0230] According to the position of the first sub-control after sliding, the distance between the first sub-control and the second sub-control is determined;
[0231] According to the distance, the region range of the second control region is adjusted;
[0232] According to the position of the first sub-control after sliding, the region range of the first control region is adjusted.
[0233] In some embodiments, the triggering operation is a sliding operation, the control includes a speed sub-control used to adjust the speed corresponding to the control region, and the setting module is specifically configured to perform:
[0234] In response to the sliding operation on the speed sub-control, the position of the speed sub-control after sliding on the control is determined;
[0235] According to the position of the speed sub-control after sliding, the speed corresponding to the first control region and / or the second control region is adjusted.
[0236] In some embodiments, the setting module is specifically configured to perform:
[0237] According to the position of the speed sub-control after sliding, the maximum speed or the minimum speed corresponding to the second control region is adjusted.
[0238] In some embodiments, the control further comprises a first sub-control corresponding to the first control region and a second sub-control corresponding to the second control region, the first sub-control and the second sub-control being used to adjust the region range of the control region, and the setting module is specifically configured to perform:
[0239] determine whether the position of the speed sub-control after sliding is between the first sub-control and the second sub-control;
[0240] if the position of the speed sub-control after sliding is between the first sub-control and the second sub-control, then according to the position of the speed sub-control after sliding, the speed corresponding to the first control region and / or the second control region is adjusted.
[0241] In some embodiments, the setting module is specifically configured to perform:
[0242] if the position of the speed sub-control after sliding is between the first sub-control and the second sub-control, then a first distance between the first sub-control and the second sub-control is obtained;
[0243] according to the position of the speed sub-control after sliding, a second distance is determined, the second distance being a distance between the speed sub-control and the first sub-control, or the second distance being a distance between the speed sub-control and the second sub-control;
[0244] according to the first distance and the second distance, the speed corresponding to the first control region and / or the second control region is adjusted.
[0245] In some embodiments, the setting module is specifically configured to perform:
[0246] in response to a triggering operation on the control, the region range of the first control region and / or the second control region is adjusted;
[0247] in response to a changing operation on the parameter adjusted by the control, the parameter adjusted by the control is changed from the region range of the control region to the speed corresponding to the control region;
[0248] in response to a triggering operation on the control, the speed corresponding to the first control region and / or the second control region is adjusted.
[0249] In some embodiments, the control displays the first control region and the second control region, and the setting module is specifically configured to perform:
[0250] in response to a boundary adjusting operation on the first control region and / or the second control region, the region range of the first control region and / or the second control region is adjusted.
[0251] In some embodiments, the role control apparatus further comprises an adjustment display module, which is specifically configured to perform:
[0252] adjusting the role index information of the target virtual game role according to the speed of the movement of the target virtual game role, to obtain adjusted role index information, the role index information affecting the survival state of the target virtual game role in the game;
[0253] displaying the adjusted role index information to prompt the player to adjust the speed of the movement of the target virtual game role according to the adjusted role index information.
[0254] In some embodiments, the initial position is a central position of the first control area, or the initial position is a trigger position corresponding to the trigger operation acting on the first control area.
[0255] In specific 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 specific implementation and corresponding beneficial effects of each of the above modules can be referred to the method embodiments above, which will not be described here.
[0256] Correspondingly, the present disclosure also provides an electronic device, which can be a terminal, such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), etc. As shown in FIG. 17, FIG. 17 is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. The electronic device 1700 includes a processor 1701 having one or more processing cores, a memory 1702 having one or more computer readable storage media, and a computer program stored in the memory 1702 and executable on the processor. The processor 1701 is electrically connected to the memory 1702. 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, or combine certain components, or different component arrangements.
[0257] The processor 1701 is the control center of the electronic device 1700, and connects various parts of the entire electronic device 1700 through various interfaces and lines. By running or loading the software programs and / or modules stored in the memory 1702 and calling the data stored in the memory 1702, the processor 1701 performs various functions and processes data of the electronic device 1700, thereby overall monitoring the electronic device 1700.
[0258] In the embodiments of the present disclosure, the processor 1701 in the electronic device 1700 loads the instructions corresponding to the processes of one or more application programs into the memory 1702, and runs the application programs stored in the memory 1702 by the processor 1701, so as to realize various functions, such as:
[0259] In response to the first sliding operation acting on the first control area, the target virtual game character is controlled to move at a predetermined first speed;
[0260] In response to the second sliding operation acting on the second control area, the target virtual game character is controlled to move at a second speed according to the initial position and the relative position of the touch point on the graphical user interface corresponding to the second sliding operation.
[0261] The specific implementation and corresponding advantages of the above operations can be referred to the detailed description of the character control method above, and will not be repeated here.
[0262] Optionally, as shown in FIG. 17, the electronic device 1700 further includes a touch display screen 1703, a radio frequency circuit 1704, an audio circuit 1705, an input unit 1706, and a power supply 1707. The processor 1701 is electrically connected with the touch display screen 1703, the radio frequency circuit 1704, the audio circuit 1705, the input unit 1706, and the power supply 1707, respectively. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 17 does not constitute a limitation on the electronic device, and can include more or fewer components than shown, or combine certain components, or different component arrangements.
[0263] The touch display screen 1703 can be used to display a graphical user interface and receive operation instructions generated by user acting on the graphical user interface. The touch display screen 1703 can include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, which can be composed of graphics, text, icons, video and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel can be used to collect touch operations (such as user operations on or near the touch panel using a finger, a stylus or any suitable object or accessory) of the user thereon or therearound, and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel can include two parts of a touch detection device and a touch controller. The touch detection device detects the touch position of the user and detects the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into touch coordinates, and then sends it to the processor 1701, and can also receive commands from the processor 1701 and execute them. The touch panel can cover the display panel, and when the touch panel detects a touch operation thereon or therearound, it transmits to the processor 1701 to determine the type of touch event, and then the processor 1701 provides corresponding visual output on the display panel according to the type of touch event. In the embodiments of the present disclosure, the touch panel and the display panel can be integrated into the touch display screen 1703 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can realize input and output functions as two independent components. That is, the touch display screen 1703 can also realize input functions as part of the input unit 1706.
[0264] The radio frequency circuit 1704 can be used to transceive radio frequency signals to establish wireless communication with network devices or other electronic devices, and transceive signals between network devices or other electronic devices.
[0265] The audio circuit 1705 can be used to provide an audio interface between a user and the electronic device through a speaker and a microphone. The audio circuit 1705 can convert received audio data into an electrical signal and transmit the electrical signal to the speaker for conversion into a sound signal and output by the speaker. On the other hand, the microphone can collect a sound signal and convert the sound signal into an electrical signal, which is received by the audio circuit 1705 and converted into audio data. The audio data is output to the processor 1701 for processing, transmitted to another electronic device through the radio frequency circuit 1704, or output to the memory 1702 for further processing. The audio circuit 1705 can also include a jack for a headset to provide communication between the headset and the electronic device.
[0266] The input unit 1706 can be used to receive inputted digital, character information or user feature information (e.g., fingerprint, iris, face information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0267] The power supply 1707 is used to supply power to various components of the electronic device 1700. Optionally, the power supply 1707 can be logically connected to the processor 1701 through a power management system, so that the power management system can manage charging, discharging and power consumption management, etc. The power supply 1707 can also include one or more direct current or alternating current power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, etc.
[0268] Although not shown in FIG. 17, the electronic device 1700 can also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which are not described here in detail.
[0269] In the above embodiments, the description of each embodiment focuses on different aspects, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0270] Those of ordinary skill in the art can understand that all or part of the steps of various methods in the above embodiments can be completed by using instructions or by using instructions to control relevant hardware. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0271] To this end, the embodiments of the present disclosure provide a computer-readable storage medium, which stores a plurality of computer programs. The computer programs can be loaded by a processor to execute any of the role control methods provided by the embodiments of the present disclosure. For example, the computer programs can perform the following steps:
[0272] In response to a first sliding operation acting on the first control area, the target virtual game role is controlled to move at a predetermined first speed;
[0273] In response to a second sliding operation performed on the second control area, the target virtual game character is controlled to move at a second speed according to the relative position of the touch point on the graphical user interface corresponding to the initial position and the second sliding operation.
[0274] The specific implementation and corresponding beneficial effects of each operation can be found in the detailed description of the character control method above, and will not be repeated here.
[0275] The computer readable storage medium can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, etc.
[0276] Due to the computer program stored in the computer readable storage medium, any character control method provided by the embodiments of the present disclosure can be executed, and thus the beneficial effects of any character control method provided by the embodiments of the present disclosure can be achieved. For details, refer to the foregoing embodiments, which will not be repeated here.
[0277] The above describes in detail a character control method, device, electronic equipment and computer readable storage medium provided by the embodiments of the present disclosure. The principles and implementation manners of the present disclosure are described by applying specific examples. The above description of the embodiments is only used to help understand the method and its core idea of the present disclosure. Meanwhile, for those skilled in the art, the specific implementation manner and application range can be changed according to the idea of the present disclosure. In summary, the content of the specification should not be understood as a limitation of the present disclosure.
Claims
1. A character control method, a graphical user interface is provided by an electronic device, the graphical user interface comprises a preset first control area and a second control area located at a periphery of the first control area, the first control area comprises an initial position, the method comprises: controlling a target virtual game character to move at a predetermined first speed in response to a first sliding operation performed on the first control area; controlling the target virtual game character to move at a second speed in response to a second sliding operation performed on the second control area according to a relative position between the initial position and a touch point corresponding to the second sliding operation on the graphical user interface.
2. The character control method of claim 1, wherein, The graphical user interface further comprises a third control area located at a periphery of the second control area, the method further comprises: controlling the target virtual game character to move at a predetermined third speed in response to a third sliding operation performed on the third control area.
3. The character control method of claim 1, wherein, The controlling the target virtual game character to move at a second speed in response to a second sliding operation performed on the second control area according to a relative position between the initial position and a touch point corresponding to the second sliding operation on the graphical user interface comprises: determining the relative position between the initial position and the touch point corresponding to the second sliding operation on the graphical user interface in response to the second sliding operation performed on the second control area; determining the second speed corresponding to the relative position, wherein the second speed corresponding to the relative position close to the initial position is smaller than the second speed corresponding to the relative position far away from the initial position; controlling the target virtual game character to move at the second speed.
4. The character control method of claim 1, wherein, The graphical user interface further comprises a setting control, the method further comprises: locking the moving speed of the target virtual game character to the first speed in response to a first triggering operation on the setting control; controlling the target virtual game character to move at the first speed in response to a sliding operation performed on different control areas, the different control areas comprising the first control area and the second control area.
5. The character control method of claim 1, wherein, The method further comprises: displaying a joystick control interface on the graphical user interface, the joystick control interface comprising a control for adjusting a control area, the control area comprising the first control area and / or the second control area; adjusting the first control area and / or the second control area in response to a triggering operation on the control.
6. The character control method of claim 5, wherein, The control comprises a first sub-control corresponding to the first control area and a second sub-control corresponding to the second control area, the adjusting the first control area and / or the second control area in response to a triggering operation on the control comprises: adjusting the first control area in response to a triggering operation on the first sub-control; and / or adjusting the second control area in response to a triggering operation on the second sub-control. 7. The character control method of claim 6, wherein, The trigger operation is a sliding operation, the first sub-control and the second sub-control are used for adjusting the region range of the control region, the adjusting the first control region in response to the trigger operation on the first sub-control comprises: determining the position of the first sub-control after sliding on the control in response to the sliding operation on the first sub-control; adjusting the region range of the first control region according to the position of the first sub-control after sliding; and / or, the adjusting the second control region in response to the trigger operation on the second sub-control comprises: determining the position of the second sub-control after sliding on the control in response to the sliding operation on the second sub-control; adjusting the region range of the second control region according to the position of the second sub-control after sliding.
8. The character control method of claim 7, wherein, The adjusting the region range of the second control region according to the position of the second sub-control after sliding comprises: determining the distance between the second sub-control and the first sub-control according to the position of the second sub-control after sliding; adjusting the region range of the second control region according to the distance.
9. The character control method of claim 7, wherein, The adjusting the region range of the first control region according to the position of the first sub-control after sliding comprises: determining the distance between the first sub-control and the second sub-control according to the position of the first sub-control after sliding; adjusting the region range of the second control region according to the distance. The adjusting the region range of the first control region according to the position of the first sub-control after sliding comprises:
10. The character control method of claim 5, wherein, determining the distance between the first sub-control and the second sub-control according to the position of the first sub-control after sliding; adjusting the region range of the second control region according to the distance. The adjusting the region range of the first control region according to the position of the first sub-control after sliding comprises:
11. The character control method of claim 10, wherein, determining the distance between the first sub-control and the second sub-control according to the position of the first sub-control after sliding; adjusting the region range of the second control region according to the distance.
12. The character control method of claim 10, wherein, The trigger operation is a sliding operation, the control comprises a speed sub-control used for adjusting the speed corresponding to the control region, the adjusting the first control region and / or the second control region in response to the trigger operation on the control comprises: determining the position of the speed sub-control after sliding on the control in response to the sliding operation on the speed sub-control; adjusting the speed corresponding to the first control region and / or the second control region according to the position of the speed sub-control after sliding. The adjusting the speed corresponding to the second control region according to the position of the speed sub-control after sliding comprises: adjusting the maximum speed or the minimum speed in the speed corresponding to the second control region according to the position of the speed sub-control after sliding. The control further comprises a first sub-control corresponding to the first control region and a second sub-control corresponding to the second control region, the first sub-control and the second sub-control are used for adjusting the region range of the control region, the adjusting the speed corresponding to the first control region and / or the second control region according to the position of the speed sub-control after sliding comprises: judging whether the position of the speed sub-control after sliding is between the first sub-control and the second sub-control; If the position of the speed sub-control after sliding is between the first sub-control and the second sub-control, the speed corresponding to the first control region and / or the second control region is adjusted according to the position of the speed sub-control after sliding.
13. The character control method of claim 12, wherein, The adjusting the speed corresponding to the first control region and / or the second control region according to the position of the speed sub-control after sliding, if the position of the speed sub-control after sliding is between the first sub-control and the second sub-control, comprises: If the position of the speed sub-control after sliding is between the first sub-control and the second sub-control, a first distance between the first sub-control and the second sub-control is obtained; A second distance is determined according to the position of the speed sub-control after sliding, the second distance being a distance between the speed sub-control and the first sub-control, or the second distance being a distance between the speed sub-control and the second sub-control; The speed corresponding to the first control region and / or the second control region is adjusted according to the first distance and the second distance.
14. The character control method of claim 5, wherein, The adjusting the first control region and / or the second control region in response to the triggering operation on the control comprises: The area range of the first control region and / or the second control region is adjusted in response to the triggering operation on the control; The parameter adjusted by the control is changed from the area range of the control region to the speed corresponding to the control region in response to the changing operation on the parameter adjusted by the control; The speed corresponding to the first control region and / or the second control region is adjusted in response to the triggering operation on the control.
15. The character control method of claim 5, wherein, The first control region and the second control region are displayed on the control, and the adjusting the first control region and / or the second control region in response to the triggering operation on the control comprises: The area range of the first control region and / or the second control region is adjusted in response to the boundary adjusting operation on the first control region and / or the second control region.
16. The character control method of claim 1, wherein, After controlling the movement of the target virtual game character, the method further comprises: The character index information of the target virtual game character is adjusted according to the speed of the movement of the target virtual game character, to obtain adjusted character index information, the character index information affecting the survival state of the target virtual game character in the game; The adjusted character index information is displayed to prompt the player to adjust the speed of the movement of the target virtual game character according to the adjusted character index information.
17. The character control method of any one of claims 1-16, wherein, The initial position is a center position of the first control region, or the initial position is a triggering position corresponding to the triggering operation acting on the first control region. 18.A character control apparatus, providing a graphical user interface by an electronic device, the graphical user interface comprising a preset first control region and a second control region located at a periphery of the first control region, the first control region comprising an initial position, the apparatus comprising: The first response module is configured to perform a response to a first sliding operation acting on the first control area, and control the target virtual game character to move at a predetermined first speed. The second response module is configured to perform a response to a second sliding operation acting on the second control area, and control the target virtual game character to move at a second speed according to the initial position and a relative position of a touch point corresponding to the second sliding operation on the graphical user interface.
19. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions; the processor loads the instructions from the memory to execute the character control method according to any one of claims 1 to 17.
20. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to execute the character control method according to any one of claims 1 to 17.
Citation Information
Patent Citations
Method and system for controlling game characters to move
CN106951178A
Method and device for controlling virtual character in game
CN109224438A
Game role moving state switching method and device, equipment and storage medium
CN113332703A
Role control method and device, electronic equipment and computer readable storage medium
CN118662884A