Disclosure of Invention
Accordingly, an object of the present application is to provide a control method, a control device, an electronic device, and a readable storage medium, which can provide a probe control capable of controlling a probe of a virtual character to a direction of a dangerous event according to a relative direction between the dangerous event and the virtual character, so that a player can control the probe of the virtual character to the dangerous direction through the probe control, and the adjustment of the probe direction by the player during the probe process of the virtual character can be reduced, thereby reducing the interaction process between the player and a terminal device, and reducing the response frequency of the terminal device.
The embodiment of the application provides a control method, wherein a part or all of game scenes, a blocking object capable of blocking the observation sight of a virtual character and a functional control are displayed in a graphical user interface, and the control method comprises the following steps:
Responding to a first touch operation aiming at the functional control, and controlling the virtual character to move in a game scene;
in a state that the observation sight of the virtual character is blocked by the barrier, responding to a dangerous event occurring around the virtual character, and displaying a probe control used for pointing to the target direction of the dangerous event in the graphical user interface according to the relative direction between the virtual character and the dangerous event;
and responding to a second touch operation for the probe control, controlling the virtual character to perform a probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the target direction.
In one possible embodiment, the control method further includes:
Determining a first probe parameter of the virtual character in response to a third touch operation aiming at the probe control, wherein the probe parameter comprises a probe distance and/or a probe direction;
The responding to the second touch operation of the probe control controls the virtual character to perform the probe, adjusts the picture of the game scene displayed in the graphical user interface according to the target direction, and comprises the following steps:
and responding to a second touch operation aiming at the probe control, controlling the virtual character to perform probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the first probe parameter and the target direction.
In one possible implementation, the second touch operation includes a first sliding operation, and the responding to the second touch operation of the probe control controls the virtual character to perform the probe, adjusts the picture of the game scene displayed in the graphical user interface according to the target direction, and includes:
responding to the start of a first sliding operation of the probe control, controlling the virtual character to perform a probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the target direction;
The control method further includes:
determining real-time probe parameters of the virtual character according to the real-time touch position of the first sliding operation in the sliding process of the first sliding operation, wherein the real-time probe parameters comprise a real-time probe distance and/or a real-time probe direction;
And adjusting the picture of the game scene displayed in the graphical user interface in real time according to the real-time probe parameters.
In one possible embodiment, the control method further includes:
terminating probe behavior of the virtual character in response to the end of the first sliding operation, restoring display content in the graphical user interface to a view of a game scene preceding the virtual character probe, or,
And responding to a fourth touch operation aiming at a behavior termination control, terminating the probe behavior of the virtual character, and restoring the display content in the graphical user interface to the picture of the game scene before the virtual character probe.
In one possible implementation, the graphical user interface displays a first parameter adjustment control, and the control method further comprises:
determining a second probe parameter of the virtual character in response to a fifth touch operation of the first parameter adjustment control, wherein the probe parameter comprises a probe distance and/or a probe direction;
The responding to the second touch operation of the probe control controls the virtual character to perform the probe, adjusts the picture of the game scene displayed in the graphical user interface according to the target direction, and comprises the following steps:
And responding to a second touch operation aiming at the probe control, controlling the virtual character to probe according to the second probe parameter, and adjusting the picture of the game scene displayed in the graphical user interface according to the second probe parameter and the target direction.
In one possible implementation, the responding to the second touch operation of the probe control controls the virtual character to perform the probe, and adjusts the screen of the game scene displayed in the graphical user interface according to the target direction, including:
Responding to a second touch operation aiming at the probe control, entering a probe mode, controlling the virtual character to perform probe, adjusting the picture of the game scene displayed in the graphical user interface according to the target direction, and displaying a second parameter adjustment control in the graphical user interface, wherein the second parameter adjustment control comprises a distance adjustment control and a functional control;
And responding to a sixth touch operation aiming at the second parameter adjustment control, determining a third probe parameter of the virtual character, and adjusting a picture of a game scene displayed in the graphical user interface according to the third probe parameter, wherein the probe parameter comprises a probe distance and/or a probe direction.
In one possible implementation, the determining, in response to a sixth touch operation of the second parameter adjustment control, a third probe parameter of the virtual character includes:
Determining a second probe distance of the virtual character in response to a seventh touch operation for the distance adjustment control in the probe mode, and/or adjusting the target direction in response to an eighth touch operation for the functional control in the probe mode;
And determining a third probe parameter of the virtual character according to the second probe distance and/or the adjusted target direction.
In a possible implementation manner, one end of the distance adjustment control is close to the probe control, the other end of the distance adjustment control is close to the functional control, the seventh touch operation is a fourth sliding operation, the responding to the sixth touch operation of the second parameter adjustment control determines a third probe parameter of the virtual character, and the method includes:
Determining a real-time sliding position of a second sliding operation for the distance adjustment control in response to the second sliding operation;
and determining a third probe parameter of the virtual character in response to the real-time distance between the real-time sliding position and the functional control or the probe control.
In one possible embodiment, the control method further includes:
and stopping the probe action of the virtual character and restoring the display content in the graphical user interface to the picture of the game scene before the virtual character probe in response to the real-time sliding position and the real-time distance between the functional controls being smaller than the preset distance.
In one possible embodiment, the dangerous event includes at least one of:
a combat event exists within a preset range around the virtual character, and/or,
An hostile virtual character is within the attack scope of the virtual character.
The embodiment of the application also provides a control device, wherein a part or all of game scenes, a blocking object capable of blocking the observation sight of the virtual character and a functional control are displayed in the graphical user interface, and the control device comprises:
the moving module is used for responding to the first touch operation aiming at the functional control and controlling the virtual character to move in the game scene;
The control display module is used for responding to dangerous events occurring around the virtual character in a state that the observation sight of the virtual character is blocked by the blocking object, and displaying a probe control used for pointing to the target direction of the dangerous event in the graphical user interface according to the relative direction between the virtual character and the dangerous events;
And the picture adjustment module is used for responding to the second touch operation of the probe control, controlling the virtual character to perform the probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the target direction.
In a possible embodiment, the control device further comprises a first parameter adjustment module for:
Determining a first probe parameter of the virtual character in response to a third touch operation aiming at the probe control, wherein the probe parameter comprises a probe distance and/or a probe direction;
The picture adjusting module is used for controlling the virtual character to conduct probe in response to a second touch operation for the probe control, and adjusting a picture of a game scene displayed in the graphical user interface according to the target direction, and the picture adjusting module is used for:
and responding to a second touch operation aiming at the probe control, controlling the virtual character to perform probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the first probe parameter and the target direction.
In one possible implementation, the second touch operation includes a first sliding operation, and the screen adjustment module, when configured to respond to the second touch operation for the probe control, controls the virtual character to perform a probe, and adjusts a screen of a game scene displayed in the graphical user interface according to the target direction, is configured to:
responding to the start of a first sliding operation of the probe control, controlling the virtual character to perform a probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the target direction;
The control device further comprises a second parameter adjusting module, wherein the second parameter adjusting module is used for:
determining real-time probe parameters of the virtual character according to the real-time touch position of the first sliding operation in the sliding process of the first sliding operation, wherein the real-time probe parameters comprise a real-time probe distance and/or a real-time probe direction;
And adjusting the picture of the game scene displayed in the graphical user interface in real time according to the real-time probe parameters.
In one possible implementation manner, the control device further includes a first behavior termination module, where the first behavior termination module is configured to:
terminating probe behavior of the virtual character in response to the end of the first sliding operation, restoring display content in the graphical user interface to a view of a game scene preceding the virtual character probe, or,
And responding to a fourth touch operation aiming at a behavior termination control, terminating the probe behavior of the virtual character, and restoring the display content in the graphical user interface to the picture of the game scene before the virtual character probe.
In one possible implementation, the graphical user interface displays a first parameter adjustment control, and the control device further comprises a third parameter adjustment module for:
determining a second probe parameter of the virtual character in response to a fifth touch operation of the first parameter adjustment control, wherein the probe parameter comprises a probe distance and/or a probe direction;
The picture adjusting module is used for controlling the virtual character to conduct probe in response to a second touch operation for the probe control, and adjusting a picture of a game scene displayed in the graphical user interface according to the target direction, and the picture adjusting module is used for:
And responding to a second touch operation aiming at the probe control, controlling the virtual character to probe according to the second probe parameter, and adjusting the picture of the game scene displayed in the graphical user interface according to the second probe parameter and the target direction.
In one possible implementation, the screen adjustment module, when configured to control the virtual character to perform the probe in response to the second touch operation for the probe control, adjusts a screen of a game scene displayed in the graphical user interface according to the target direction, is configured to:
Responding to a second touch operation aiming at the probe control, entering a probe mode, controlling the virtual character to perform probe, adjusting the picture of the game scene displayed in the graphical user interface according to the target direction, and displaying a second parameter adjustment control in the graphical user interface, wherein the second parameter adjustment control comprises a distance adjustment control and a functional control;
And responding to a sixth touch operation aiming at the second parameter adjustment control, determining a third probe parameter of the virtual character, and adjusting a picture of a game scene displayed in the graphical user interface according to the third probe parameter, wherein the probe parameter comprises a probe distance and/or a probe direction.
In one possible implementation, the screen adjustment module, when configured to determine the third probe parameter of the virtual character in response to a sixth touch operation for the second parameter adjustment control, is configured to:
Determining a second probe distance of the virtual character in response to a seventh touch operation for the distance adjustment control in the probe mode, and/or adjusting the target direction in response to an eighth touch operation for the functional control in the probe mode;
And determining a third probe parameter of the virtual character according to the second probe distance and/or the adjusted target direction.
In a possible implementation manner, one end of the distance adjustment control is close to the probe control, the other end of the distance adjustment control is close to the functional control, the seventh touch operation is a fourth sliding operation, and the screen adjustment module, when determining a third probe parameter of the virtual character in response to a sixth touch operation for the second parameter adjustment control, is configured to:
Determining a real-time sliding position of a second sliding operation for the distance adjustment control in response to the second sliding operation;
and determining a third probe parameter of the virtual character in response to the real-time distance between the real-time sliding position and the functional control or the probe control.
In a possible implementation manner, the control device includes a second behavior termination module, where the second behavior termination module is configured to:
and stopping the probe action of the virtual character and restoring the display content in the graphical user interface to the picture of the game scene before the virtual character probe in response to the real-time sliding position and the real-time distance between the functional controls being smaller than the preset distance.
In one possible embodiment, the dangerous event includes at least one of:
a combat event exists within a preset range around the virtual character, and/or,
An hostile virtual character is within the attack scope of the virtual character.
The embodiment of the application also provides electronic equipment, which comprises a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, when the electronic equipment is operated, the processor and the memory are communicated through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the control method.
The embodiment of the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the control method as described above.
The control method, the control device, the electronic equipment and the readable storage medium provided by the embodiment of the application have the advantages that a part or all of game scenes, barriers capable of shielding the observation sight of the virtual character and functional controls are displayed in a graphical user interface, the control method comprises the steps of responding to first touch operation aiming at the functional controls, controlling the virtual character to move in the game scenes, responding to dangerous events occurring around the virtual character when the observation sight of the virtual character is shielded by the barriers, displaying probe controls used for pointing to the target direction of the dangerous events in the graphical user interface according to the relative direction between the virtual character and the dangerous events, responding to second touch operation aiming at the probe controls, controlling the virtual character to conduct probes, and adjusting the pictures of the game scenes displayed in the graphical user interface according to the target direction. Therefore, the player can control the virtual character to the dangerous direction probe through the probe control, and the adjustment of the probe direction of the player in the probe process of the virtual character can be reduced, so that the interaction process between the player and the terminal equipment can be reduced, and the response frequency of the terminal equipment can be reduced.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments of the present application, every other embodiment obtained by a person skilled in the art without making any inventive effort falls within the scope of protection of the present application.
Virtual roles:
Refers to dynamic objects that can be controlled in a game scene. Alternatively, the dynamic object may be a virtual character, a virtual animal, a cartoon character, or the like. The virtual object is a character that a player controls through an input device, or is an artificial intelligence set in a virtual environment fight by training (ARTIFICIAL INTELLIGENCE, AI), or is a Non-player character set in a game scene fight (Non-PLAYER CHARACTER, NPC). Optionally, the avatar is a avatar that plays in the game scene. Optionally, the number of virtual characters in the game scene fight is preset, or is dynamically determined according to the number of clients joining the fight, which is not limited by the embodiment of the present application. In one possible implementation, a user can control a virtual object to move in the virtual scene, e.g., control a virtual character to run, jump, crawl, etc., as well as control the virtual character to fight other virtual characters using skills, virtual props, etc., provided by the application.
Game interface:
The interface is an interface corresponding to the application program provided or displayed through a graphical user interface, and the interface comprises a UI interface and a game screen for the player to interact. In alternative embodiments, game controls (e.g., skill controls, movement controls, functionality controls, etc.), indication identifiers (e.g., direction indication identifiers, character indication identifiers, etc.), information presentation areas (e.g., number of clicks, time of play, etc.), or game setting controls (e.g., system settings, stores, gold coins, etc.) may be included in the UI interface. In an alternative embodiment, the game screen is a display screen corresponding to the virtual scene displayed by the terminal device, and the game screen may include virtual objects such as game characters, NPC characters, AI characters, and the like for executing game logic in the virtual scene.
The control method in one embodiment of the present disclosure may be run on a terminal device or a server. The terminal device may be a local terminal device. When the control method runs on the server, the control method can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an alternative embodiment, various cloud applications, such as cloud gaming, may be run under the cloud interaction system. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, the running main body of the game program and the game picture presentation main body are separated, the storage and running of the information processing method are completed on the cloud game server, the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function, such as a mobile terminal, a television, a computer, a palm computer and the like, which is close to a user side, but the terminal device for processing information is the cloud game server in the cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through the graphical user interface, namely, conventionally downloading and installing the game program through the electronic device and running. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, may be rendered for display on a display screen of the terminal, or provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
According to the research, at present, when the observation sight of the virtual character controlled by a player is blocked in the game process, the player cannot view the game picture, at the moment, the player can control the probe of the virtual character in the game scene through a probe control displayed in a graphical user interface, so that the game picture of the player is restored by adjusting the observation sight of the virtual character.
In addition, the probe direction, the probe distance and the probe angle of the probe control provided for the player in the graphical user interface are all fixed, and when the player controls the virtual character to perform the probe in the game scene through the probe control, in order to obtain a better observation field of view, the position of the virtual character needs to be continuously adjusted, so that the virtual character can obtain a better observation field of view under the condition that the probe direction, the probe distance and the probe angle are limited, therefore, the player also needs to adjust the probe position of the virtual character through other functional controls in the process of controlling the virtual character to perform the probe in the game scene, and the probe operation of controlling the virtual character to perform the probe is complicated.
Based on the above, the embodiment of the application provides a control method, wherein a player can control the probe of the virtual character to the target direction of the dangerous event through the probe control in the game process, so that the process of controlling the virtual character to turn in the game process by the player is reduced, the operation difficulty of the player is reduced, the interaction process of the player and the terminal equipment is reduced, and the response frequency of the terminal equipment is reduced.
Referring to fig. 1, fig. 1 is a flowchart of a control method according to an embodiment of the application. A part or all of the game scene, the virtual character controlled by the player, a barrier capable of blocking the observation sight of the virtual character and the functional control are displayed in the graphical user interface. As shown in fig. 1, a control method provided by an embodiment of the present application includes:
And S101, responding to a first touch operation aiming at the functional control, and controlling the virtual character to move in a game scene.
S102, in a state that the observation sight of the virtual character is blocked by the blocking object, responding to a dangerous event occurring around the virtual character, and displaying a probe control for pointing to the target direction of the dangerous event in the graphical user interface according to the relative direction between the virtual character and the dangerous event.
And S103, responding to a second touch operation for the probe control, controlling the virtual character to perform a probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the target direction.
The embodiment of the application provides a control method, wherein a player can control a virtual character to move in a game scene through a functional control, when the observation sight of the virtual character is blocked by a blocking object in the game scene, a discussion control pointing to the target direction of a dangerous event is displayed in combination with the relative direction between the dangerous event and the virtual character under the condition that the dangerous event occurs around the virtual character, and the player can control the probe of the virtual character to the target direction of the dangerous event through touching the corresponding probe control, and simultaneously adjust the picture of the game scene displayed in an image user interface according to the target direction. In this way, in a state that the observation sight of the virtual character controlled by the player is blocked, the touch probe control can control the virtual character to the probe in the target direction of the dangerous event and adjust the picture displayed in the image user interface, so that when the dangerous event occurs, the player can quickly lock the observation sight in the target direction of the dangerous event without repeatedly operating the control virtual character to adjust the direction of the observation sight, the operation steps of the player in the game are reduced, the frequency of man-machine interaction in the game is reduced, and the response frequency of the terminal equipment is reduced.
In step S101, the virtual character is controlled to move in the game scene in response to a first touch operation of the player for the function control displayed in the graphical user interface, wherein the first touch operation may include any operation such as a clicking operation, a sliding operation, and a long press operation.
In the scheme provided by the application, the virtual character is controlled to move in a game scene in response to the first touch operation aiming at the functional control, specifically, when a player presses the functional control (for example, a moving control in a game), an instruction for controlling the movement of the virtual character can be issued, wherein a user can issue a movement instruction through the functional control and/or a preset combination key, specifically, the player can touch the functional control through a finger, a mouse and the like, or through a preset combination key in a keyboard, for example, a ctrl key, an alt key, an a key and the like in the keyboard, and the preset key can be set manually according to the requirements of the player.
Here, the functional controls may include controls that are specifically set to control the virtual character to move in the game scene, and may also include controls with multiple functions, for example, the functional controls may be used to control the virtual character to attack the hostile virtual character, and may also be used to control the virtual character to move in the game scene, where different functions are required to be implemented differently by different touch operations, for example, the touch functional controls may be used to control the virtual character to move in the game scene by sliding operations, the touch functional controls may be used to control the virtual character to attack the hostile virtual character by clicking operations, and so on.
The view line of the virtual character determines the game screen that the player can see, and if the view line of the virtual character is blocked by a blocking object in the game scene according to the game setting, the game screen displayed to the player is also affected, for example, if the view line of the virtual character is partially blocked, part of the game scene displayed to the player cannot be displayed to the player due to the blocking, and at this time, the area where the blocking part is located in the screen that the player can see should be black (or the same color as the blocking object).
Here, the barrier includes any non-transparent class virtual object such as a virtual building, other virtual character, virtual weapon, virtual obstacle, and the like.
The dangerous event refers to an event that can cause injury to the virtual character, for example, an attack by another virtual character or an attack by a fixedly arranged virtual weapon, and the injury refers to a situation that reduces the survival probability of the virtual character in the game, for example, reduces the life value of the virtual character, reduces the defensive power of the virtual character, reduces the attack power of the virtual character, and reduces the survival probability of the virtual character, such as a virtual weapon carried by the virtual character.
In step S102, in a state that the view of the virtual character is blocked by the blocking object, a relative direction between the dangerous event and the virtual character is determined in response to the dangerous event occurring around the virtual character, and according to the determined relative direction, a probe control for controlling the virtual character to the probe at the occurrence position of the dangerous event is displayed in the graphical user interface, wherein in order to facilitate a player to quickly grasp the general occurrence direction of the dangerous event, the probe control displayed in the graphical user interface can clearly indicate the target direction of the dangerous event, specifically, the display position of the probe control can be in one-to-one correspondence with the target direction of the dangerous event, for example, the target direction of the dangerous event is 60 degrees in the northeast direction of the virtual character, a reference object, for example, a displayed functional control is selected in the graphical user interface, and the probe control is displayed in the northeast direction of the reference object by 60 degrees, so as to inform the player of the target direction of the dangerous event.
The dangerous event comprises at least one of the following events, specifically, the present position of the virtual character is taken as the center, if the event exists in the preset range around the virtual character, whether the event is related to the virtual character or not, the dangerous event around the virtual character can be considered, or the dangerous event around the virtual character can be considered when the event is related to the virtual character.
And specifically, when the hostile virtual character exists in the current attack range of the virtual character, dangerous events occurring around the virtual character can be considered, wherein the current attack range of the virtual character can be determined according to the virtual weapon currently used by the virtual character, and the preset range can also be realized.
For example, referring to fig. 2, fig. 2 is a schematic diagram of a graphical user interface according to an embodiment of the present application. As shown in fig. 2, the graphical user interface 2a displays a function control 2b, a probe control 2c-1, a probe control 2c-2, a barrier 2d and a virtual character 2e, the view of the virtual character 2e is blocked by the barrier 2d, at this time, two dangerous events occur around the virtual character 2e, the relative direction between the dangerous event 1 and the virtual character 2e is the position indicated by the dangerous mark 2f-1, the relative direction between the dangerous event 2 and the virtual character 2e is the position indicated by the dangerous mark 2f-2 (the dangerous mark 2f-1 and the dangerous mark 2f-2 may or may not be displayed in the graphical user interface 2a, in this embodiment, for clearly illustrating the correspondence between the probe control and the target direction of the dangerous event, the display is taken as an example for illustration), where the target direction of the dangerous event is relative to the virtual character 2e, and in order to enable the probe control 2c (including the probe control 2c-1 and the probe control 2 c-2) displayed in the graphical user interface 2a to indicate the target direction of the dangerous event, the probe control 2c (including the probe control 2c-1 and the probe control 2 c-2) is displayed with the functional control 2b as a reference, that is, the relative position between the probe control 2c-1 and the functional control 2b corresponds to the relative position between the dangerous event 1 (the occurrence position of the dangerous event indicated by the dangerous mark 2 f-1) and the virtual character 2 e; accordingly, the relative position between the probe control 2c-2 and the functionality control 2b, corresponding to the relative position between the hazard event 2 (the hazard event occurrence position indicated by the hazard identifier 2 f-2) and the virtual character 2e, the probe control 2c-1 displayed in the graphical user interface 2a can clearly indicate the relative direction of the hazard event 1 to the virtual character 2e, and the probe control 2c-2 can clearly indicate the relative direction of the hazard event 2 to the virtual character 2 e.
In step S103, in response to the second touch operation for the probe control, the probe in the target direction of the dangerous event pointed by the probe control can be controlled by the virtual character, and at the same time, the screen of the game scene displayed in the graphical user interface can be adjusted according to the target direction, so as to ensure that the display screen seen by the player is consistent with the screen observed by the observation line of sight of the virtual character in the game.
In the scheme provided by the application, the virtual character is controlled to perform the probe in response to the second touch operation aiming at the probe control, specifically, when a player presses the probe control, an instruction for controlling the virtual character probe can be issued, wherein the user can issue the probe instruction through the probe control and/or a preset combination key, specifically, the player can touch the probe control through fingers, a mouse and the like, or through a preset combination key in a keyboard, for example, a ctrl key, an alt key, an a key and the like in the keyboard, and the preset key can be set manually according to the requirements of the player.
Here, the second touch operation may include any operation such as a click operation, a slide operation, and a long press operation.
Corresponding to the above embodiment, as shown in fig. 2, when the player clicks (taking the second touch operation as an example) the probe control 2c-1, the virtual character 2e may be controlled to probe in the target direction (the position indicated by the hazard sign 2 f-1) where the hazard event 1 occurs, and correspondingly, when the player clicks the probe control 2c-2, the virtual character 2e may be controlled to probe in the target direction (the position indicated by the hazard sign 2 f-2) where the hazard event 2 occurs (as shown by the dotted virtual character in the figure).
In order to avoid the temporary adjustment of the probe distance and the probe direction of the player in the process of controlling the virtual character probe, the method can provide the possibility of adjusting the parameters of the virtual character probe for the player before controlling the virtual character probe, i.e. the player can adjust the probe distance and the probe direction of the virtual character probe before controlling the virtual character probe.
In addition, in order to reduce the number of virtual controls displayed in the graphical user interface, and avoid the shielding of game pictures by displaying excessive virtual controls, the probe controls can be functionally multiplexed, i.e., the probe controls for controlling the virtual character probe can be used for adjusting the probe parameters of the virtual character before controlling the virtual character probe.
In one embodiment, the control method further comprises determining a first probe parameter for the virtual character in response to a third touch operation for the probe control.
In the scheme provided by the application, the first probe parameter of the virtual character is determined in response to the third touch operation of the probe control, specifically, when a player presses the probe control, an instruction for adjusting the distance and the direction of the probe of the virtual character can be issued, wherein the user can issue the instruction through the probe control and/or a preset combination key, specifically, the player can touch the probe control through fingers, a mouse and the like, or through a preset combination key in a keyboard, for example, a ctrl key, an alt key, an a key and the like in the keyboard, and the preset key can be set manually according to the requirements of the player.
In the method, a player can adjust probe parameters of the virtual character in a game scene by applying corresponding touch operation to a probe control, and the first probe parameters of the probe of the virtual character in the game scene after the player is adjusted by the touch probe control are determined in response to third touch operation applied by the player on the probe control, wherein the probe parameters comprise probe distance and/or probe direction.
Here, the third touch operation of adjusting the parameters of the virtual character probe may be different from the second touch operation of controlling the virtual character probe, for example, the second touch operation is a click operation, i.e., clicking the "probe control" to control the virtual character probe, and the third touch operation is a slide operation, i.e., sliding the "probe control" to adjust the parameters of the probe of the virtual character probe in the game scene.
The third touch operation for adjusting the parameters of the virtual character probe may be the same touch operation as the second touch operation for controlling the virtual character probe, in which case, the probe control may be controlled to enter the parameter adjustment state first, and then, in the parameter adjustment state, the adjustment of the parameters of the virtual character probe may be achieved through the touch probe control.
The mode of controlling the probe control to enter the parameter adjustment state may be determined according to the actual situation, for example, a state transition control may be additionally set, and the probe control is controlled to enter the parameter adjustment state through a touch state transition control, or the transition on the state of the probe control may be realized through a state transition operation, and the probe control is controlled to enter the parameter adjustment state, for example, the state transition operation is a long press operation, and the probe control may be controlled to enter the parameter adjustment state through a long press operation of the probe control, so that the adjustment of the probe parameter is realized through the touch probe control when the probe control is in the parameter adjustment state.
In one embodiment, step S103 includes controlling the virtual character to probe in response to a second touch operation for the probe control, and adjusting a frame of a game scene displayed in the graphical user interface according to the first probe parameter and a target direction.
In the scheme provided by the application, the virtual character is controlled to perform the probe in response to the second touch operation aiming at the probe control, specifically, when a player presses the probe control, an instruction for controlling the virtual character probe can be issued, wherein the user can issue the instruction through the probe control and/or a preset combination key, specifically, the player can touch the probe control through fingers, a mouse and the like, or through a preset combination key in a keyboard, for example, a ctrl key, an alt key, an a key and the like in the keyboard, and the preset key can be set manually according to the requirements of the player.
In the step, responding to the second touch operation aiming at the probe control, the virtual character can be controlled to carry out the probe according to the first probe parameter, and meanwhile, the target direction and the first probe parameter can be combined to adjust the picture of the game scene displayed in the graphical user interface so as to ensure that the display picture seen by the player is consistent with the picture observed by the virtual character in the game by observing the sight line.
Therefore, before the player controls the virtual character probe, the player can adjust the probe parameters of the virtual character according to own observation preference and probe habit, so that the situation that the virtual character probe is exposed to dangers too much can be avoided, and the survival probability of the virtual character is increased.
In the game process, the position of the dangerous event changes along with the real-time position of the fighting virtual character, so that in order to enable a player to monitor the dangerous event more comprehensively, after the player controls the virtual character to conduct a probe, the probe parameters of the virtual character can be adjusted through a probe control, and the change in the position of the dangerous event can be adapted on the premise that the number of virtual spaces displayed in a graphical user interface is not increased.
In one embodiment, the second touch operation comprises a first sliding operation, and step S103 comprises controlling the virtual character to conduct a probe in response to the start of the first sliding operation for the probe control, and adjusting the picture of the game scene displayed in the graphical user interface according to the target direction.
In order to simplify the operation process of the player, the player can control the virtual character to conduct probe through one-time sliding operation and adjust probe parameters of the virtual character in the process of the probe of the virtual character, specifically, the virtual character is controlled to conduct probe in the target direction of the dangerous event pointed by the probe control in response to the start of the first sliding operation, and meanwhile, the picture of the game scene displayed in the graphical user interface can be adjusted according to the target direction.
Further, the control method further comprises the steps of determining real-time probe parameters of the virtual character according to the real-time touch position of the first sliding operation in the sliding process of the first sliding operation, and adjusting the picture of the game scene displayed in the graphical user interface in real time according to the real-time probe parameters.
In the step, the probe parameters of the virtual character can be changed in real time and the picture displayed in the graphical user interface can be adjusted in the sliding process of the first sliding operation, specifically, the real-time touch position of the first sliding operation is determined in real time in the sliding process of the first sliding operation, the real-time probe parameters of the virtual character corresponding to the real-time touch position are determined, and the picture of the game scene displayed in the graphical user interface is adjusted in real time according to the real-time probe parameters.
The real-time touch control positions and the probe parameters are in one-to-one correspondence, the probe parameters (probe direction and/or probe distance) corresponding to each real-time touch control position are preset, and further, in the sliding process of the first sliding operation, the real-time probe parameters of the virtual character at the current moment can be determined according to the real-time touch control positions of the first sliding operation.
The real-time probe parameters include a real-time probe distance and/or a real-time probe direction, that is, a player can change the probe direction and/or the probe distance of the virtual character in real time during the process of the probe of the virtual character, and simultaneously, change the game picture presented in the graphical user interface in real time according to the probe distance and the probe direction of the virtual character.
Meanwhile, in order to further simplify the operation complexity of the game, the interaction process between the player and the terminal equipment in the game process is reduced, the response frequency of the terminal equipment is reduced, and the player can also select different modes to finish the probe behaviors of the virtual character.
In one embodiment, the control method further comprises terminating probe behavior of the virtual character in response to the end of the first sliding operation, and restoring display content in the graphical user interface to a screen of a game scene preceding the virtual character probe.
In this step, when the player wants to end the probe action of the virtual character, the probe action of the virtual character in the game can be terminated by ending the first sliding operation, and at the same time, in order to ensure that the display picture seen by the player is consistent with the picture observed by the virtual character in the game in the observation line of sight, the probe action of the virtual character is terminated and the content displayed in the graphic user interface is restored to the picture of the game scene before the virtual character probe, wherein the picture before the virtual character probe is actually the picture presented when the observation line of sight of the virtual character is blocked because the virtual character does not move in the process of the probe.
Or, in response to a fourth touch operation for a behavior termination control, terminating the probe behavior of the virtual character, and restoring the display content in the graphical user interface to the picture of the game scene before the virtual character probe.
In the step, a behavior termination control can be specially set in the graphical user interface, a player can control the virtual character to end the probe behavior through the touch behavior termination control, in this case, if the player only ends the first sliding operation, the virtual character is controlled to continue the probe according to the real-time probe parameters corresponding to the end touch position of the first sliding operation, specifically, the probe behavior of the virtual character in the game is terminated in response to the fourth touch operation applied by the player to the behavior termination control, and meanwhile, in order to ensure that the display picture seen by the player is consistent with the picture observed by the virtual character observation sight in the game, the content displayed in the graphical user interface is restored to the picture of the game scene before the virtual character probe when the probe behavior of the virtual character is terminated.
In the scheme provided by the application, the probe behavior of the virtual character is terminated in response to the fourth touch operation aiming at the behavior termination control, specifically, when a player presses the behavior termination control, an instruction for terminating the probe behavior of the virtual character can be issued, wherein a user can issue a probe instruction through the behavior termination control and/or a preset combination key, specifically, the player can touch the behavior termination control through fingers, a mouse and the like, or through a preset combination key in a keyboard, for example, a ctrl key, an alt key, an a key and the like in the keyboard, and the preset key can be set manually according to the requirements of the player.
In the above manner, the player can realize adjustment of the probe parameters of the virtual character by functionally multiplexing the probe control, and although the manner can maximally avoid shielding of the game interface of the player by the virtual control, the situation of misoperation of the player is easy to occur due to more touch modes of the same control, so that in order to avoid the situation of misoperation of the player, a specially set first parameter adjustment control for adjusting the probe parameters can be provided for the player, so that the player can realize adjustment of the probe parameters of the virtual character.
In another embodiment, a first parameter adjustment control is displayed in the graphical user interface, and the control method further comprises determining a second probe parameter for the virtual character in response to a fifth touch operation directed to the first parameter adjustment control.
In the step, a first parameter adjustment control is displayed in a graphical user interface of a player, and a second probe parameter of a probe in a game scene of a virtual character adjusted by the player through touch of the first parameter adjustment control is determined in response to a fifth touch operation applied by the player to the first parameter adjustment control.
And controlling the probe in the direction indicated by the second probe parameter by the virtual character, and adjusting the picture of the game scene displayed in the graphical user interface according to the second probe parameter and the target direction at the same time so as to ensure that the display picture seen by the player is consistent with the picture observed by the virtual character in the game by observing the sight.
In another embodiment, referring to fig. 3, fig. 3 is a flow chart of another control method according to an embodiment of the present application. Step S103 includes, as shown in fig. 3, step S1031, entering a probe mode in response to a second touch operation for the probe control, controlling the virtual character to perform a probe, adjusting a picture of a game scene displayed in the graphical user interface according to the target direction, and displaying a second parameter adjustment control in the graphical user interface.
In the step, responding to the second touch operation of the player aiming at the probe control, controlling the virtual character to enter a probe mode, at the moment, controlling the virtual character to probe towards the target direction of the dangerous event, and simultaneously, adjusting the picture of the game scene displayed in the graphical user interface according to the target direction so that the game picture displayed in the graphical user interface can be consistent with the picture observed by the observation sight of the virtual character in the game.
Meanwhile, a second parameter adjustment control for adjusting the probe parameters of the virtual character can be displayed in the probe mode, so that the player can conveniently adjust the probe distance and the probe direction of the virtual character in the probe mode.
The second parameter adjustment control comprises a distance adjustment control used for adjusting the probe distance of the virtual character in the probe direction and a functional control used for adjusting the probe direction of the virtual character, wherein the functional control is subjected to functional multiplexing in the probe mode in practice, so that the functional control originally used for controlling the movement of the virtual character in the game scene is multiplexed in the probe direction of the adjustment virtual character.
Step S1032, determining a third probe parameter of the virtual character in response to a sixth touch operation for the second parameter adjustment control, and adjusting a screen of the game scene displayed in the graphical user interface according to the third probe parameter.
In the step, a third probe parameter of the probe of the virtual character in the game scene, which is adjusted by the player through the touch control of the second parameter adjustment control, is determined in response to a sixth touch operation applied by the player aiming at the second parameter adjustment control.
And controlling the probe in the direction indicated by the third probe parameter by the virtual character, and adjusting the picture of the game scene displayed in the graphical user interface according to the third probe parameter and the target direction at the same time so as to ensure that the display picture seen by the player is consistent with the picture observed by the virtual character in the game by observing the sight.
Wherein the probe parameters include probe distance, and/or probe direction.
Here, in order to avoid the situation that the player performs misoperation, different controls for adjusting the probe parameters can be set for the player respectively, for example, a distance adjustment control for adjusting the probe distance of the virtual character in the probe direction and a functional control for adjusting the probe distance of the virtual character in the probe direction, so that the player can use different controls to adjust different probe parameters, and the situation that the player performs misoperation in a complicated touch mode is avoided.
Here, the player can realize adjustment of different parameters through different controls, so that the player can choose to adjust the probe direction and the probe distance of the virtual character simultaneously, and can also choose to adjust the probe direction or the probe distance of the virtual character only.
In one embodiment, the determining the third probe parameter of the virtual character in response to the sixth touch operation of the second parameter adjustment control includes determining a second probe distance of the virtual character in response to the seventh touch operation of the distance adjustment control in the probe mode, and/or adjusting the target direction in response to the eighth touch operation of the function control in the probe mode, and determining the third probe parameter of the virtual character according to the second probe distance and/or the adjusted target direction.
In the method, in a probe mode, a second probe distance of the virtual character of the player in the direction of the probe in the game scene after being adjusted by the touch distance adjusting control is determined in response to a seventh touch operation of the player on the distance adjusting control, and/or in the probe mode, a target direction of the player after being adjusted by the functional control is determined in response to an eighth touch operation of the player on the functional control.
Further, a third probe parameter of the virtual character may be determined based on the determined second probe distance and/or the adjusted target direction.
In one embodiment, one end of the distance adjustment control is close to the probe control, the other end of the distance adjustment control is close to the functional control, the seventh touch operation is a fourth sliding operation, the response is directed to a sixth touch operation of the second parameter adjustment control, and determining the third probe parameter of the virtual character comprises determining a real-time sliding position of the second sliding operation in response to the second sliding operation of the distance adjustment control, and determining the third probe parameter of the virtual character in response to a real-time distance between the real-time sliding position and the functional control or the probe control.
In order to facilitate the control of the virtual character by the player, when the probe control, the distance adjustment control and the function control are set, one end of the distance adjustment control can be close to the probe control, and the other end of the distance adjustment control can be close to the function control, wherein the end of the distance adjustment control close to the probe control can be connected with the probe control or can be a certain distance between one end of the distance adjustment control and the probe control, and the other end of the distance adjustment control close to the function control can be a certain distance between the other end of the distance adjustment control and the function control.
In the method, the adjustment of the virtual character probe parameters can be achieved through sliding operation on the distance adjustment control, specifically, the real-time sliding position of the second sliding operation is determined in response to the second sliding operation applied by the player aiming at the distance adjustment control, and the third probe parameters of the virtual character in the game scene after the adjustment of the player through the touch distance adjustment control are determined according to the real-time sliding position of the second sliding operation and the real-time distance between the functional control or the probe control.
In order to enable the player to terminate the probe behavior of the virtual character in time, it may be determined whether to terminate the probe behavior of the virtual character according to a real-time distance between a real-time slide position of the second slide operation and the function control.
In one embodiment, the control method further comprises terminating probe behavior of the virtual character in response to the real-time sliding position and the real-time distance between the function controls being less than a preset distance, and restoring display content in the graphical user interface to a screen of a game scene in front of the virtual character probe.
In the step, when the player applies the second sliding operation to the distance adjusting control and the real-time distance between the real-time sliding position of the second sliding operation and the functional control is smaller than the preset distance, the probe action of the virtual character in the game scene is stopped, and meanwhile, in order to ensure that the display picture seen by the player is consistent with the picture observed by the virtual character in the game for observing the sight, the probe action of the virtual character is stopped, and meanwhile, the content displayed in the graphical user interface is restored to the picture of the game scene before the virtual character probe.
For example, referring to fig. 4, fig. 4 is a second graphical user interface according to an embodiment of the present application. As shown in fig. 4, a probe control 4b capable of pointing to a target direction of a dangerous event is displayed in the graphical user interface 4a, a player touches the probe control 4b and enters a probe mode, at this time, a functional control 4c originally used for controlling the movement of the virtual character 4f in the game scene is displayed in the probe mode, a distance adjustment control 4d is displayed, one end 4d-1 of the distance adjustment control 4d is connected to the probe control 4b, the other end 4d-2 of the distance adjustment control 4d is connected to the functional control 4c, and when a real-time sliding position 4e of a player for a second sliding operation of the distance adjustment control is close to the functional control 4c, that is, a real-time distance between the real-time sliding position 4e and the functional control 4c is smaller than a preset distance, the probe behavior of the virtual character 4f is terminated.
The control method comprises the steps of responding to a first touch operation aiming at a functional control, controlling the virtual role to move in the game scene, responding to dangerous events occurring around the virtual role in the state that the observation sight of the virtual role is blocked by the barrier, displaying a probe used for pointing to the target direction of the dangerous events in the graphical user interface according to the relative direction between the virtual role and the dangerous events, responding to a second touch operation aiming at the probe control, controlling the virtual role to conduct a probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the target direction. Therefore, the player can control the virtual character to the dangerous direction probe through the probe control, and the adjustment of the probe direction of the player in the probe process of the virtual character can be reduced, so that the interaction process between the player and the terminal equipment can be reduced, and the response frequency of the terminal equipment can be reduced.
Referring to fig. 5 and 6, fig. 5 is a schematic structural diagram of a control device according to an embodiment of the present application, and fig. 6 is a schematic structural diagram of a control device according to an embodiment of the present application. In the graphical user interface, there are displayed a part or all of the game scene, a barrier capable of blocking the view of the virtual character, and a function control, as shown in fig. 5, the control device 500 includes:
The moving module 501 is configured to control the virtual character to move in a game scene in response to a first touch operation for the functional control;
the control display module 502 is configured to, in a state where the view line of the virtual character is blocked by the barrier, respond to a dangerous event occurring around the virtual character, and display, in the graphical user interface, a probe control for pointing to a target direction in which the dangerous event is located according to a relative direction between the virtual character and the dangerous event;
And the picture adjusting module 503 is configured to control the virtual character to perform a probe in response to a second touch operation for the probe control, and adjust a picture of the game scene displayed in the graphical user interface according to the target direction.
Further, as shown in fig. 6, the control device 500 further includes a first parameter adjustment module 504, where the first parameter adjustment module 504 is configured to:
Determining a first probe parameter of the virtual character in response to a third touch operation aiming at the probe control, wherein the probe parameter comprises a probe distance and/or a probe direction;
The screen adjustment module 503 is configured to, when configured to respond to a second touch operation for the probe control, control the virtual character to perform a probe, and adjust a screen of a game scene displayed in the graphical user interface according to the target direction, the screen adjustment module 503 is configured to:
and responding to a second touch operation aiming at the probe control, controlling the virtual character to perform probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the first probe parameter and the target direction.
Further, as shown in fig. 6, the second touch operation includes a first sliding operation, and the screen adjustment module 503 is configured to, when configured to respond to the second touch operation for the probe control, control the virtual character to perform the probe, and adjust the screen of the game scene displayed in the graphical user interface according to the target direction, the screen adjustment module 503 is configured to:
responding to the start of a first sliding operation of the probe control, controlling the virtual character to perform a probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the target direction;
The control device 500 further comprises a second parameter adjustment module 505, the second parameter adjustment module 505 being configured to:
determining real-time probe parameters of the virtual character according to the real-time touch position of the first sliding operation in the sliding process of the first sliding operation, wherein the real-time probe parameters comprise a real-time probe distance and/or a real-time probe direction;
And adjusting the picture of the game scene displayed in the graphical user interface in real time according to the real-time probe parameters.
Further, as shown in fig. 6, the control apparatus 500 further includes a first behavior termination module 506, where the first behavior termination module 506 is configured to:
terminating probe behavior of the virtual character in response to the end of the first sliding operation, restoring display content in the graphical user interface to a view of a game scene preceding the virtual character probe, or,
And responding to a fourth touch operation aiming at a behavior termination control, terminating the probe behavior of the virtual character, and restoring the display content in the graphical user interface to the picture of the game scene before the virtual character probe.
Further, as shown in FIG. 6, the graphical user interface displays a first parameter adjustment control, and the control device 500 further includes a third parameter adjustment module 507, where the third parameter adjustment module 507 is configured to:
determining a second probe parameter of the virtual character in response to a fifth touch operation of the first parameter adjustment control, wherein the probe parameter comprises a probe distance and/or a probe direction;
The screen adjustment module 503 is configured to, when configured to respond to a second touch operation for the probe control, control the virtual character to perform a probe, and adjust a screen of a game scene displayed in the graphical user interface according to the target direction, the screen adjustment module 503 is configured to:
And responding to a second touch operation aiming at the probe control, controlling the virtual character to probe according to the second probe parameter, and adjusting the picture of the game scene displayed in the graphical user interface according to the second probe parameter and the target direction.
Further, when the screen adjustment module 503 is configured to control the virtual character to perform a probe in response to a second touch operation for the probe control, and adjust a screen of a game scene displayed in the gui according to the target direction, the screen adjustment module 503 is configured to:
Responding to a second touch operation aiming at the probe control, entering a probe mode, controlling the virtual character to perform probe, adjusting the picture of the game scene displayed in the graphical user interface according to the target direction, and displaying a second parameter adjustment control in the graphical user interface, wherein the second parameter adjustment control comprises a distance adjustment control and a functional control;
And responding to a sixth touch operation aiming at the second parameter adjustment control, determining a third probe parameter of the virtual character, and adjusting a picture of a game scene displayed in the graphical user interface according to the third probe parameter, wherein the probe parameter comprises a probe distance and/or a probe direction.
Further, when the screen adjustment module 503 is configured to determine the third probe parameter of the virtual character in response to the sixth touch operation for the second parameter adjustment control, the screen adjustment module 503 is configured to:
Determining a second probe distance of the virtual character in response to a seventh touch operation for the distance adjustment control in the probe mode, and/or adjusting the target direction in response to an eighth touch operation for the functional control in the probe mode;
And determining a third probe parameter of the virtual character according to the second probe distance and/or the adjusted target direction.
Further, one end of the distance adjustment control is close to the probe control, the other end of the distance adjustment control is close to the functional control, the seventh touch operation is a fourth sliding operation, and when the screen adjustment module 503 is configured to respond to a sixth touch operation for the second parameter adjustment control, the screen adjustment module 503 is configured to:
Determining a real-time sliding position of a second sliding operation for the distance adjustment control in response to the second sliding operation;
and determining a third probe parameter of the virtual character in response to the real-time distance between the real-time sliding position and the functional control or the probe control.
Further, as shown in fig. 6, the control apparatus 500 includes a second behavior termination module 508, where the second behavior termination module 508 is configured to:
and stopping the probe action of the virtual character and restoring the display content in the graphical user interface to the picture of the game scene before the virtual character probe in response to the real-time sliding position and the real-time distance between the functional controls being smaller than the preset distance.
Further, the dangerous event includes at least one of:
a combat event exists within a preset range around the virtual character, and/or,
An hostile virtual character is within the attack scope of the virtual character.
The control device provided by the embodiment of the application has the advantages that a part or all of game scenes, a blocking object capable of blocking the observation sight of the virtual character and a functional control are displayed in a graphical user interface, the control method comprises the steps of responding to a first touch operation aiming at the functional control, controlling the virtual character to move in the game scenes, responding to dangerous events occurring around the virtual character when the observation sight of the virtual character is blocked by the blocking object, displaying a probe used for pointing to the target direction of the dangerous events in the graphical user interface according to the relative direction between the virtual character and the dangerous events, responding to a second touch operation aiming at the probe control, controlling the virtual character to perform probe, and adjusting the picture of the game scenes displayed in the graphical user interface according to the target direction. Therefore, the player can control the virtual character to the dangerous direction probe through the probe control, and the adjustment of the probe direction of the player in the probe process of the virtual character can be reduced, so that the interaction process between the player and the terminal equipment can be reduced, and the response frequency of the terminal equipment can be reduced.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the application. As shown in fig. 7, the electronic device 700 includes a processor 710, a storage medium 720 and a bus 730, the storage medium 720 storing machine-readable instructions executable by the processor 710, the processor 710 and the storage medium 720 communicating through the bus 730 when the electronic device runs a control method as in the embodiment, the processor 710 executing the machine-readable instructions, a preamble of the processor 710 method item to perform the steps of:
Responding to a first touch operation aiming at the functional control, and controlling the virtual character to move in a game scene;
in a state that the observation sight of the virtual character is blocked by the barrier, responding to a dangerous event occurring around the virtual character, and displaying a probe control used for pointing to the target direction of the dangerous event in the graphical user interface according to the relative direction between the virtual character and the dangerous event;
and responding to a second touch operation for the probe control, controlling the virtual character to perform a probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the target direction.
In one possible embodiment, the processor 710 further performs:
Determining a first probe parameter of the virtual character in response to a third touch operation aiming at the probe control, wherein the probe parameter comprises a probe distance and/or a probe direction;
The processor 710, when configured to perform the second touch operation of the response to the probe control, controls the virtual character to perform the probe, and adjusts the screen of the game scene displayed in the graphical user interface according to the target direction, is specifically configured to:
and responding to a second touch operation aiming at the probe control, controlling the virtual character to perform probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the first probe parameter and the target direction.
In a possible implementation, the processor 710 is specifically configured to, when the second touch operation performed by the processor is performed by the second touch operation performed by the processor, control the virtual character to perform the probe in response to the second touch operation of the probe control, and adjust the screen of the game scene displayed in the graphical user interface according to the target direction:
responding to the start of a first sliding operation of the probe control, controlling the virtual character to perform a probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the target direction;
the processor 710 also performs:
determining real-time probe parameters of the virtual character according to the real-time touch position of the first sliding operation in the sliding process of the first sliding operation, wherein the real-time probe parameters comprise a real-time probe distance and/or a real-time probe direction;
And adjusting the picture of the game scene displayed in the graphical user interface in real time according to the real-time probe parameters.
In one possible embodiment, the processor 710 further performs:
terminating probe behavior of the virtual character in response to the end of the first sliding operation, restoring display content in the graphical user interface to a view of a game scene preceding the virtual character probe, or,
And responding to a fourth touch operation aiming at a behavior termination control, terminating the probe behavior of the virtual character, and restoring the display content in the graphical user interface to the picture of the game scene before the virtual character probe.
In one possible embodiment, the processor 710 further performs:
determining a second probe parameter of the virtual character in response to a fifth touch operation of the first parameter adjustment control, wherein the probe parameter comprises a probe distance and/or a probe direction;
The processor 710, when configured to perform the second touch operation of the response to the probe control, controls the virtual character to perform the probe, and adjusts the screen of the game scene displayed in the graphical user interface according to the target direction, is specifically configured to:
And responding to a second touch operation aiming at the probe control, controlling the virtual character to probe according to the second probe parameter, and adjusting the picture of the game scene displayed in the graphical user interface according to the second probe parameter and the target direction.
In a possible implementation, the processor 710 is specifically configured to, when configured to perform the responding to the second touch operation of the probe control, control the virtual character to perform the probe, and adjust the screen of the game scene displayed in the graphical user interface according to the target direction:
Responding to a second touch operation aiming at the probe control, entering a probe mode, controlling the virtual character to perform probe, adjusting the picture of the game scene displayed in the graphical user interface according to the target direction, and displaying a second parameter adjustment control in the graphical user interface, wherein the second parameter adjustment control comprises a distance adjustment control and a functional control;
And responding to a sixth touch operation aiming at the second parameter adjustment control, determining a third probe parameter of the virtual character, and adjusting a picture of a game scene displayed in the graphical user interface according to the third probe parameter, wherein the probe parameter comprises a probe distance and/or a probe direction.
In a possible embodiment, the processor 710 is specifically configured to, when configured to perform the sixth touch operation of the response to the second parameter adjustment control, determine a third probe parameter of the virtual character:
Determining a second probe distance of the virtual character in response to a seventh touch operation for the distance adjustment control in the probe mode, and/or adjusting the target direction in response to an eighth touch operation for the functional control in the probe mode;
And determining a third probe parameter of the virtual character according to the second probe distance and/or the adjusted target direction.
In a possible embodiment, the processor 710 is specifically configured to, when configured to perform the sixth touch operation of the response to the second parameter adjustment control, determine a third probe parameter of the virtual character:
Determining a real-time sliding position of a second sliding operation for the distance adjustment control in response to the second sliding operation;
and determining a third probe parameter of the virtual character in response to the real-time distance between the real-time sliding position and the functional control or the probe control.
In one possible embodiment, the processor 710 further performs:
and stopping the probe action of the virtual character and restoring the display content in the graphical user interface to the picture of the game scene before the virtual character probe in response to the real-time sliding position and the real-time distance between the functional controls being smaller than the preset distance.
In one possible embodiment, the dangerous event includes at least one of:
a combat event exists within a preset range around the virtual character, and/or,
An hostile virtual character is within the attack scope of the virtual character.
According to the method, if the virtual character controlled by the player is in the condition that the observation sight is blocked, a probe control capable of controlling the virtual character to the probe in the direction of the dangerous event can be provided for the player according to the relative direction between the virtual character and the dangerous event, the player can control the probe in the direction of the dangerous event through the touch probe control, meanwhile, the probe habit and the observation preference difference of different players are considered, in order to avoid the situation that the player temporarily adjusts the probe distance and the probe direction in the process of controlling the virtual character probe, the operation difficulty of the player is increased, the possibility of adjusting the probe parameters of the virtual character can be provided for the player before the player controls the virtual character to perform the probe, further, the number of virtual controls displayed in the graphical user interface can be reduced through multiplexing of the probe control, the situation that the number of virtual controls displayed in the graphical user interface is too large, the situation that the position of the game screen is changed is avoided is considered, and in order to enable the player to monitor the dangerous event more comprehensively, after the player controls the probe, the probe parameters of the virtual character can be adjusted through the probe control, the probe control can be still adapted to the situation that the number of virtual events in the graphical user interface is not increased.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor when the computer program is executed by the processor, and the processor executes the following steps:
Responding to a first touch operation aiming at the functional control, and controlling the virtual character to move in a game scene;
in a state that the observation sight of the virtual character is blocked by the barrier, responding to a dangerous event occurring around the virtual character, and displaying a probe control used for pointing to the target direction of the dangerous event in the graphical user interface according to the relative direction between the virtual character and the dangerous event;
and responding to a second touch operation for the probe control, controlling the virtual character to perform a probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the target direction.
In one possible embodiment, the processor further performs:
Determining a first probe parameter of the virtual character in response to a third touch operation aiming at the probe control, wherein the probe parameter comprises a probe distance and/or a probe direction;
The processor is used for controlling the virtual character to perform a probe when executing the second touch operation of the response to the probe control, and adjusting the picture of the game scene displayed in the graphical user interface according to the target direction, and is specifically used for:
and responding to a second touch operation aiming at the probe control, controlling the virtual character to perform probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the first probe parameter and the target direction.
In one possible implementation, the processor is configured to, when the second touch operation is performed, control the virtual character to perform the probe in response to the second touch operation of the probe control, and adjust a screen of a game scene displayed in the graphical user interface according to the target direction, specifically:
responding to the start of a first sliding operation of the probe control, controlling the virtual character to perform a probe, and adjusting the picture of the game scene displayed in the graphical user interface according to the target direction;
The processor also performs:
determining real-time probe parameters of the virtual character according to the real-time touch position of the first sliding operation in the sliding process of the first sliding operation, wherein the real-time probe parameters comprise a real-time probe distance and/or a real-time probe direction;
And adjusting the picture of the game scene displayed in the graphical user interface in real time according to the real-time probe parameters.
In one possible embodiment, the processor further performs:
terminating probe behavior of the virtual character in response to the end of the first sliding operation, restoring display content in the graphical user interface to a view of a game scene preceding the virtual character probe, or,
And responding to a fourth touch operation aiming at a behavior termination control, terminating the probe behavior of the virtual character, and restoring the display content in the graphical user interface to the picture of the game scene before the virtual character probe.
In one possible embodiment, the processor further performs:
determining a second probe parameter of the virtual character in response to a fifth touch operation of the first parameter adjustment control, wherein the probe parameter comprises a probe distance and/or a probe direction;
The processor is used for controlling the virtual character to perform a probe when executing the second touch operation of the response to the probe control, and adjusting the picture of the game scene displayed in the graphical user interface according to the target direction, and is specifically used for:
And responding to a second touch operation aiming at the probe control, controlling the virtual character to probe according to the second probe parameter, and adjusting the picture of the game scene displayed in the graphical user interface according to the second probe parameter and the target direction.
In a possible implementation, the processor, when configured to perform the second touch operation of the response to the probe control, controls the virtual character to perform the probe, and adjusts the screen of the game scene displayed in the graphical user interface according to the target direction, is specifically configured to:
Responding to a second touch operation aiming at the probe control, entering a probe mode, controlling the virtual character to perform probe, adjusting the picture of the game scene displayed in the graphical user interface according to the target direction, and displaying a second parameter adjustment control in the graphical user interface, wherein the second parameter adjustment control comprises a distance adjustment control and a functional control;
And responding to a sixth touch operation aiming at the second parameter adjustment control, determining a third probe parameter of the virtual character, and adjusting a picture of a game scene displayed in the graphical user interface according to the third probe parameter, wherein the probe parameter comprises a probe distance and/or a probe direction.
In a possible embodiment, the processor, when configured to perform the sixth touch operation of the response to the second parameter adjustment control, is specifically configured to:
Determining a second probe distance of the virtual character in response to a seventh touch operation for the distance adjustment control in the probe mode, and/or adjusting the target direction in response to an eighth touch operation for the functional control in the probe mode;
And determining a third probe parameter of the virtual character according to the second probe distance and/or the adjusted target direction.
In a possible embodiment, the processor, when configured to perform the sixth touch operation of the response to the second parameter adjustment control, is specifically configured to:
Determining a real-time sliding position of a second sliding operation for the distance adjustment control in response to the second sliding operation;
and determining a third probe parameter of the virtual character in response to the real-time distance between the real-time sliding position and the functional control or the probe control.
In one possible embodiment, the process further performs:
and stopping the probe action of the virtual character and restoring the display content in the graphical user interface to the picture of the game scene before the virtual character probe in response to the real-time sliding position and the real-time distance between the functional controls being smaller than the preset distance.
In one possible embodiment, the dangerous event includes at least one of:
a combat event exists within a preset range around the virtual character, and/or,
An hostile virtual character is within the attack scope of the virtual character.
According to the method, if the virtual character controlled by the player is in the condition that the observation sight is blocked, a probe control capable of controlling the virtual character to the probe in the direction of the dangerous event can be provided for the player according to the relative direction between the virtual character and the dangerous event, the player can control the probe in the direction of the dangerous event through the touch probe control, meanwhile, the probe habit and the observation preference difference of different players are considered, in order to avoid the situation that the player temporarily adjusts the probe distance and the probe direction in the process of controlling the virtual character probe, the operation difficulty of the player is increased, the possibility of adjusting the probe parameters of the virtual character can be provided for the player before the player controls the virtual character to perform the probe, further, the number of virtual controls displayed in the graphical user interface can be reduced through multiplexing of the probe control, the situation that the number of virtual controls displayed in the graphical user interface is too large, the situation that the position of the game screen is changed is avoided is considered, and in order to enable the player to monitor the dangerous event more comprehensively, after the player controls the probe, the probe parameters of the virtual character can be adjusted through the probe control, the probe control can be still adapted to the situation that the number of virtual events in the graphical user interface is not increased.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
It should be noted that the foregoing embodiments are merely illustrative embodiments of the present application, and not restrictive, and the scope of the application is not limited to the embodiments, and although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that any modification, variation or substitution of some of the technical features of the embodiments described in the foregoing embodiments may be easily contemplated within the scope of the present application, and the spirit and scope of the technical solutions of the embodiments do not depart from the spirit and scope of the embodiments of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.