Role control method and device, electronic equipment and computer readable storage medium
By using the sliding operation of the first and second control areas in the graphical user interface of the electronic game to dynamically control the speed of the virtual game character, the problem of insufficient speed control flexibility in the existing technology is solved and the differences between game scenes are reduced. performance, saving computer resources.
Patent Information
- Application Number
- CN202410727553.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-05
AI Technical Summary
The speed control flexibility of virtual game characters in existing electronic games is low, resulting in large speed changes between different game scenes, which increases the consumption of computer resources for electronic devices to render game scenes.
By providing a preset first control area and a second control area located on its periphery in the graphical user interface, the relative position of the sliding operation in these areas is used to control the speed of the virtual game character to achieve dynamic changes in different speeds. .
The speed control flexibility of virtual game characters is improved, the speed change range is reduced, and the differences between different game scenes are reduced, thereby saving computer resources for electronic devices to render game scenes.
Smart Images

Figure CN118662884A
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a character control method, device, electronic device and computer-readable storage medium. Background Art
[0002] With the development of science and technology, there are more and more types of electronic games. For example, electronic games can be first-person shooting games (FPS).
[0003] In a first-person shooter game, a player can control a virtual game character to move at different speeds by dragging a virtual joystick. However, the current method of dragging a virtual joystick to control the speed of the virtual game character has low flexibility. Summary of the invention
[0004] Embodiments of the present application 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.
[0005] In a first aspect, an embodiment of the present application provides a character control method, wherein a graphical user interface is provided through an electronic device, wherein the graphical user interface includes a preset first control area and a second control area located outside the first control area, wherein the first control area includes an initial position, and the method includes:
[0006] In response to a first sliding operation in the first control area, controlling the target virtual game character to move at a predetermined first speed;
[0007] In response to a second sliding operation applied to the second control area, the target virtual game character is controlled to move at a second speed according to the initial position and a relative position of a touch point on the graphical user interface corresponding to the second sliding operation.
[0008] In a second aspect, an embodiment of the present application further provides a character control device, which provides a graphical user interface through an electronic device, wherein the graphical user interface includes a preset first control area and a second control area located outside the first control area, wherein the first control area includes an initial position, and the device includes:
[0009] A first response module, configured to respond to a first sliding operation in the first control area and control the target virtual game character to move at a predetermined first speed;
[0010] The second response module is used to respond to the second sliding operation in the above-mentioned second control area, and control the above-mentioned target virtual game character to move at a second speed according to the above-mentioned initial position and the relative position of the touch point corresponding to the above-mentioned second sliding operation on the above-mentioned graphical user interface.
[0011] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory storing a plurality of instructions; the above-mentioned processor loads instructions from the above-mentioned memory to execute any one of the character control methods provided in the embodiments of the present application.
[0012] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for loading by a processor to execute any character control method provided in an embodiment of the present application.
[0013] In an embodiment of the present application, a graphical user interface is provided by an electronic device, and the graphical user interface includes a preset first control area and a second control area located outside the first control area. The first control area includes an initial position. In response to a first sliding operation applied to the first control area, the target virtual game character is controlled to move at a predetermined first speed. In response to a second sliding operation applied to the second control area, the target virtual game character is controlled to move at a second speed according to the relative positions of the touch points on the graphical user interface corresponding to the initial position and the second sliding operation, so as to achieve control of the target virtual game character to move at different speeds in the first control area and the second control area, and control of the target virtual game character to move at different second speeds according to different relative positions in the second control area. This can not only improve the flexibility of controlling the speed of the target virtual game character, but also reduce the variation range of the speed of the target virtual game character, thereby reducing the difference between different game scenes reflecting the movement of the target virtual game character, thereby saving computer resources consumed by the electronic device to render the game scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0015] Figure 1 is a schematic diagram of a graphical user interface provided in an embodiment of the present application;
[0016] Figure 2 This is a flow chart of an embodiment of a character control method provided in an embodiment of the present application;
[0017] Figure 3 is a schematic diagram of a first control area and a second control area provided in an embodiment of the present application;
[0018] Figure 4 is another schematic diagram of the first control area and the second control area provided in the embodiment of the present application;
[0019] Figure 5 is a schematic diagram of a first sliding operation provided in an embodiment of the present application;
[0020] Figure 6 is a schematic diagram of a second sliding operation provided in an embodiment of the present application;
[0021] Figure 7 is a schematic diagram of the third control area provided in the embodiments of the present application;
[0022] Figure 8 is a schematic diagram of a locking subcontrol and an interface display subcontrol provided in an embodiment of the present application;
[0023] Fig. 9 is a schematic diagram of a joystick control interface provided in an embodiment of the present application;
[0024] Fig.10 is another schematic diagram of a joystick control interface provided in an embodiment of the present application;
[0025] Fig.11 is another schematic diagram of a joystick control interface provided in an embodiment of the present application;
[0026] Fig.12 is a schematic diagram of changes in the second control area provided in an embodiment of the present application;
[0027] Fig.13 is a schematic diagram of changes in the second control area and the first control area provided in an embodiment of the present application;
[0028] Fig.14 is another schematic diagram of a graphical user interface provided in an embodiment of the present application;
[0029] Fig.15 is a schematic diagram of a speed sub-control provided in an embodiment of the present application;
[0030] Fig.16 is a structural diagram of a character control device provided in an embodiment of the present application;
[0031] Fig.17 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0033] Before explaining the embodiments of the present application in detail, some terms involved in the embodiments of the present application are first explained.
[0034] Among them, in the description of the embodiments of the present application, the terms "first", "second", etc. may be used in this article to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] The embodiment of the present application provides a character control method, device, electronic device and computer readable storage medium. Specifically, the character control method of the embodiment of the present application can be executed by an electronic device, wherein the electronic device can be a terminal or a server.
[0036] The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop 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.
[0037] The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), as well as big data and artificial intelligence platforms.
[0038] According to the following Figure 1 , the graphical user interface provided in the embodiment of the present application is described in detail.
[0039] In the embodiment of the present application, at least part of the game scene and many controls may be displayed on the graphical user interface. Figure 1 The above is just an example of the controls on the graphical user interface. The graphical user interface may also include Figure 1 A control other than the one shown.
[0040] Figure 1 Reference numeral 101 denotes a firing control, which is used to control the firing of a virtual game character. Figure 1 The 102 control in the figure represents a left probe control, which is used to control the left probe of the virtual game character. Figure 1 The 103 control in the figure represents a right probe control, which is used to control the right probe of the virtual game character. Figure 1 104 in the figure represents a cancel throwing control, which is used to cancel the throwing of the throwing object.
[0041] Figure 1 The 1051 in represents the operating point, Figure 1 1052 in the figure indicates the first control area. Figure 1 Reference numeral 1053 indicates a second control located outside the first control area. The first control area, the second control area and the operating point may form a virtual joystick, which is used to control the speed of movement of the virtual game character. The player may control the target virtual game character to move at different speeds by dragging the operating point to the first control area and / or the second control area.
[0042] Figure 1 106 represents a medical supplies control, which is used to store the medical supplies possessed by the virtual game character. Figure 1 107 in the figure represents a main weapon bar, which is used to control the main weapon of the virtual game character. Figure 1 Reference numeral 108 denotes a secondary weapon bar, which is used to control the secondary weapon of the virtual game character. Figure 1 Reference numeral 109 indicates a health bar, which is used to display the health amount of the virtual game character. Figure 1 Reference numeral 1010 represents a throwing object control, which is used to throw the throwing object.
[0043] Figure 1 1011 in the figure represents a helmet control, which is used to display the helmet status. Figure 1 1012 in the figure represents an armor control, which is used to display the armor status. Figure 1 1013 in the figure represents a hunger status control, which is used to display the hunger status of the virtual game character. Figure 1 1014 in the figure represents a detection hint control, which is used to set detection props. Figure 1 1015 in the figure represents a shooting mode control, which is used to switch between automatic shooting mode and semi-automatic shooting mode. Figure 11016 in the represents a melee weapon control, which is used to control a melee weapon. Figure 1 1017 in the figure represents a pistol control, which is used to control a pistol.
[0044] Figure 1 Reference numeral 1018 indicates a bullet changing control, which is used to control the virtual game character to switch bullets. Figure 1 1019 in the figure represents a crouching control, which is used to control the virtual game character to perform a crouching action. Figure 1 1020 in the figure represents a lying down control, which is used to control the virtual game character to perform a lying down action. Figure 1 1021 represents a jump control, which is used to control the virtual game character to perform a jump action.
[0045] Figure 1 The reference numeral 1022 indicates a magnification switching control, which is used to switch the magnification of the scope. Figure 1 1023 in the figure represents an aiming control, which is used to control the aiming scope to aim at a virtual object. Figure 1 The 1024 in the figure represents an external help control, which is used to ask for help from players and / or friends in the lobby outside the game. Figure 1 The 1025 in the figure represents a nearby help control, which is used to ask for help from players in the game. Figure 1 1026 in the figure represents an inspection control, which is used to inspect the weapon. Figure 1 1027 in the figure represents a setting control, which is used to set the first control area and / or the second control area. Figure 1 1028 in the figure represents a rescue control, which is used to rescue other players. Figure 1 1029 in the skill control represents a skill control, which is used to set the duration of the skill.
[0046] Figure 1 1030 in the figure represents a pet control control, which is used to release the pet of the virtual game character. Figure 1 1031 in the figure represents a focus skill control, which is used to release the focus skill. Figure 1 The reference numeral 1032 indicates a mark control, which is used to mark a certain position. Figure 1 Reference numeral 1033 indicates a chat control, which is used to send and receive messages within a game match. Figure 1 Reference numeral 1033 indicates a chat control, which is used to send and receive messages within a game match. Figure 1 Reference numeral 1034 indicates a speaker control, which is used to play sounds within the game. Figure 1 Reference numeral 1035 indicates a microphone control, which is used to collect the voice of the player. Figure 1 1036 in the figure represents a game setting control, which is used to set relevant configurations within the game. Figure 11037 in the figure represents an action control, which is used to control the relevant actions of the virtual game character. Figure 1 The 1038 in the figure indicates a flashlight. Figure 1 The 1039 in the figure indicates that supplies can be picked up. Figure 1 The 1040 in the figure indicates the storm progress bar.
[0047] The following is a detailed description of the embodiments in conjunction with the accompanying drawings. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments. Although the logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.
[0048] In this embodiment, a terminal is used as an example for explanation. 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 outside the first control area. The first control area includes an initial position. This embodiment provides a character control method, such as Figure 2 As shown, the specific process of the role control method can be as follows:
[0049] 201. In response to a first sliding operation in a first control area, control a target virtual game character to move at a predetermined first speed.
[0050] The first control area refers to an area used to control the target virtual game character to move at a predetermined first speed. The second control area refers to an area used to control the target virtual game character 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, such as Figure 3 As shown, for example, the first control area may be a circular control area, and the second control area may be an annular control area, such as Figure 4 As shown in 401, the embodiment of the present application is not limited here.
[0051] It should be understood that when the first control area is a circular control area, the first control area may also be Figure 4 As shown in 402, at this time, a ring is used to represent the periphery of the first control area. Figure 4 As shown in 401, lines are used to represent the periphery of the first control area.
[0052] The terminal can fixedly display an operation point on the first control area, and control the target virtual game character to move at a predetermined first speed by controlling the operation point to slide within the first control area, and control the target virtual game character to move at a second speed by sliding the operation point to the second control area.
[0053] Alternatively, the terminal may also respond to a trigger operation applied to a first control area, display an operation point, and then control the target virtual game character 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 character to move at a second speed by sliding the operation point to the second control area.
[0054] The initial position in the first control area is the position of the operating point. When the operating point is fixedly displayed on the first control area, the operating point can be located at the center of the first control area. The initial position is the center of the first control area. At this time, the operating point can be, for example, Figure 4 shown.
[0055] When the operation point is displayed in response to the trigger operation on the first control area, the initial position is the trigger position corresponding to the trigger operation on the first control area. At this time, the trigger operation on the first control area can be another separate operation, or the trigger operation on the first control area can be a first sliding operation.
[0056] When the trigger operation acting on the first control area is another separate operation, for example, the terminal can first respond to a click operation on the first control area, display the operation point at the click position corresponding to the click operation, and the click position corresponding to the click operation is the initial position, and then respond to the first sliding operation of the operation point in the first control area, and control the target virtual game character to move at a predetermined first speed.
[0057] When the trigger operation acting on the first control area is a first sliding operation, for example, the terminal responds to the first sliding operation acting in the first control area, displays the operation point at the starting sliding position of the first sliding operation, and then controls the operation point to move with the first sliding operation, and controls the target virtual game character to move at a predetermined first speed. At this time, the initial position is the starting sliding position of the first sliding operation.
[0058] It should be understood that when the terminal controls the target virtual game character to move at a predetermined first speed in response to the first sliding operation on the operating point within the first control area, the operating point can be controlled to move along with the first sliding operation, the moving direction of the operating point is the sliding direction of the first sliding operation, and the moving distance of the operating point is the sliding distance of the first sliding operation.
[0059] For example, when the first sliding operation is Figure 5 As shown in 501, the result of the movement of the operation point along with the first sliding operation may be as follows: Figure 5 As shown in 502.
[0060] When the terminal controls the operation point to move with the first sliding operation, it 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. Figure 5 As shown in 501 , the sliding direction corresponding to the first sliding operation is the right direction, and the target virtual game character is controlled to move to the right direction at a first speed.
[0061] The target virtual game character refers to the virtual game character controlled by the terminal in the game scene. The first speed is a preset 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, where A / B represents speed units, A represents length units, and B represents time units. The embodiments of the present application are not limited here.
[0062] 202. In response to a second sliding operation in the second control area, control the target virtual game character to move at a second speed according to the relative positions of the touch points on the graphical user interface corresponding to the initial position and the second sliding operation.
[0063] 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. Figure 6 As shown, each position on the arrow representing the second sliding operation can be a touch point.
[0064] When the relative position of the touch point is different, the second speed is also different, that is, the second control area corresponds to multiple second speeds, so that the target virtual game character can be controlled to move at different second speeds through a second control area. Compared with a second control area controlling the target virtual game character to move at a second speed, the speed variation 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, thereby saving computer resources consumed by electronic devices to render game scenes.
[0065] For example, the first speed may be 2A / B, and when the second speed is one, the second speed is 6A / B, and the range of change between the first speed and the second speed is large; when the second speed is multiple, the second speed may be between 2-6A / B, and the range of change 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 may change from the first game scene to the second game scene; if the range of change 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 more computer resources are consumed in rendering the game scene; if the range of change 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 less computer resources are consumed in rendering the game scene, thereby saving computer resources consumed in rendering the game scene.
[0066] Optionally, it can be a relative position corresponding to a second speed. For example, the relative position includes a1-an meters, and the second speed corresponding to the second control area is between 2-6A / B. When the relative position is a1 meter, the second speed is 2.1A / B, and when the relative position is a2 meter, the second speed is 2.2A / B.
[0067] Alternatively, multiple relative positions may correspond to one second speed, in which case, relative positions within the same position range may correspond to one second speed. For example, the relative positions include a1-an meters, and the second speed corresponding to the second control area is between 2-6A / B. When the relative position is a1-a3 meters, the second speed is 2.1A / B, and when the relative position is a4-a6 meters, the second speed is 2.2A / B.
[0068] It should be noted that the second speed corresponding to the second control area can be a uniformly changing speed or a non-uniformly changing speed. For example, when the second speed corresponding to the second control area is a uniformly changing speed and the second speed corresponding to the second control area is between 2-6A / B, the second speed can be a second speed of 2.1A / B, a second speed of 2.2A / B and a second speed of 2.3A / B. For another example, when the second speed corresponding to the second control area is a non-uniformly changing speed and the second speed corresponding to the second control area is between 2-6A / B, the second speed can be a second speed of 3A / B, a second speed of 4A / B and a second speed of 5A / B.
[0069] 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. Alternatively, 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.
[0070] When the relative position is farther from the initial position, the second speed corresponding to the relative position is greater, and when the relative position is closer to the initial position, the second speed corresponding to the relative position is smaller, in response to the second sliding operation acting on the second control area, according to the relative position of the touch point on the graphical user interface corresponding to the initial position and the second sliding operation, the target virtual game character is controlled to move at the second speed, including:
[0071] In response to a second sliding operation applied to the second control area, determining a relative position between the initial position and a touch point on the graphical user interface corresponding to the second sliding operation;
[0072] 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 far from the initial position;
[0073] The target virtual game character is controlled to move at a second speed.
[0074] Among them, 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, and the closer the relative position is to the initial position, the smaller the second speed corresponding to the relative position.
[0075] For example, the initial position is the center position of the first control area, and the second speed corresponding to the second control area is between 2-6A / B. When the relative position is closer to the periphery of the first control area (the periphery of the first control area is such as Figure 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 as shown in FIG. Figure 6 As shown), 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.
[0076] For example, Figure 6As shown, when the second sliding operation corresponds to the touch point b1 on the graphical user interface, the relative position is a1 meter; when the second sliding operation corresponds to the touch point b2 on the graphical user interface, the relative position is a2 meters. a1 meter is smaller than a2 meters, and the second speed corresponding to a1 meter is smaller than the second speed corresponding to a2 meters.
[0077] In some embodiments, the graphical user interface further includes a third control area located outside the second control area. The embodiment of the present application further includes:
[0078] In response to a third sliding operation applied to the third control area, the target virtual game character is controlled to move at a predetermined third speed.
[0079] Among them, the third speed is a speed different from the first speed and the second speed, and its value can be set according to actual conditions. For example, the first speed can be 2A / B, the second speed can be between 2-6A / B, and the third speed can be 6A / B. At this time, the first speed is less than the second speed, and the second speed is less than the third speed. For another example, the first speed can be 6A / B, the second speed can be between 2-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. The embodiment of the present application is not limited here.
[0080] Optionally, the area range of the third control area may be limited or not. When the area range of the third control area is limited, the third control area may be, for example, Figure 7 When the area range of the third control area is not limited, any area outside the second control area on the graphical user interface can be used as the third control area.
[0081] In an embodiment of the present application, the graphical user interface also includes a third control area located outside the second control area, so as to respond to a third sliding operation acting within the third control area, control the target virtual game character to move at a predetermined third speed, and realize controlling the target virtual game character to move at the first speed, the second speed or the third speed.
[0082] In some embodiments, when it is detected that the third sliding operation slides to a certain position in the third control area and is 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.
[0083] 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 standing position; when the target virtual game character moves at the second speed, the target virtual game character can be said to move in a conventional position; and when the target virtual game character moves at the third speed, the target virtual game character can be said to move in a sprinting position.
[0084] In some embodiments, after controlling the target virtual game character to move, the method further includes:
[0085] 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 the adjusted character index information, and the character index information affects the survival state of the target virtual game character in the game;
[0086] The adjusted character indicator information is displayed to prompt the player to adjust the moving speed of the target virtual game character according to the adjusted character indicator information.
[0087] Among them, the character indicator information refers to information representing certain indicators of the target virtual game character, which can be set according to actual conditions. For example, the character indicator information can be the temperature value, physical strength value, blood volume or oxygen volume of the target virtual game character, etc., which is not limited in this embodiment of the present application.
[0088] The character index information can be expressed in numerical values. The character index information affects the survival status 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 refers to the temperature value of the target virtual game character, the larger the temperature value of the target virtual game character, the greater the probability that the target virtual game character is discovered and attacked by other virtual game characters, and the lower the survival probability of the target virtual game character. Alternatively, the character index information affects the survival status of the target virtual game character in the game. It can be understood that 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 value is the blood volume of the target virtual game character, the larger the blood volume of the target virtual game character, the smaller the probability that the target virtual game character is attacked to death, and the higher the survival probability of the target virtual game character.
[0089] The speed at which the target virtual game character moves and the character index information may be positively correlated. For example, the character index information may be the temperature value of the target virtual game character. The faster the target virtual game character moves, the greater 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 at which the target virtual game character moves and the character index information may be negatively correlated. For example, the character index information may be the oxygen content of the target virtual game character. The faster the target virtual game character moves, the smaller the oxygen content of the target virtual game character. The slower the target virtual game character moves, the greater the oxygen content of the target virtual game character.
[0090] In an embodiment of the present application, the character indicator information of the target virtual game character is adjusted according to the moving speed of the target virtual game character to obtain the adjusted character indicator information. The character indicator information affects the survival status of the target virtual game character in the game. The adjusted character indicator information is displayed to prompt the player to adjust the moving speed of the target virtual game character according to the adjusted character indicator information, so that the player can ensure the survival status of the target virtual game character in the game by controlling the moving speed of the target virtual game character.
[0091] In some embodiments, the graphical user interface further includes a setting control, and the embodiment of the present application further includes:
[0092] In response to a first trigger operation on the setting control, locking the moving speed of the target virtual game character to a first speed;
[0093] In response to a sliding operation in different control areas, a target virtual game character is controlled to move at a first speed, and the different control areas include a first control area and a second control area.
[0094] Wherein, when the graphical user interface includes a third control area, the different control areas may further include a third control area. The type of the first trigger operation may be set according to actual conditions, for example, the first trigger operation may be a click operation or a long press operation, which is not limited in the embodiments of the present application.
[0095] The position of the setting control on the graphical user interface can be set according to the actual situation. For example, the setting control on the graphical user interface can be Figure 6 As shown, the embodiments of the present application are not limited here.
[0096] In an embodiment of the present application, in response to a first trigger operation on a setting control, the moving speed of the target virtual game character is locked to a first speed. At this time, when a sliding operation is detected in different control areas, the target virtual game character can be directly controlled to move at the first speed, thereby locking the speed of the target virtual game character, allowing the player to lock the speed of the target virtual game character according to their needs, thereby improving the gaming experience.
[0097] In some embodiments, when the speed at which the target virtual game character moves affects the character indicator information of the target virtual game character, the character indicator information affects the survival status 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 indicator information, locking the speed of the target virtual game character to the first speed can ensure the survival rate of the target virtual game character in the game.
[0098] For example, the first speed is the speed corresponding to the static walking mode, and the character indicator information is the temperature value of the target virtual game character. 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 the temperature threshold, the target virtual game character will be discovered and attacked by other virtual game characters, thereby reducing the survival probability of the target virtual game character in the game. Therefore, the speed of the target virtual game character can be locked to the first speed, reducing 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.
[0099] In some embodiments, the present application also includes:
[0100] Displaying a joystick control interface on the graphical user interface, the joystick control interface including controls for adjusting a control area, the control area including a first control area and / or a second control area;
[0101] In response to a triggering operation on the control, the first control area and / or the second control area is adjusted.
[0102] The joystick control interface may be displayed on the graphical user interface during a game, or the joystick control interface may be displayed on the graphical user interface outside a game.
[0103] The terminal can respond to the setting event and display the joystick control interface on the graphical user interface. The method for obtaining the setting event can be set according to the actual situation. For example, the terminal can collect the player's voice, recognize the voice, obtain the recognition result, and generate the setting event according to the recognition result. Alternatively, the graphical user interface includes a setting control, and generates a setting event in response to the second trigger operation of the setting control. Alternatively, the terminal can generate a setting event in response to a long press operation on the operation point. The embodiment of the present application is not limited here.
[0104] When a setting event is generated in response to a second trigger operation on a setting control, the second trigger operation and the first trigger operation may be trigger operations of the same type or may not be trigger operations of the same type. When the second trigger operation and the first trigger operation are trigger operations of the same type, the setting control may include a lock sub-control and an interface display sub-control, the first trigger operation on the setting control may be a trigger operation on the lock sub-control, and the second trigger operation on the setting control may be a trigger operation on the interface display sub-control.
[0105] For example, locking subcontrols and interface display subcontrols can Figure 8 As shown, the first trigger operation and the second trigger operation are both click operations. In response to the click operation on the lock sub-control, the speed of the target virtual game character is locked to the first speed. In response to the click operation on the interface display sub-control, a setting event is generated.
[0106] When the first trigger operation and the second trigger operation are trigger operations of different types, for example, the first trigger operation may be a click operation and the second trigger operation may be a long press operation, or the first trigger operation may be a long press operation and the second trigger operation may be a click operation, the embodiments of the present application are not limited here.
[0107] Adjusting the first control area and / or the second control area can be understood as adjusting the area range of the first control area and / or the area range of the second control area (the area range of the first control area can be understood as the area area of the first control area, and the area range of the second control area can be understood as the area area of the second control area, or, when the first control area and the second control area are annular areas, the area range of the first control area can be understood as the annular length and / or width of the first control area, and the area range of the second control area can be understood as the annular length and / or width of the second control area), and / or adjusting the first control area and / or the second control area can be understood as adjusting the first speed corresponding to the first control area and / or the second speed corresponding to the second control area.
[0108] The expression form of the control for adjusting the control area on the joystick control interface and the type of trigger operation on the control can be set according to actual conditions. For example, the control may include an input area, and the trigger operation on the control may be an input operation on the input area. Alternatively, the control may include a first sub-control corresponding to a first control area and a second sub-control corresponding to a second control area, and the trigger operation on the control may be a trigger operation on the first sub-control and / or the second sub-control. Alternatively, the control may display a first control area and a second control area, and the trigger operation on the control may be an operation to adjust the boundaries of the first control area and / or the second control area. The embodiments of the present application are not limited here.
[0109] In an embodiment of the present application, a joystick control interface is displayed on a graphical user interface, and the joystick control interface includes a control for adjusting a control area, and the control area includes a first control area and / or a second control area; in response to a triggering operation on the control, the first control area and / or the second control area are adjusted, so that the player can customize the area range and the corresponding speed of the first control area according to his or her needs or habits, and can customize the area range and the corresponding speed of the second control area, thereby reducing the difficulty for the player to control the speed of movement of the target virtual game character through the first control area and the second control area, and improving the flexibility of controlling the target virtual game character.
[0110] In some embodiments, when the control includes an input area and the triggering operation on the control is an input operation on the input area, in response to the triggering operation on the control, adjusting the first control area and / or the second control area includes:
[0111] In response to an input operation on the input area, obtaining a value from the input operation;
[0112] According to the value, the first control area and / or the second control area is adjusted.
[0113] For example, adjusting the first control area and / or the second control area is understood as adjusting the area range of the first control area and / or the area range of the second control area. The control can be as follows: Fig. 9 As shown, in response to the input operation on the input area corresponding to the static movement mode, the input value obtained is 3, and the radius of the first control area is adjusted from 2 to 3, thereby changing the area range of the first control area.
[0114] In some embodiments, when a first control area and a second control area are displayed on a control, and the triggering operation on the control is an operation to adjust the boundaries of the first control area and / or the second control area, in response to the triggering operation on the control, adjusting the first control area and / or the second control area includes:
[0115] In response to the boundary adjustment 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.
[0116] Among them, the boundary adjustment operation can be a drag operation, and the drag operation is used to enlarge the area range of the first control area and / or the area range of the second control area, and the drag operation is used to reduce the area range of the first control area and / or the area range of the second control area.
[0117] The boundary adjustment operation of the first control area may be a drag operation on the periphery of the first control area. Since the periphery of the first control area is also the periphery of the second control area, the area range of the first control area and the area range of the second control area are adjusted in response to the drag operation on the periphery of the first control area. The boundary adjustment operation of the second control area may be a drag operation on the periphery of the second control area.
[0118] For example, the first control area and the second control area displayed on the control can be as follows: Fig.10 As shown in 1001, when the boundary adjustment operation is a drag-and-zoom operation, in response to the drag-and-zoom operation on the periphery of the second control area, the area range of the second control area is enlarged. At this time, the second control area can be as follows Fig.10 As shown in 1002, when the boundary adjustment operation is a drag-to-zoom operation, in response to the drag-to-zoom operation on the periphery of the first control area, the area range of the first control area is reduced, and at this time, the area range of the second control area is correspondingly enlarged. The first control area and the second control area can be as follows Fig.10 As shown in 1003.
[0119] In an embodiment of the present application, the first control area and the second control area displayed on the control are in an editable state. Therefore, in response to the boundary adjustment operation of the first control area and / or the second control area, the area range of the first control area and / or the second control area can be adjusted, thereby improving the convenience of adjusting the area range of the first control area and / or the second control area.
[0120] In some embodiments, the first control area may display a logo of the movement mode corresponding to the first speed, and the second control area may display a logo of the movement mode corresponding to the third speed. For example, the movement mode corresponding to the first speed is called a step movement mode, and the movement mode corresponding to the third speed is called a sprint movement mode. The logo of the step movement mode and the logo of the sprint movement mode can be displayed as follows: Fig.10 As shown in 1002.
[0121] 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 the triggering operation on the control is a triggering operation on the first sub-control and / or the second sub-control, in response to the triggering operation on the control, adjusting the first control area and / or the second control area includes:
[0122] In response to a triggering operation on the first sub-control, adjusting the first control area;
[0123] And / or, in response to a triggering operation on the second sub-control, adjusting the second control area.
[0124] Among them, the triggering operation on the first sub-control and the triggering operation on the second sub-control can be an input operation or a sliding operation, which is not limited in the embodiment of the present application.
[0125] In the embodiment of the present application, a first sub-control corresponding to the first control area and a second sub-control corresponding to the second control area are set so that the first control area can be adjusted by the first sub-control and the second area can be adjusted by the second sub-control. Fig.11 shown.
[0126] When the triggering operation on the first subcontrol and the triggering operation on the second subcontrol are sliding operations, and the first subcontrol and the second subcontrol are used to adjust the area range of the control area, in response to the triggering operation on the first subcontrol, adjusting the first control area includes:
[0127] In response to a sliding operation on the first subcontrol, determining a position of the first subcontrol after sliding on the control;
[0128] According to the position of the first subcontrol after sliding, the area range of the first control area is adjusted;
[0129] And / or, in response to a triggering operation on the second sub-control, adjusting the second control area includes:
[0130] In response to a sliding operation on the second sub-control, determining a position of the second sub-control after sliding on the control;
[0131] According to the position of the second subcontrol after sliding, the area range of the second control area is adjusted.
[0132] In an embodiment of the present application, in response to a sliding operation on a first sub-control, the position of the first sub-control after sliding on the control is determined, and the area range of the first control area is adjusted according to the position of the first sub-control after sliding. In response to a sliding operation on a second sub-control, the position of the second sub-control after sliding on the control is determined, and the area range of the second control area is adjusted according to the position of the second sub-control after sliding, thereby achieving adjustment of the area range of the control area through the position of the sub-control after sliding.
[0133] In some embodiments, different positions on the control may correspond to different values, and different values corresponding to different positions represent different area ranges. According to the position of the first sub-control after sliding, the process of adjusting the area range of the first control area may be:
[0134] Determine the value corresponding to the position of the first subcontrol after sliding as the first target area range;
[0135] Adjusting the area range of the first control area to the area range of the first target area;
[0136] And / or, according to the position of the second sub-control after sliding, the process of adjusting the area range of the second control area may be:
[0137] Determine the value corresponding to the position of the second subcontrol after sliding as the second target area range;
[0138] The area range of the second control area is adjusted to the second target area range.
[0139] In some embodiments, according to the position of the second sub-control after sliding, the process of adjusting the area range of the second control area may also be:
[0140] Determine the distance between the second subcontrol and the first subcontrol according to the position of the second subcontrol after sliding;
[0141] According to the distance, the area range of the second control area is adjusted.
[0142] After obtaining the distance, the terminal can map the distance to obtain the area range corresponding to the distance, and then adjust the area range of the second control area to the area range corresponding to the distance. When the distance between the first subcontrol and the second subcontrol is larger, the area range corresponding to the distance is larger, and the area range of the second control area after adjustment is larger. When the distance between the first subcontrol and the second subcontrol is smaller, the area range corresponding to the distance is smaller, and the area range of the second control area after adjustment is smaller.
[0143] For example, when the first and second subcontrols are Fig.12 As shown in 1201, the area range of the second control area can be as follows Fig.12 As shown in 1201, in response to the sliding operation on the second sub-control downward, the distance between the second sub-control and the first sub-control becomes smaller, and the adjusted area range of the second control area becomes smaller. At this time, the second control area can be as shown in Fig.12 As shown in 1202, from Fig.12 It can be seen from 1202 that the area range of the second control area is smaller than Fig.12 The area range of the second control area shown in 1201.
[0144] In an embodiment of the present application, 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 area range of the second control area is adjusted according to the distance, so that the area range of the second control area can be adjusted by adjusting the distance between the first sub-control and the second sub-control, thereby improving the convenience of adjusting the area range of the second control area.
[0145] In some embodiments, adjusting the area range of the first control area according to the position of the first sub-control after sliding includes:
[0146] Determine the distance between the first subcontrol and the second subcontrol according to the position of the first subcontrol after sliding;
[0147] According to the distance, the area range of the second control area is adjusted;
[0148] According to the position of the first subcontrol after sliding, the area range of the first control area is adjusted.
[0149] Among them, the terminal can only adjust the area range of the first control area according to the position of the first sub-control after sliding, or, the terminal can not only adjust the area range of the first control area but also adjust the area range of the second control area according to the position of the first sub-control after sliding.
[0150] For example, when the first and second subcontrols are Fig.13 As shown in 1301, the first control area range and the second control area area range can be as follows Fig.13 As shown in 1301, in response to the downward sliding operation of the first subcontrol, the area range of the first control area is reduced according to the position of the first subcontrol after sliding, and in response to the downward sliding operation of the first subcontrol, the distance between the second subcontrol and the first subcontrol increases, and the adjusted area range of the second control area increases. At this time, the first control area and the second control area can be as follows Fig.13 As shown in 1302, from Fig.13 It can be seen from 1302 that the area range of the first control area is smaller than Fig.13The area range of the first control area shown in 1301 is greater than the area range of the second control area. Fig.13 The area range of the second control area shown in 1301.
[0151] Optionally, according to the position of the first sub-control after sliding, the method for adjusting the area range of the first control area can be set according to actual conditions. For example, the area range corresponding to the position of the first sub-control after sliding can be used as the area range of the first control area after adjustment. Alternatively, the distance between the position of the first sub-control after sliding and the starting position on the control can be determined to adjust the area range of the first control area. The starting position on the control can be set according to actual conditions. For example, the starting position on the control can be set as follows: Fig.13 As shown in 1301.
[0152] In an embodiment of the present application, 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, and the area range of the second control area is adjusted according to the distance. According to the position of the first sub-control after sliding, the area range of the first control area is adjusted, so that the area range of the first control area and the area range of the second control area can be adjusted at the same time through a single sliding operation on the first sub-control, thereby improving the adjustment efficiency of the area range of the first control area and the area range of the second control area.
[0153] In some embodiments, when the control includes a first sub-control and a second sub-control, when the area range of the first control area is adjusted through the first sub-control and the area range of the second control area is adjusted through the second sub-control, the adjusted area range of the first control area and the adjusted area range of the second control area can be displayed in real time on the graphical user interface, so that the player can see the adjusted area range of the first control area and the adjusted area range of the second control area in real time, so that the player can quickly adjust the area range of the first control area and the area range of the second control area to the area range they need.
[0154] For example, when the joystick control interface is displayed, the first sub-control, the second sub-control, the first control area and the second control area can be as follows: Fig.14 In response to the downward sliding operation on the second subcontrol, the second subcontrol is slid downward, the distance between the second subcontrol and the first subcontrol is reduced, and the area of the second control area is reduced. At this time, the second control area on the graphical user interface can be as shown in FIG. Fig.14 As shown in 1402, from Fig.14 It can be seen from 1402 that the area range of the second control area is smaller than Fig.14 The area range of the second control area shown in 1401.
[0155] In some embodiments, when the adjusted area range of the first control area and the adjusted area range of the second control area are displayed in real time on the graphical user interface, the mark of the still walking mode can be displayed on the first control area, and the mark of the sprinting mode can be displayed on the second control area, for example, Fig.14 As shown in 1401.
[0156] In some embodiments, when the control includes a first sub-control and a second sub-control, the first speed can be displayed on the first sub-control, and the second speed of the second speed can 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 displayed as follows: Fig.14 As shown in 1401.
[0157] 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 area, and in response to the trigger operation on the control, the first control area and / or the second control area are adjusted, including:
[0158] In response to a sliding operation on the speed subcontrol, determine the position of the speed subcontrol after sliding on the control;
[0159] According to the position of the speed subcontrol after sliding, the speed corresponding to the first control area and / or the second control area is adjusted.
[0160] The speed corresponding to the first control area is called the first speed, and the speed corresponding to the second control area is called the second speed. The terminal can adjust the first speed or the second speed through a speed sub-control, or can also adjust the first speed and the second speed at the same time through a speed sub-control, or the speed sub-control can include a first sub-control and a second sub-control, in which case 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 area and the first speed, and the second sub-control can be used to adjust the area range of the second control area and the second speed.
[0161] After obtaining the position of the speed subcontrol after sliding, the terminal can adjust the speed corresponding to the first control area and / or the second control area according to the value corresponding to the position of the speed subcontrol after sliding.
[0162] Alternatively, the control further includes a first sub-control corresponding to the first control area and a second sub-control corresponding to the second control area, and the first sub-control and the second sub-control are used to adjust the area range of the control area. According to the position of the speed sub-control after sliding, the process of adjusting the speed corresponding to the first control area and / or the second control area can also be:
[0163] Get the first distance between the first subcontrol and the second subcontrol;
[0164] Determine a second distance according to the position of the speed subcontrol after sliding, the second distance being the distance between the speed subcontrol and the first subcontrol, or the second distance being the distance between the speed subcontrol and the second subcontrol;
[0165] According to the first distance and the second distance, the speed corresponding to the first control area and / or the second control area is adjusted.
[0166] The second distance may be divided by the first distance to obtain a distance ratio, and then the speed corresponding to the first control area and / or the second control area may be adjusted according to the speed corresponding to the distance ratio.
[0167] Optionally, the maximum speed or the minimum speed in the speed corresponding to the second control area can be adjusted according to the speed corresponding to the distance ratio. In this case, the adjusted maximum speed or the adjusted minimum speed in the speed corresponding to the second control area can be the speed corresponding to the distance ratio. For example, if the speed corresponding to the distance ratio is 4A / B and the maximum speed in the speed corresponding to the second control area is 6A / B, then the adjusted maximum speed in the speed corresponding to the second control area is 4A / B.
[0168] In an embodiment of the present application, the control includes a speed sub-control for adjusting the speed corresponding to the control area, responds to a sliding operation on the speed sub-control, determines the position of the speed sub-control after sliding on the control, and adjusts the speed corresponding to the first control area and / or the second control area according to the position of the speed sub-control after sliding, thereby achieving adjustment of the speed corresponding to the first control area and / or the second control area through the speed sub-control.
[0169] In some embodiments, adjusting the speed corresponding to the second control area according to the position of the speed subcontrol after sliding includes:
[0170] According to the position of the speed subcontrol after sliding, the maximum speed or the minimum speed corresponding to the second control area is adjusted.
[0171] For example, the maximum speed in the speed corresponding to the second control area is 6A / B. According to the position of the speed subcontrol after sliding, it is determined that the adjusted maximum speed is 4A / B, and the maximum speed in the speed corresponding to the second control area is adjusted to 4A / B.
[0172] In an embodiment of the present application, the maximum speed or the minimum speed of the speed corresponding to the second control area is adjusted according to the position of the speed sub-control after sliding, so as to achieve speed limit processing of the target virtual game character through the second control area.
[0173] In some embodiments, the control further includes a first sub-control corresponding to the first control area and a second sub-control corresponding to the second control area, the first sub-control and the second sub-control are used to adjust the area range of the control area, and the speed corresponding to the first control area and / or the second control area is adjusted according to the position of the speed sub-control after sliding, including:
[0174] Determine whether the position of the speed subcontrol after sliding is between the first subcontrol and the second subcontrol;
[0175] If the position of the speed subcontrol after sliding is between the first subcontrol and the second subcontrol, the speed corresponding to the first control area and / or the second control area is adjusted according to the position of the speed subcontrol after sliding.
[0176] If the position of the speed subcontrol after sliding is not between the first subcontrol and the second subcontrol, the speed corresponding to the first control area and / or the second control area is not adjusted according to the position of the speed subcontrol after sliding.
[0177] 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. In this case, the speed sub-control, the first sub-control and the second sub-control can be as follows: Fig.15 As shown in 1501, the speed corresponding to the first control area and / or the second control area is not adjusted according to the position of the speed subcontrol. In response to the sliding operation on the speed subcontrol, the speed subcontrol is slid between the first subcontrol and the second subcontrol. At this time, the speed subcontrol, the first subcontrol and the second subcontrol can be as shown in Fig.15 As shown in 1502, the speed corresponding to the first control area and / or the second control area is adjusted according to the position of the speed sub-control after sliding.
[0178] Optionally, if the position of the speed subcontrol after sliding is between the first subcontrol and the second subcontrol, the process of adjusting the speed corresponding to the first control area and / or the second control area according to the position of the speed subcontrol after sliding may be:
[0179] If the position of the speed subcontrol after sliding is between the first subcontrol and the second subcontrol, the maximum speed or the minimum speed of the speeds corresponding to the second control area is adjusted according to the position of the speed subcontrol after sliding.
[0180] Optionally, if the position of the speed subcontrol after sliding is between the first subcontrol and the second subcontrol, the process of adjusting the speed corresponding to the first control area and / or the second control area according to the position of the speed subcontrol after sliding may also be:
[0181] If the position of the speed subcontrol after sliding is between the first subcontrol and the second subcontrol, then obtaining a first distance between the first subcontrol and the second subcontrol;
[0182] Determine a second distance according to the position of the speed subcontrol after sliding, the second distance being the distance between the speed subcontrol and the first subcontrol, or the second distance being the distance between the speed subcontrol and the second subcontrol;
[0183] According to the first distance and the second distance, the speed corresponding to the first control area and / or the second control area is adjusted.
[0184] The second distance may be divided by the first distance to obtain a distance ratio, and then the speed corresponding to the first control area and / or the second control area may be adjusted according to the speed corresponding to the distance ratio.
[0185] Optionally, the maximum speed or the minimum speed in the speed corresponding to the second control area can be adjusted according to the speed corresponding to the distance ratio. In this case, the adjusted maximum speed or the adjusted minimum speed in the speed corresponding to the second control area can be the speed corresponding to the distance ratio. For example, if the speed corresponding to the distance ratio is 4A / B and the maximum speed in the speed corresponding to the second control area is 6A / B, then the adjusted maximum speed in the speed corresponding to the second control area is 4A / B.
[0186] In some embodiments, in response to a trigger operation on a control, adjusting the first control area and / or the second control area includes:
[0187] In response to a triggering operation on the control, adjusting the area range of the first control area and / or the second control area;
[0188] 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 area to the speed corresponding to the control area;
[0189] In response to the triggering operation on the control, the speed corresponding to the first control area and / or the second control area is adjusted.
[0190] Among them, the type of change operation on the parameters adjusted by the control can be set according to the actual situation. For example, the sub-control can also be changed on the control, and the change operation can be a trigger operation for changing the sub-control, or the change operation can also be a voice change operation, or the change operation can also be a long press operation on the control. The embodiments of the present application are not limited here.
[0191] In an embodiment of the present application, in response to a triggering operation on a control, the area range of the first control area and / or the second control area is adjusted; in response to a change operation on a parameter adjusted by the control, the parameter adjusted by the control is changed from the area range of the control area to a speed corresponding to the control area; in response to a triggering operation on the control, the speed corresponding to the first control area and / or the second control area is adjusted, thereby achieving the goal of adjusting 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 through one control, simplifying the control settings on the joystick control interface and saving computing resources of the terminal.
[0192] 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 in response to a triggering operation on the control, adjusting the area range of the first control area and / or the second control area includes:
[0193] In response to a triggering operation on the first sub-control, adjusting the area range of the first control area;
[0194] and / or, in response to a triggering operation on the second sub-control, adjusting the area range of the second control area;
[0195] 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 area to the speed corresponding to the control area;
[0196] In response to a trigger operation on the first sub-control, adjusting a speed corresponding to the first control area;
[0197] And / or, in response to a triggering operation on the second sub-control, adjusting the speed corresponding to the second control area.
[0198] From the above content, it can be seen that in the embodiment of the present application, a graphical user interface is provided by an electronic device, and the graphical user interface includes a preset first control area and a second control area located outside the first control area. The first control area includes an initial position, and in response to a first sliding operation in the first control area, the target virtual game character is controlled to move at a predetermined first speed. In response to a second sliding operation in the second control area, the target virtual game character is controlled to move at a second speed according to the relative positions of the touch points on the graphical user interface corresponding to the initial position and the second sliding operation, so as to achieve the control of the target virtual game character to move at different speeds in the first control area and the second control area, and in the second control area, according to different relative positions, the target virtual game character is controlled to move at different second speeds, which can not only improve the flexibility of controlling the speed of the target virtual game character, but also reduce the variation range of the speed of the target virtual game character, thereby reducing the difference between different game scenes reflecting the movement of the target virtual game character, thereby saving computer resources consumed by the electronic device to render the game scene.
[0199] In order to better implement the above method, the embodiment of the present application also provides a character control device, which can be integrated into an electronic device, such as a computer device, which can be a terminal, a server, or other device.
[0200] Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop computer, a personal computer and other devices; the server can be a single server or a server cluster composed of multiple servers.
[0201] For example, in this embodiment, the method of the embodiment of the present application is described in detail by taking the role control device specifically integrated in the terminal as an example. This embodiment provides a role control device, such as Fig.16 As shown, the character control device provides a graphical user interface through an electronic device, the graphical user interface includes a preset first control area and a second control area located outside the first control area, the first control area includes an initial position, and the character control device may include:
[0202] The first response module 1601 is used to respond to a first sliding operation in a first control area and control a target virtual game character to move at a predetermined first speed.
[0203] The second response module 1602 is used to respond to the second sliding operation in the second control area, and control the target virtual game character 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.
[0204] In some embodiments, the graphical user interface further includes a third control area located outside the second control area, and the character control device further includes a third response module, and the third response module is used to execute:
[0205] In response to a third sliding operation applied to the third control area, the target virtual game character is controlled to move at a predetermined third speed.
[0206] In some embodiments, the second response module 1602 is specifically configured to execute:
[0207] In response to a second sliding operation applied to the second control area, determining a relative position between the initial position and a touch point on the graphical user interface corresponding to the second sliding operation;
[0208] 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 far from the initial position;
[0209] The target virtual game character is controlled to move at a second speed.
[0210] In some embodiments, the first response module 1601 is further configured to execute:
[0211] In response to a first trigger operation on the setting control, locking the moving speed of the target virtual game character to a first speed;
[0212] In response to a sliding operation in different control areas, a target virtual game character is controlled to move at a first speed, and the different control areas include a first control area and a second control area.
[0213] In some embodiments, the character control device further includes a setting module, and the setting module is used to execute:
[0214] Displaying a joystick control interface on the graphical user interface, the joystick control interface including controls for adjusting a control area, the control area including a first control area and / or a second control area;
[0215] In response to a triggering operation on the control, the first control area and / or the second control area is adjusted.
[0216] 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 above setting module is specifically used to perform:
[0217] In response to a triggering operation on the first sub-control, adjusting the first control area;
[0218] And / or, in response to a triggering operation on the second sub-control, adjusting the second control area.
[0219] In some embodiments, the trigger operation is a sliding operation, the first sub-control and the second sub-control are used to adjust the area range of the control area, and the above setting module is specifically used to perform:
[0220] In response to a sliding operation on the first subcontrol, determining a position of the first subcontrol after sliding on the control;
[0221] According to the position of the first subcontrol after sliding, the area range of the first control area is adjusted;
[0222] and / or, in response to a sliding operation on the second sub-control, determining a position of the second sub-control after sliding on the control;
[0223] According to the position of the second subcontrol after sliding, the area range of the second control area is adjusted.
[0224] In some embodiments, the above setting module is specifically used to perform:
[0225] Determine the distance between the second subcontrol and the first subcontrol according to the position of the second subcontrol after sliding;
[0226] According to the distance, the area range of the second control area is adjusted.
[0227] In some embodiments, the above setting module is specifically used to perform:
[0228] Determine the distance between the first subcontrol and the second subcontrol according to the position of the first subcontrol after sliding;
[0229] According to the distance, the area range of the second control area is adjusted;
[0230] According to the position of the first subcontrol after sliding, the area range of the first control area is adjusted.
[0231] In some embodiments, the trigger operation is a sliding operation, and the control includes a speed sub-control for adjusting the speed corresponding to the control area. The above setting module is specifically used to perform:
[0232] In response to a sliding operation on the speed subcontrol, determine the position of the speed subcontrol after sliding on the control;
[0233] According to the position of the speed subcontrol after sliding, the speed corresponding to the first control area and / or the second control area is adjusted.
[0234] In some embodiments, the above setting module is specifically used to perform:
[0235] According to the position of the speed subcontrol after sliding, the maximum speed or the minimum speed corresponding to the second control area is adjusted.
[0236] In some embodiments, the control further includes a first sub-control corresponding to the first control area and a second sub-control corresponding to the second control area, the first sub-control and the second sub-control are used to adjust the area range of the control area, and the above setting module is specifically used to execute:
[0237] Determine whether the position of the speed subcontrol after sliding is between the first subcontrol and the second subcontrol;
[0238] If the position of the speed subcontrol after sliding is between the first subcontrol and the second subcontrol, the speed corresponding to the first control area and / or the second control area is adjusted according to the position of the speed subcontrol after sliding.
[0239] In some embodiments, the above setting module is specifically used to perform:
[0240] If the position of the speed subcontrol after sliding is between the first subcontrol and the second subcontrol, then obtaining a first distance between the first subcontrol and the second subcontrol;
[0241] Determine a second distance according to the position of the speed subcontrol after sliding, the second distance being the distance between the speed subcontrol and the first subcontrol, or the second distance being the distance between the speed subcontrol and the second subcontrol;
[0242] According to the first distance and the second distance, the speed corresponding to the first control area and / or the second control area is adjusted.
[0243] In some embodiments, the above setting module is specifically used to perform:
[0244] In response to a triggering operation on the control, adjusting the area range of the first control area and / or the second control area;
[0245] 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 area to the speed corresponding to the control area;
[0246] In response to the triggering operation on the control, the speed corresponding to the first control area and / or the second control area is adjusted.
[0247] In some embodiments, a first control area and a second control area are displayed on the control, and the above setting module is specifically used to perform:
[0248] In response to the boundary adjustment 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.
[0249] In some embodiments, the character control device further includes an adjustment display module, and the adjustment display module is specifically used to perform:
[0250] 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 the adjusted character index information, and the character index information affects the survival state of the target virtual game character in the game;
[0251] The adjusted character indicator information is displayed to prompt the player to adjust the moving speed of the target virtual game character according to the adjusted character indicator information.
[0252] In some embodiments, the initial position is the center position of the first control area, or the initial position is the trigger position corresponding to the trigger operation acting in the first control area.
[0253] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments, which will not be repeated here.
[0254] Accordingly, the embodiment of the present application also provides an electronic device, which may be a terminal, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) and other terminal devices. Fig.17 As shown, Fig.17 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. 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. It will be understood by those skilled in the art that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0255] Processor 1701 is the control center of electronic device 1700. It uses various interfaces and lines to connect various parts of the entire electronic device 1700, executes various functions of electronic device 1700 and processes data by running or loading software programs and / or modules stored in memory 1702, and calling data stored in memory 1702, thereby monitoring electronic device 1700 as a whole.
[0256] In the embodiment of the present application, the processor 1701 in the electronic device 1700 will load instructions corresponding to the processes of one or more application programs into the memory 1702 according to the following steps, and the processor 1701 will run the application programs stored in the memory 1702 to implement various functions, such as:
[0257] In response to a first sliding operation in the first control area, controlling the target virtual game character to move at a predetermined first speed;
[0258] In response to a second sliding operation applied to the second control area, the target virtual game character is controlled to move at a second speed according to the relative positions of the touch points on the graphical user interface corresponding to the initial position and the second sliding operation.
[0259] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the character control method above, which will not be elaborated here.
[0260] Optional, such as Fig.17 As shown, the electronic device 1700 further includes: a touch 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 to the touch 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 Fig.17 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0261] The touch display screen 1703 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 1703 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-EmittingDiode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 1701, and can receive the command sent by the processor 1701 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 1701 to determine the type of touch event, and then the processor 1701 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 1703 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 1703 can also be used as a part of the input unit 1706 to realize the input function.
[0262] The radio frequency circuit 1704 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals between the network device or other electronic devices.
[0263] The audio circuit 1705 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 1705 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1705 and converted into audio data, and then the audio data is output to the processor 1701 for processing, and then sent to another electronic device through the radio frequency circuit 1704, or the audio data is output to the memory 1702 for further processing. The audio circuit 1705 may also include an earplug jack to provide communication between an external headset and an electronic device.
[0264] The input unit 1706 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0265] 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. The power supply 1707 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0266] although Fig.17 Not shown, the electronic device 1700 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0267] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0268] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0269] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, and the computer program can be loaded by a processor to execute any character control method provided in the embodiment of the present application. For example, the computer program can execute the following steps:
[0270] In response to a first sliding operation in the first control area, controlling the target virtual game character to move at a predetermined first speed;
[0271] In response to a second sliding operation applied to the second control area, the target virtual game character is controlled to move at a second speed according to the relative positions of the touch points on the graphical user interface corresponding to the initial position and the second sliding operation.
[0272] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the character control method above, which will not be elaborated here.
[0273] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0274] Since the computer program stored in the computer-readable storage medium can execute any one of the character control methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the character control methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0275] The above is a detailed introduction to a character control method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A character control method, characterized in that: Providing a graphical user interface by an electronic device, the graphical user interface comprising a preset first control area and a second control area located outside the first control area, the first control area comprising an initial position, the method comprising: In response to a first sliding operation in the first control area, controlling the target virtual game character to move at a predetermined first speed; In response to a second sliding operation applied to the second control area, the target virtual game character is controlled to move at a second speed according to a relative position of the initial position and a touch point on the graphical user interface corresponding to the second sliding operation.
2. The character control method according to claim 1, characterized in that: The graphical user interface further includes a third control area located outside the second control area, and the method further includes: In response to a third sliding operation acting in the third control area, the target virtual game character is controlled to move at a predetermined third speed.
3. The character control method according to claim 1, characterized in that: The step of responding to a second sliding operation in the second control area and controlling the target virtual game character 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 comprises: In response to a second sliding operation performed within the second control area, determining a relative position between the initial position and a touch point on the graphical user interface corresponding to the second sliding operation; 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 far from the initial position; The target virtual game character is controlled to move at the second speed.
4. The character control method according to claim 1, characterized in that: The graphical user interface also includes a setting control, and the method further includes: In response to a first trigger operation on the setting control, locking the moving speed of the target virtual game character to the first speed; In response to a sliding operation in different control areas, the target virtual game character is controlled to move at the first speed, and the different control areas include the first control area and the second control area.
5. The character control method according to claim 1, characterized in that: The method further comprises: Displaying a joystick control interface on the graphical user interface, wherein the joystick control interface includes a control for adjusting a control area, wherein the control area includes the first control area and / or the second control area; In response to a triggering operation on the control, the first control area and / or the second control area is adjusted.
6. The character control method according to claim 5, characterized in that: 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 in response to a triggering operation on the control, adjusting the first control area and / or the second control area includes: In response to a triggering operation on the first sub-control, adjusting the first control area; And / or, in response to a triggering operation on the second sub-control, adjusting the second control area.
7. The character control method according to claim 6, characterized in that: The trigger operation is a sliding operation, the first sub-control and the second sub-control are used to adjust the area range of the control area, and the adjusting of the first control area in response to the trigger operation of the first sub-control includes: In response to a sliding operation on the first sub-control, determining a position of the first sub-control after sliding on the control; Adjusting the area range of the first control area according to the position of the first sub-control after sliding; And / or, in response to the triggering operation on the second sub-control, adjusting the second control area includes: In response to a sliding operation on the second sub-control, determining a position of the second sub-control after sliding on the control; The area range of the second control area is adjusted according to the position of the second sub-control after sliding.
8. The character control method according to claim 7, characterized in that: The adjusting the area range of the second control area according to the position of the second subcontrol after sliding includes: Determining the distance between the second sub-control and the first sub-control according to the position of the second sub-control after sliding; The area range of the second control area is adjusted according to the distance.
9. The character control method according to claim 7, characterized in that: The adjusting the area range of the first control area according to the position of the first subcontrol after sliding includes: Determining the distance between the first sub-control and the second sub-control according to the position of the first sub-control after sliding; According to the distance, adjusting the area range of the second control area; The area range of the first control area is adjusted according to the position of the first sub-control after sliding.
10. The character control method according to claim 5, characterized in that: The trigger operation is a sliding operation, the control includes a speed sub-control for adjusting the speed corresponding to the control area, and the first control area and / or the second control area are adjusted in response to the trigger operation of the control, including: In response to a sliding operation on the speed subcontrol, determining a position of the speed subcontrol after sliding on the control; According to the position of the speed subcontrol after sliding, the speed corresponding to the first control area and / or the second control area is adjusted.
11. The character control method according to claim 10, characterized in that: The adjusting the speed corresponding to the second control area according to the position of the speed subcontrol after sliding includes: According to the position of the speed subcontrol after sliding, the maximum speed or the minimum speed among the speeds corresponding to the second control area is adjusted.
12. The character control method according to claim 10, characterized in that: The control further includes a first sub-control corresponding to the first control area and a second sub-control corresponding to the second control area, the first sub-control and the second sub-control are used to adjust the area range of the control area, and the speed corresponding to the first control area and / or the second control area is adjusted according to the position of the speed sub-control after sliding, including: Determine 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 subcontrol after sliding is between the first subcontrol and the second subcontrol, the speed corresponding to the first control area and / or the second control area is adjusted according to the position of the speed subcontrol after sliding.
13. The character control method according to claim 12, characterized in that: If the position of the speed subcontrol after sliding is between the first subcontrol and the second subcontrol, adjusting the speed corresponding to the first control area and / or the second control area according to the position of the speed subcontrol after sliding, including: If the position of the speed sub-control after sliding is between the first sub-control and the second sub-control, obtaining a first distance between the first sub-control and the second sub-control; Determine a second distance according to the position of the speed subcontrol after sliding, wherein the second distance is the distance between the speed subcontrol and the first subcontrol, or the second distance is the distance between the speed subcontrol and the second subcontrol; According to the first distance and the second distance, the speed corresponding to the first control area and / or the second control area is adjusted.
14. The character control method according to claim 5, characterized in that: The adjusting the first control area and / or the second control area in response to the triggering operation on the control includes: In response to a triggering operation on the control, adjusting the area range of the first control area and / or the second control area; 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 area to the speed corresponding to the control area; In response to a triggering operation on the control, a speed corresponding to the first control area and / or the second control area is adjusted.
15. The character control method according to claim 5, characterized in that: The control displays the first control area and the second control area, and in response to the triggering operation on the control, adjusting the first control area and / or the second control area includes: In response to the boundary adjustment operation on the first control area and / or the second control area, the area range of the first control area and / or the second control area is adjusted.
16. The character control method according to claim 1, characterized in that: After controlling the target virtual game character to move, the method further includes: 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, wherein the character index information affects the survival state of the target virtual game character in the game; The adjusted character indicator information is displayed to prompt the player to adjust the moving speed of the target virtual game character according to the adjusted character indicator information.
17. The character control method according to any one of claims 1 to 16, characterized in that: The initial position is a center position of the first control area, or the initial position is a trigger position corresponding to a trigger operation acting within the first control area.
18. A character control device, characterized in that: A graphical user interface is provided by an electronic device, the graphical user interface comprising a preset first control area and a second control area located outside the first control area, the first control area comprising an initial position, and the device comprising: A first response module, configured to respond to a first sliding operation in the first control area and control the target virtual game character to move at a predetermined first speed; The second response module is used to respond to the second sliding operation acting in 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 the touch point corresponding to the second sliding operation on the graphical user interface.
19. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the character control method as claimed in any one of claims 1 to 17.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being 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
Cited By
Character control method and apparatus, electronic device, and computer-readable storage medium
WO2025251984A1
