Method, device, medium and equipment for controlling virtual characters
By setting limit controls on the graphical user interface of the shooting game, the operation difficulty problem of players operating virtual characters when shooting at both ends of virtual cover is solved, and the shooting efficiency and combat experience are improved.
Patent Information
- Application Number
- CN202210880643.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-25
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2042-07-25
AI Technical Summary
In shooting games, when players operate virtual characters to shoot probes at both ends of virtual bunkers, it is easy for virtual characters to leave the bunker or be unable to reach the bunker endpoint due to operational accuracy issues, which affects the combat experience.
By setting limit controls on the graphical user interface, players can only control the virtual character to move within a designated area in the target direction of the virtual bunker, preventing the virtual character from leaving the bunker.
It reduces the difficulty of players in conducting probe shooting on both left and right ends of the virtual bunker, improves the efficiency of virtual characters in conducting probe shooting on both ends of the bunker, and improves the combat experience.
Smart Images

Figure CN115155055B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic communication technology, and in particular to the field of virtual character control technology, and in particular to a method, device, medium and equipment for controlling a virtual character. Background Art
[0002] Taking cover shooting games as an example, the virtual characters controlled by the players need to interact with the virtual cover frequently and in various ways, which is also the core part of the entire game combat experience. Among them, the most common cover combat method is for the virtual characters controlled by the players to move to the left or right end of the virtual cover to poke out and shoot.
[0003] In most games currently on the market, if the virtual character controlled by the player user is in a crouching state behind a virtual cover, the virtual character can be moved left or right relative to the virtual cover by sliding the joystick left or right. However, the actual situation is that due to operational accuracy problems, the player often slides the joystick too far, resulting in the player leaving the virtual cover, or the sliding distance is insufficient, resulting in the player being unable to reach the leftmost or rightmost end of the virtual cover, making it impossible to conduct effective peeking shots, and the virtual character controlled by the player user may be exposed to its safe position or even be killed by the enemy player.
[0004] Due to the above settings of the game scenes, the operation requirements for player users in scenes similar to shooting games are relatively high. In order to avoid the virtual character leaving the virtual cover and exposing his position, the player user needs to judge the best probing shooting positions at both ends of the virtual cover in advance, and strictly control the movement of the virtual character through careful operations, which greatly reduces the efficiency of the virtual character's probing shooting at both ends of the virtual cover, affects the combat experience, and is even more unfriendly to novice players. Summary of the invention
[0005] The embodiments of the present application provide a method, apparatus, medium and device for controlling a virtual character. A limit control is set on a graphical user interface so that when the virtual character control is moved to the limit control, the player user is limited to being able to control the virtual character to move to a specified area of the virtual cover in the target direction, that is, the limit position of the virtual character that can be moved relative to the virtual cover is limited, thereby preventing the player user from accidentally leaving the virtual cover and exposing his position during the process of controlling the movement of the virtual character due to the player user's poor operation of the virtual joystick, thereby reducing the difficulty of the player user to peek and shoot at the left and right ends of the virtual cover, and thereby improving the efficiency of the player user in controlling the virtual character to peek and shoot at both ends of the virtual cover.
[0006] One aspect of the embodiments of the present application provides a method for controlling a virtual character. A graphical user interface is provided through a terminal device. The graphical user interface at least includes a partial game scene and a virtual joystick. In the game scene, there are virtual shelters and a virtual character controlled by the terminal device. The method includes:
[0007] When the virtual character squats behind the virtual shelter, in response to a first movement operation on the virtual joystick, control the virtual character to move relative to the virtual shelter in a squatting state based on the target direction indicated by the first movement operation;
[0008] Display a limit control corresponding to the target direction in the associated area of the virtual joystick;
[0009] In response to a touch operation on the limit control, control the virtual character to move in the target direction to a specified area of the virtual shelter.
[0010] In the method for controlling a virtual character according to the embodiments of the present application, the method further includes:
[0011] When the virtual character reaches the specified area, lock the virtual joystick to make the virtual joystick enter an inoperable state.
[0012] In the method for controlling a virtual character according to the embodiments of the present application, before displaying the limit control corresponding to the target direction in the associated area of the virtual joystick, the method further includes:
[0013] Determine that the distance that the touch point of the movement operation on the terminal device moves in the target direction reaches a preset length, or,
[0014] Determine that the duration that the touch point of the movement operation on the terminal device moves in the target direction reaches a preset duration.
[0015] In the method for controlling a virtual character according to the embodiments of the present application, the touch operation on the limit control includes: a second movement operation of dragging the virtual joystick to the limit control.
[0016] In the method for controlling a virtual character according to the embodiments of the present application, the second movement operation and the first movement operation are continuous operations.
[0017] In the method for controlling a virtual character according to the embodiments of the present application, the step of, in response to a touch operation on the limit control, controlling the virtual character to move in the target direction to a specified area of the virtual shelter includes:
[0018] In response to a second movement operation of dragging the virtual joystick to the limit control, if the virtual joystick moves in the target direction until there is an intersection between the virtual joystick and the target hot zone corresponding to the limit control, then control the virtual character to move in the target direction to a specified area of the virtual bunker.
[0019] In the method for controlling a virtual character according to an embodiment of the present application, the step of, if the virtual joystick moves in the target direction until there is an intersection between the virtual joystick and the target hot zone corresponding to the limit control, then controlling the virtual character to move in the target direction to a specified area of the virtual bunker, includes:
[0020] If there is an inclusion relationship between the virtual joystick and the target hot zone corresponding to the limit control, then control the virtual character to move in the target direction to a specified area of the virtual bunker.
[0021] In the method for controlling a virtual character according to an embodiment of the present application, the method further includes:
[0022] If there is an intersection relationship between the virtual joystick and the target hot zone corresponding to the limit control, then in response to a third movement operation on the virtual joystick, control the virtual character to move in the game scene.
[0023] In the method for controlling a virtual character according to an embodiment of the present application, the method further includes:
[0024] When the virtual joystick is in an inoperable state, in response to a touch operation on the virtual joystick, unlock the virtual joystick.
[0025] In the method for controlling a virtual character according to an embodiment of the present application, the method further includes:
[0026] Record the display duration when there is no intersection between the target hot zone and the virtual joystick;
[0027] Determine whether the display duration exceeds a third preset threshold. If it exceeds the third preset threshold, then control the limit control to be hidden on the graphical user interface.
[0028] In the method for controlling a virtual character according to an embodiment of the present application, after controlling the virtual character to move in the target direction to a specified area of the virtual bunker, the method further includes:
[0029] In response to a touch operation on the shooting control on the graphical user interface, control the virtual character to switch from a crouching posture to a peeking posture in the specified area to perform a aiming and shooting operation.
[0030] In the method for controlling a virtual character according to an embodiment of the present application, the method further includes:
[0031] If the position between the virtual character and the virtual bunker does not meet the preset condition, control the virtual character to switch from a crouched posture to a standing posture and leave the virtual bunker.
[0032] In the method for controlling a virtual character according to an embodiment of the present application, the method further includes:
[0033] Display a preset identifier on the limit control to prompt the user of the position and posture of the virtual character in the virtual bunker after the limit control is triggered.
[0034] In the method for controlling a virtual character according to an embodiment of the present application, the controlling the virtual character to move in the target direction to a specified area of the virtual bunker includes:
[0035] Obtain the position coordinates of two end points of the virtual bunker in the length direction and the current position coordinates of the virtual character;
[0036] Based on the target direction indicated by the movement operation, select the target end point position coordinates corresponding to the target direction from the two end point position coordinates;
[0037] Calculate the difference between the target end point position coordinates and the current position coordinates to obtain the movement length of the virtual character from the current position to the specified area;
[0038] Control the virtual character to move in the target direction by the movement length to the specified area of the virtual bunker.
[0039] Correspondingly, another aspect of the embodiment of the present application further provides a virtual character control device. A graphical user interface is provided through a terminal device. The graphical user interface at least includes a partial game scene and a virtual joystick. The game scene includes a virtual bunker and a virtual character controlled by the terminal device. The device includes:
[0040] A response module, configured to, when the virtual character is crouched behind the virtual bunker, in response to a first movement operation on the virtual joystick, control the virtual character to move relative to the virtual bunker in a crouched state based on the target direction indicated by the first movement operation;
[0041] A display module, configured to display a limit control corresponding to the target direction in an associated area of the virtual joystick;
[0042] A control module, configured to, in response to a touch operation on the limit control, control the virtual character to move in the target direction to a specified area of the virtual bunker.
[0043] Correspondingly, on the other hand, an embodiment of the present application further provides a computer-readable storage medium storing multiple instructions adapted to be loaded by a processor to execute the method for controlling a virtual character as described above.
[0044] Correspondingly, on the other hand, an embodiment of the present application further provides a terminal device including a processor and a memory, where the memory stores multiple instructions, and the processor loads the instructions to execute the method for controlling a virtual character as described above.
[0045] An embodiment of the present application provides a method, device, medium, and equipment for controlling a virtual character. When the virtual character squats behind the virtual bunker, in response to a first movement operation on the virtual joystick, the method controls the virtual character to move relative to the virtual bunker in a squatting state based on the target direction indicated by the first movement operation; displays a limit control corresponding to the target direction in an associated area of the virtual joystick; and in response to a touch operation on the limit control, controls the virtual character to move in the target direction to a specified area of the virtual bunker. By setting a limit control on the graphical user interface, when the virtual character control moves to the limit control, the player user is limited to only being able to control the virtual character to move to the specified area of the virtual bunker in the target direction, that is, the limit position where the virtual character can move relative to the virtual bunker is defined, avoiding the situation where the player user has a low degree of operation on the virtual joystick and accidentally exposes their position by moving away from the virtual bunker during the process of controlling the movement of the virtual character, thereby reducing the operation difficulty of the player user for peeking and shooting at both ends of the virtual bunker, and improving the efficiency of the player user in controlling the virtual character to peek and shoot at both ends of the virtual bunker. Description of the Drawings
[0046] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application, and those skilled in the art can obtain other drawings without creative efforts based on these drawings.
[0047] Figure 1 It is a schematic flowchart of the method for controlling a virtual character provided by an embodiment of the present application.
[0048] Figure 2 It is a schematic diagram of the graphical user interface of the method for controlling a virtual character provided by an embodiment of the present application.
[0049] Figure 3 It is another schematic diagram of the graphical user interface of the method for controlling a virtual character provided by an embodiment of the present application.
[0050] Figure 4 This is a schematic structural diagram of the virtual character control device provided by the embodiment of the present application.
[0051] Figure 5 This is another schematic structural diagram of the virtual character control device provided by the embodiment of the present application.
[0052] Figure 6 This is a schematic structural diagram of the terminal device provided by the embodiment of the present application. Detailed implementation manners
[0053] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present application.
[0054] The embodiment of the present application provides a method for controlling a virtual character. The method for controlling a virtual character can be applied to a terminal device. The terminal device can be a device such as a smart phone or a tablet computer.
[0055] Please refer to Figures 1-3 , Figure 1 This is a schematic flowchart of the method for controlling a virtual character provided by the embodiment of the present application. Figure 2 This is a schematic diagram of the graphical user interface of the method for controlling a virtual character provided by the embodiment of the present application. Figure 3 This is another schematic diagram of the graphical user interface of the method for controlling a virtual character provided by the embodiment of the present application. The method for controlling a virtual character is applied to a terminal device.
[0056] It should be noted that when the terminal device running the method for controlling a virtual character provided by this solution is started, it can provide a graphical user interface for the user. The graphical user interface at least includes part of the game scene, the target virtual character blocked by the virtual bunker in the game scene, and the virtual joystick. The target virtual character is the virtual character operated by the current player user. Taking a bunker shooting game as an example, the virtual character controlled by the player user needs to have frequent and diverse interaction methods with the virtual bunker, which is also the core part of the entire game battle experience. Among them, it is the most common bunker battle means that the virtual character controlled by the player user moves to the leftmost or rightmost end in the virtual bunker to peek and shoot.
[0057] In most current games, when the virtual character controlled by the player user is in a crouched state behind a virtual bunker, the virtual character can be controlled to move horizontally left or right relative to the virtual bunker by swiping the joystick left or right. However, in reality, due to operation accuracy issues, when the player swipes the joystick, the swiping distance is often too long, resulting in the virtual character moving away from the virtual bunker, or the swiping distance is insufficient, resulting in the virtual character being unable to reach the leftmost or rightmost end of the virtual bunker, unable to perform effective peeking shots, and may cause the virtual character controlled by the player user to expose its safe position and even be killed by enemy players.
[0058] Due to the above settings in the game scenario, the operation requirements for player users in scenarios similar to shooting games are relatively high. To avoid the virtual character moving away from the virtual bunker and exposing its position, the player user needs to pre-judge the best peeking shot positions at both ends of the virtual bunker and strictly control the movement of the virtual character through careful operation, which greatly reduces the efficiency of the virtual character performing peeking shots at both ends of the virtual bunker, affects the combat experience, and is even less friendly to novice players.
[0059] To solve the above technical problems, an embodiment of the present application provides a method for controlling a virtual character. By using the method for controlling a virtual character provided by the embodiment of the present application, by setting a limit control on the graphical user interface, when the virtual character control moves to the limit control, it is limited that the player user can only control the virtual character to move to a specified area in the target direction of the virtual bunker, that is, the limit position where the virtual character can move relative to the virtual bunker is limited, avoiding the situation that the player user's operation of the virtual joystick is not accurate enough and accidentally moving away from the virtual bunker and exposing the position during the process of controlling the movement of the virtual character, thereby reducing the operation difficulty of the player user performing peeking shots at both ends of the virtual bunker and improving the efficiency of the player user controlling the virtual character to perform peeking shots at both ends of the virtual bunker.
[0060] Specifically, the method includes the following steps:
[0061] Step 101, when the virtual character is crouched behind the virtual bunker, in response to a first movement operation on the virtual joystick, control the virtual character to move relative to the virtual bunker in a crouched state based on the target direction indicated by the first movement operation.
[0062] In some actual application scenarios, the above virtual joystick includes a joystick. Correspondingly, before displaying the limit control corresponding to the target direction in the associated area of the virtual joystick, it is determined that the distance that the touch point of the movement operation moves towards the target direction on the terminal device reaches a preset length, or it is determined that the duration for which the touch point of the movement operation moves towards the target direction on the terminal device reaches a preset duration. Exemplarily, the player user can hold the joystick and rotate it 45 - 90° to the left (specifically, it can be set according to the actual scenario), or hold the joystick and drag it 2 - 3 cm to the left (specifically, it can be set according to the actual scenario), so as to trigger the virtual character to translate along the left side of the virtual bunker in a crouching state in the graphical user interface.
[0063] In another actual application scenario, the movement operation further includes long - pressing the joystick towards the target direction for a preset duration. Exemplarily, the player user can hold the joystick and drag it to the left and stay for 1 - 2 s (specifically, it can be set according to the actual scenario), so as to trigger the virtual character to translate along the left side of the virtual bunker in a crouching state in the graphical user interface.
[0064] In another application scenario, when the position between the virtual character and the virtual bunker does not meet the preset conditions, the virtual character will switch from the crouching posture to the standing posture and leave the virtual bunker. Exemplarily, when the player user drags the joystick towards the target direction and offsets a second preset length relative to the starting position, it is possible to control the virtual character to move relative to the virtual bunker in the standing posture until it leaves the virtual bunker.
[0065] It should be noted that the second preset length is less than the first preset length to avoid accidentally triggering the limit control.
[0066] Step 102, display the limit control corresponding to the target direction in the associated area of the virtual joystick.
[0067] In this embodiment, the setting of the limit component can be such that when the virtual character control moves onto the limit control, the player user can only control the virtual character to move to the designated area of the virtual bunker in the target direction, that is, the limit position where the virtual character can move relative to the virtual bunker is defined, avoiding the situation where the player user's operation of the virtual joystick is not precise enough, resulting in accidentally leaving the virtual bunker and exposing the body position during the process of controlling the movement of the virtual character. In this way, the operation difficulty for the player user to perform peek - shooting at the left and right ends of the virtual bunker is reduced, and the efficiency of the player user to control the virtual character to perform peek - shooting at both ends of the virtual bunker is improved.
[0068] It should be noted that the display form of the limit control in this solution can either be displayed on the graphical user interface throughout, or be triggered to display under specific conditions. The key point of this solution is the latter method, that is, triggering the display of the limit control through specific conditions to avoid the graphical user interface being too cluttered and affecting the operation experience of game users.
[0069] Specifically, after the terminal device responds to the player user's movement operation on the virtual joystick, it first determines whether the first preset length by which the virtual joystick offsets in the target direction relative to the starting position exceeds a first preset threshold (e.g., 1 cm), or whether the preset duration of pressing the joystick in the target direction exceeds a second preset threshold (e.g., 1 s). When it is determined that the first preset length exceeds the first preset threshold or the preset duration exceeds the second preset threshold, a limit control is displayed at a position on the same side as the target direction of the virtual joystick on the graphical user interface.
[0070] In some embodiments, the method further includes: recording the display duration during which there is no intersection between the target hot zone and the joystick head; determining whether the display duration exceeds a third preset threshold, and if it exceeds the third preset threshold, hiding the limit control on the graphical user interface.
[0071] In this embodiment, by recording the display duration during which there is no intersection between the limit control and the control area of the virtual joystick, it is confirmed whether the limit control has not been triggered for a long time, and then it can be hidden on the graphical user interface to keep the graphical user interface simple.
[0072] To prompt the player user about the function corresponding to the limit control, a preset identifier, such as an icon of a crouching posture, can also be displayed on the limit control to prompt the position and posture of the virtual character in the virtual bunker after the limit control is triggered.
[0073] Step 103, in response to a touch operation on the limit control, control the virtual character to move in the target direction to a specified area of the virtual bunker.
[0074] It should be noted that the above first movement operation refers to the player user's conventional movement operation of controlling the virtual character in the game scene. Since different movement operations on the virtual joystick in this solution will trigger different game effects, for example, when the dragged virtual joystick intersects with the limit control, the virtual character can be controlled to move in the target direction to a specified area of the virtual bunker. Therefore, for the convenience of description, the associated operation between the virtual joystick and the limit control in this solution is represented by a second movement operation. And the second movement operation and the first movement operation are consecutive operations.
[0075] In this embodiment, for the second movement operation of dragging the virtual joystick to the limit control, if the virtual joystick moves towards the target direction until there is an intersection between the joystick head of the virtual joystick and the target hot zone corresponding to the limit control, then control the virtual character to move towards the target direction to the specified area of the virtual bunker. That is, it is determined whether the limit control is triggered by detecting whether there is an intersection between the target hot zone and the joystick head. In this solution, the main focus is on how to quickly control the virtual character to move to the specified area. Therefore, if the joystick head of the virtual joystick and the target hot zone corresponding to the limit control are in an inclusion relationship, then control the target virtual character to move towards the target direction to the specified area of the virtual bunker. The virtual character can automatically move to the specified area of the virtual bunker in the target direction without relying on the player user to control the movement of the virtual character.
[0076] It should be explained that the above-mentioned specified area is determined according to the length dimension of the virtual bunker. Specifically, by obtaining the position coordinates of the two end points of the virtual bunker in the length direction and the current position coordinates of the virtual character, based on the target direction indicated by the movement operation, select the target end point position coordinates corresponding to the target direction from the two end point position coordinates, calculate the difference between the target end point position coordinates and the current position coordinates to obtain the movement length of the virtual character from the current position to the specified area. After determining the movement length, the virtual character can be controlled to move towards the target direction to the specified area of the virtual bunker.
[0077] In some embodiments, if the joystick head of the virtual joystick and the target hot zone corresponding to the limit control are in an intersecting relationship, then in response to the third movement operation on the virtual joystick, control the virtual character to move in the game scene. Specifically, under the control of the player user on the virtual joystick, control the virtual character to move to the specified area of the virtual bunker in the target direction. Simply put, the movement operation of the virtual character still needs to rely on the player user to control the movement of the virtual character.
[0078] In this embodiment, in order to give a prompt when the player user controls the virtual character to move to the specified area, this solution will also lock the virtual joystick when controlling the target virtual character to move to the specified area of the virtual bunker in the target direction, so that the virtual joystick is in an inoperable state.
[0079] In some embodiments, when the virtual joystick is in an inoperable state, it can respond to the player user's release operation on the virtual joystick to release the lock of the virtual joystick. For example, when the player user clicks or slides the joystick again, it triggers the release of the lock on the associated area of the manipulation area of the virtual joystick.
[0080] In some embodiments, after controlling the virtual character to move towards the target direction to the specified area of the virtual bunker, the method further includes:
[0081] In response to a touch operation on the shooting control on the graphical user interface, control the virtual character to switch from a crouching posture to a peeking posture in a specified area for aiming and shooting operations, thereby improving the efficiency of the virtual character's peeking and shooting after reaching the specified area.
[0082] All of the above optional technical solutions can be combined arbitrarily to form optional embodiments of the present application, which will not be elaborated one by one here.
[0083] In specific implementation, the present application is not limited by the execution order of the described steps. Without conflict, some steps can also be performed in other orders or simultaneously.
[0084] As can be seen from the above, the method for controlling a virtual character provided by the embodiments of the present application includes: when the virtual character crouches behind the virtual bunker, in response to a first movement operation on the virtual joystick, controlling the virtual character to move relative to the virtual bunker in a crouching state based on the target direction indicated by the first movement operation; displaying a limit control corresponding to the target direction in the associated area of the virtual joystick; in response to a touch operation on the limit control, controlling the virtual character to move in the target direction to a specified area of the virtual bunker, and locking the virtual joystick to make the virtual joystick enter an inoperable state. By setting a limit control on the graphical user interface in the embodiments of the present application, when the virtual character control moves to the limit control, it is limited that the player user can only control the virtual character to move to the specified area of the virtual bunker in the target direction, that is, the limit position where the virtual character can move relative to the virtual bunker is limited, avoiding the situation that the player user's operation degree of the virtual joystick is not high and accidentally exposing the body position outside the virtual bunker during the process of controlling the movement of the virtual character, thereby reducing the operation difficulty of the player user for peeking and shooting at both ends of the virtual bunker, and improving the efficiency of the player user for controlling the virtual character to peek and shoot at both ends of the virtual bunker.
[0085] The embodiments of the present application further provide a virtual character control device, which can be integrated in a terminal device. The terminal device can be a smart phone, a tablet computer or other devices.
[0086] Please refer to Figure 4 , Figure 4 , which is a schematic structural diagram of the virtual character control device provided by the embodiments of the present application. The virtual character control device 30 may include:
[0087] A response module 31, configured to, when the virtual character crouches behind the virtual bunker, in response to a first movement operation on the virtual joystick, control the virtual character to move relative to the virtual bunker in a crouching state based on the target direction indicated by the first movement operation;
[0088] A display module 32, configured to display a limit control corresponding to the target direction in the associated area of the virtual joystick;
[0089] A control module 33, configured to control the virtual character to move in the target direction to a specified area of the virtual bunker in response to a touch operation on the limit control.
[0090] In some embodiments, the device further includes a locking module, configured to lock the virtual joystick when the virtual character reaches the specified area, so that the virtual joystick enters an inoperable state.
[0091] In some embodiments, the device further includes a determination module, configured to determine that the distance that the touch point of the movement operation moves in the target direction on the terminal device reaches a preset length, or determine that the duration that the touch point of the movement operation moves in the target direction on the terminal device reaches a preset duration.
[0092] In some embodiments, the touch operation on the limit control includes: a second movement operation of dragging the virtual joystick to the limit control.
[0093] In some embodiments, the second movement operation and the first movement operation are continuous operations.
[0094] In some embodiments, the control module 33 is configured to, in response to the second movement operation of dragging the virtual joystick to the limit control, if there is an intersection between the movement of the virtual joystick in the target direction until the joystick head of the virtual joystick and the target hot zone corresponding to the limit control, control the virtual character to move in the target direction to the specified area of the virtual bunker.
[0095] In some embodiments, the control module 33 is configured to, if there is an inclusion relationship between the joystick head of the virtual joystick and the target hot zone corresponding to the limit control, control the virtual character to move in the target direction to the specified area of the virtual bunker.
[0096] In some embodiments, the device further includes a first manipulation module, configured to, if there is an intersection relationship between the joystick head of the virtual joystick and the target hot zone corresponding to the limit control, respond to a third movement operation on the virtual joystick and control the virtual character to move in the game scene.
[0097] In some embodiments, the device further includes an unlocking module, configured to unlock the virtual joystick in response to a touch operation on the virtual joystick when the virtual joystick is in an inoperable state.
[0098] In some embodiments, the device further includes a hiding module, configured to record the display duration during which there is no intersection between the target hot zone and the rocker head of the virtual joystick; determine whether the display duration exceeds a third preset threshold, and if it exceeds the third preset threshold, control the limit control to be hidden on the graphical user interface.
[0099] In some embodiments, the device further includes a display module, configured to, in response to a touch operation on the shooting control on the graphical user interface, control the virtual character to switch from a crouching posture to a peeking posture in the specified area for aiming and shooting operations.
[0100] In some embodiments, the device further includes a second control module, configured to, if the position between the virtual character and the virtual bunker does not meet the preset condition, control the virtual character to switch from a crouching posture to a standing posture and leave the virtual bunker.
[0101] In some embodiments, the device further includes a prompt module, configured to display a preset identifier on the limit control to prompt the user of the position and posture of the virtual character in the virtual bunker after the limit control is triggered.
[0102] In some embodiments, the control module 33 is configured to obtain the position coordinates of two end points of the virtual bunker in the length direction and the current position coordinates of the virtual character; based on the target direction indicated by the movement operation, select the target end point position coordinates corresponding to the target direction from the two end point position coordinates; calculate the difference between the target end point position coordinates and the current position coordinates to obtain the moving length of the virtual character from the current position to the specified area; and control the virtual character to move the moving length in the target direction to the specified area of the virtual bunker.
[0103] In specific implementation, each of the above modules may be implemented as an independent entity, or may be combined arbitrarily to be implemented as the same or several entities.
[0104] As can be seen from the above, the virtual character control device 30 provided by the embodiments of the present application, through the response module 31, when the virtual character crouches behind the virtual bunker, in response to a first movement operation on the virtual joystick, controls the virtual character to move relative to the virtual bunker in a crouching state based on the target direction indicated by the first movement operation; the display module 32 displays a limit control corresponding to the target direction in the associated area of the virtual joystick; and the control module 33, in response to a touch operation on the limit control, controls the virtual character to move in the target direction to the specified area of the virtual bunker.
[0105] Please refer to Figure 5 , Figure 5Another structural schematic diagram of the virtual character control device provided by the embodiment of the present application. The virtual character control device 30 includes a memory 120, one or more processors 180, and one or more application programs, where the one or more application programs are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a response module 31, a display module 32, and a control module 33. For example, the structures and connection relationships of the above components may be as follows:
[0106] The memory 120 can be used to store application programs and data. The application programs stored in the memory 120 contain executable codes. The application programs can form various functional modules. The processor 180 executes various functional applications and data processing by running the application programs stored in the memory 120. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
[0107] The processor 180 is the control center of the device, connecting various parts of the entire terminal using various interfaces and lines. By running or executing the application programs stored in the memory 120, and by calling the data stored in the memory 120, it executes various functions of the device and processes data, thereby performing overall monitoring of the device. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modulation and demodulation processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
[0108] Specifically in this embodiment, the processor 180 will load the executable codes corresponding to the processes of one or more application programs into the memory 120 according to the following instructions, and the processor 180 will run the application programs stored in the memory 120 to implement various functions:
[0109] The response module 31 is used to, when the virtual character squats behind the virtual bunker, in response to a first movement operation on the virtual joystick, control the virtual character to move relative to the virtual bunker in a squatting state based on the target direction indicated by the first movement operation;
[0110] The display module 32 is used to display a limit control corresponding to the target direction in the associated area of the virtual joystick;
[0111] The control module 33 is used to, in response to a touch operation on the limit control, control the virtual character to move in the target direction to a specified area of the virtual bunker.
[0112] In some embodiments, the device further includes a locking module, configured to lock the virtual joystick when the virtual character reaches the specified area, so that the virtual joystick enters an inoperable state.
[0113] In some embodiments, the device further includes a determining module, configured to determine that the distance that the touch point of the movement operation moves in the target direction on the terminal device reaches a preset length, or determine that the duration for which the touch point of the movement operation moves in the target direction on the terminal device reaches a preset duration.
[0114] In some embodiments, the touch operation on the limit control includes: a second movement operation of dragging the virtual joystick to the limit control.
[0115] In some embodiments, the second movement operation and the first movement operation are continuous operations.
[0116] In some embodiments, the control module 33 is configured to, in response to the second movement operation of dragging the virtual joystick to the limit control, if there is an intersection between the virtual joystick moving in the target direction until the joystick head of the virtual joystick and the target hot zone corresponding to the limit control, control the virtual character to move in the target direction to the specified area of the virtual bunker.
[0117] In some embodiments, the control module 33 is configured to, if there is an inclusion relationship between the joystick head of the virtual joystick and the target hot zone corresponding to the limit control, control the virtual character to move in the target direction to the specified area of the virtual bunker.
[0118] In some embodiments, the device further includes a first control module, configured to, if there is an intersection relationship between the joystick head of the virtual joystick and the target hot zone corresponding to the limit control, in response to a third movement operation on the virtual joystick, control the virtual character to move in the game scene.
[0119] In some embodiments, the device further includes an unlocking module, configured to unlock the virtual joystick in response to a touch operation on the virtual joystick when the virtual joystick is in an inoperable state.
[0120] In some embodiments, the device further includes a hiding module, configured to record the display duration when there is no intersection between the target hot zone and the joystick head of the virtual joystick; determine whether the display duration exceeds a third preset threshold, and if it exceeds the third preset threshold, control the limit control to be hidden on the graphical user interface.
[0121] In some embodiments, the device further comprises a display module for controlling the virtual character to switch from a crouching posture to a probing posture in the designated area in response to a touch operation on a shooting control on the graphical user interface, so as to perform an aiming and shooting operation.
[0122] In some embodiments, the device further comprises a second control module for controlling the virtual character to switch from a crouching posture to a standing posture and leave the virtual shelter in response to the position between the virtual character and the virtual shelter not satisfying a preset condition.
[0123] In some embodiments, the device further comprises a prompt module, which is used to display a preset mark on the limit control to prompt the user of the position and posture of the virtual character in the virtual cover after the limit control is triggered.
[0124] In some embodiments, the control module 33 is used to obtain the two endpoint position coordinates of the virtual cover in the length direction and the current position coordinates of the virtual character; based on the target direction indicated by the movement operation, select the target endpoint position coordinates corresponding to the target direction from the two endpoint position coordinates; calculate the difference between the target endpoint position coordinates and the current position coordinates to obtain the movement length of the virtual character from the specified area; control the virtual character to move the movement length in the target direction to the specified area of the virtual cover.
[0125] The embodiment of the present application also provides a terminal device, which can be a smart phone, a computer, a tablet computer, or other device.
[0126] See also Figure 6 , Figure 6 The schematic diagram of the structure of the terminal device provided in the embodiment of the present application is shown, and the terminal device can be used to implement the method of controlling the virtual character provided in the above embodiment. The terminal device 1200 can be a smart phone or a tablet computer.
[0127] like Figure 6 As shown, the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. Those skilled in the art will understand that Figure 6 The structure of the terminal device 1200 shown in the figure does not constitute a limitation on the terminal device 1200, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0128] The RF circuit 110 is used to receive and transmit electromagnetic waves, realizing the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuit 110 may include various existing circuit elements for performing these functions. For example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, a memory, and the like. The RF circuit 110 can communicate with various networks such as the Internet, an enterprise intranet, a wireless network or communicate with other devices through a wireless network.
[0129] The memory 120 can be used to store software programs and modules, such as the program instructions / modules corresponding to the method for controlling a virtual character in the above embodiments. The processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, and can automatically select a vibration reminder mode for virtual character control according to the current scenario in which the terminal device is located, which can not only ensure that scenarios such as meetings are not disturbed, but also ensure that the user can perceive an incoming call, improving the intelligence of the terminal device. The memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memories. In some instances, the memory 120 may further include a memory remotely provided with respect to the processor 180, and these remote memories can be connected to the terminal device 1200 through a network. Examples of the above networks include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0130] The input unit 130 can be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Specifically, the input unit 130 can include a touch-sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also known as a touch display screen or a touchpad, can collect touch operations of a user thereon or nearby (such as operations of the user using any suitable object or accessory such as a finger or a stylus on or near the touch-sensitive surface 131), and drive corresponding connection devices according to a preset program. Optionally, the touch-sensitive surface 131 can include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch position of the user, detects signals brought by the touch operation, and transmits the signals to the touch controller; the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 180, and can receive commands sent by the processor 180 and execute them. In addition, the touch-sensitive surface 131 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131, the input unit 130 can also include other input devices 132. Specifically, the other input devices 132 can include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
[0131] The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal device 1200. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof. The display unit 140 can include a display panel 141. Optionally, the display panel 141 can be configured in forms such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode). Further, the touch-sensitive surface 131 can cover the display panel 141. After the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of touch event. Subsequently, the processor 180 provides corresponding visual output on the display panel 141 according to the type of touch event. Although in Figure 6 the touch-sensitive surface 131 and the display panel 141 are implemented as two independent components to realize input and output functions, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to realize input and output functions.
[0132] The terminal device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. Among them, the ambient light sensor can adjust the brightness of the display panel 141 according to the brightness of the ambient light. The proximity sensor can turn off the display panel 141 and / or the backlight when the terminal device 1200 is moved to the ear. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity, and can be used in applications for identifying the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. As for other sensors that the terminal device 1200 may also be configured with, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be elaborated here.
[0133] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal device 1200. The audio circuit 160 can transmit the electrical signal converted from the received audio data to the speaker 161, and the speaker 161 converts it into a sound signal for output. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and then converted into audio data. After the audio data is output to the processor 180 for processing, it is sent through the RF circuit 110 to, for example, another terminal, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earphone jack to provide communication between the peripheral earphone and the terminal device 1200.
[0134] The terminal device 1200 can help the user send and receive emails, browse the web, and access streaming media, etc. through the transmission module 170 (such as a Wi-Fi module), which provides the user with wireless broadband Internet access. Although Figure 6 the transmission module 170 is shown, it can be understood that it does not belong to the essential components of the terminal device 1200 and can be omitted entirely according to needs without changing the essence of the invention.
[0135] The processor 180 is the control center of the terminal device 1200, connecting various parts of the entire mobile phone through various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 120, and by invoking data stored in the memory 120, it executes various functions of the terminal device 1200 and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 180 either.
[0136] The terminal device 1200 further includes a power supply 190 for supplying power to each component. In some embodiments, the power supply may be logically connected to the processor 180 through a power management system, so as to realize functions such as management of discharging and power consumption management through the power management system. The power supply 190 may further include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.
[0137] Although not shown, the terminal device 1200 may further include a camera (such as a front camera and a rear camera), a Bluetooth module, etc., which will not be elaborated here. Specifically, in this embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, and the terminal device 1200 further includes a memory 120, and one or more programs, where one or more programs are stored in the memory 120 and are configured to be executed by one or more processors 180. The one or more programs include instructions for performing the following operations:
[0138] A response instruction, which is used to, when the virtual character squats behind the virtual bunker, in response to a first movement operation on the virtual joystick, control the virtual character to move relative to the virtual bunker in a squatting state based on the target direction indicated by the first movement operation;
[0139] A display instruction, which is used to display a limit control corresponding to the target direction in the associated area of the virtual joystick;
[0140] A control instruction, which is used to, in response to a touch operation on the limit control, control the virtual character to move to a specified area of the virtual bunker in the target direction.
[0141] In some embodiments, the device further includes a locking module, which is used to lock the virtual joystick when the virtual character reaches the specified area, so that the virtual joystick enters an inoperable state.
[0142] In some embodiments, the program further includes determination instructions for determining that the distance that the touch point of the moving operation moves in the target direction on the terminal device reaches a preset length, or determining that the duration for which the touch point of the moving operation moves in the target direction on the terminal device reaches a preset duration.
[0143] In some embodiments, the touch operation on the limit control includes: a second moving operation of dragging the virtual joystick to the limit control.
[0144] In some embodiments, the second moving operation and the first moving operation are continuous operations.
[0145] In some embodiments, the control instruction is used to, in response to the second moving operation of dragging the virtual joystick to the limit control, if there is an intersection between the direction in which the virtual joystick moves towards the target direction until the joystick head of the virtual joystick and the target hot zone corresponding to the limit control, control the virtual character to move towards the target direction to a specified area of the virtual bunker.
[0146] In some embodiments, the control instruction is used to, if there is an inclusion relationship between the joystick head of the virtual joystick and the target hot zone corresponding to the limit control, control the virtual character to move towards the target direction to a specified area of the virtual bunker.
[0147] In some embodiments, the program further includes a first control instruction for, if there is an intersection relationship between the joystick head of the virtual joystick and the target hot zone corresponding to the limit control, in response to a third moving operation on the virtual joystick, controlling the virtual character to move in the game scene.
[0148] In some embodiments, the program further includes an unlocking instruction for, when the virtual joystick is in an inoperable state, in response to a touch operation on the virtual joystick, unlocking the virtual joystick.
[0149] In some embodiments, the program further includes a hiding instruction for recording the display duration during which there is no intersection between the target hot zone and the joystick head of the virtual joystick; determining whether the display duration exceeds a third preset threshold, and if it exceeds the third preset threshold, controlling the limit control to be hidden on the graphical user interface.
[0150] In some embodiments, the program further includes a display instruction for, in response to a touch operation on the shooting control on the graphical user interface, controlling the virtual character to switch from a crouching posture to a peeking posture in the specified area to perform an aiming and shooting operation.
[0151] In some embodiments, the program further includes a second control instruction for controlling the virtual character to switch from a crouching posture to a standing posture and leave the virtual bunker if the position between the virtual character and the virtual bunker does not meet a preset condition.
[0152] In some embodiments, the program further includes a prompt instruction for displaying a preset identifier on the limit control to prompt the user of the position and posture of the virtual character in the virtual bunker after the limit control is triggered.
[0153] In some embodiments, the control instruction is used to obtain the position coordinates of two end points of the virtual bunker in the length direction and the current position coordinates of the virtual character; select a target end point position coordinate corresponding to the target direction from the two end point position coordinates based on the target direction indicated by the movement operation; calculate the difference between the target end point position coordinate and the current position coordinate to obtain the movement length of the virtual character from the current position to a specified area; and control the virtual character to move in the target direction by the movement length to the specified area of the virtual bunker.
[0154] An embodiment of the present application further provides a terminal device. The terminal device may be a device such as a smart phone or a tablet computer.
[0155] As can be seen from the above, an embodiment of the present application provides a terminal device 1200, and the terminal device 1200 performs the following steps:
[0156] When the virtual character is crouching behind the virtual bunker, in response to a first movement operation on the virtual joystick, control the virtual character to move relative to the virtual bunker in a crouching state based on the target direction indicated by the first movement operation;
[0157] Display a limit control corresponding to the target direction in the associated area of the virtual joystick;
[0158] In response to a touch operation on the limit control, control the virtual character to move in the target direction to the specified area of the virtual bunker.
[0159] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the computer executes the method for controlling a virtual character according to any one of the above embodiments:
[0160] When the virtual character is crouching behind the virtual bunker, in response to a first movement operation on the virtual joystick, control the virtual character to move relative to the virtual bunker in a crouching state based on the target direction indicated by the first movement operation;
[0161] Display a limit control corresponding to the target direction in the associated area of the virtual joystick;
[0162] In response to a touch operation on the limit control, control the virtual character to move in the target direction to a specified area of the virtual bunker.
[0163] It should be noted that for the method of controlling the virtual character described in this application, those of ordinary skill in the art can understand that all or part of the process of implementing the method of controlling the virtual character described in the embodiments of this application can be completed by controlling related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, such as stored in the memory of a terminal device and executed by at least one processor in the terminal device. During the execution process, it can include the processes of the embodiments of the method of controlling the virtual character. Among them, the storage medium can be a magnetic disk, an optical disc, a read-only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), etc.
[0164] For the virtual character control device of the embodiments of this application, its various functional modules can be integrated in a processing chip, or each module can exist physically alone, or two or more modules can be integrated in one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. When the above integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disc, etc.
[0165] The above has introduced in detail the method, device, computer-readable storage medium and terminal device for controlling a virtual character provided by the embodiments of this application. Specific examples are used in this article to elaborate on the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application; at the same time, for those skilled in the art, according to the idea of this application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to this application.
Claims
1. A method for controlling a virtual character, characterized in that, A graphical user interface is provided through a terminal device, wherein the graphical user interface includes at least a portion of a game scene and a virtual joystick, wherein the game scene includes a virtual cover and a virtual character controlled by the terminal device, and the method includes: When the virtual character is crouching behind the virtual cover, in response to a first movement operation on the virtual joystick, the virtual character is controlled to move relative to the virtual cover in a crouching state based on a target direction indicated by the first movement operation; Displaying a limit control corresponding to the target direction in an associated area of the virtual joystick; In response to a second movement operation of dragging the virtual joystick to the limit control, if the virtual joystick moves toward the target direction until there is an intersection between the virtual joystick and the target hot zone corresponding to the limit control, the virtual character is controlled to move toward the target direction to a designated area of the virtual cover.
2. The method according to claim 1, characterized in that, The method further comprises: When the virtual character reaches the designated area, the virtual joystick is locked to make the virtual joystick enter an inoperable state.
3. The method according to claim 1, characterized in that Before displaying the limit control corresponding to the target direction in the associated area of the virtual joystick, the method further includes: Determine that the distance that the touch point of the moving operation on the terminal device moves toward the target direction reaches a preset length, or, It is determined that the time duration for the touch point of the moving operation on the terminal device to move toward the target direction reaches a preset time duration.
4. The method according to claim 1, wherein The second moving operation and the first moving operation are continuous operations.
5. The method according to claim 1, characterized in that, If the virtual joystick moves toward the target direction until there is an intersection between the virtual joystick and the target hot zone corresponding to the limit control, then controlling the virtual character to move toward the target direction to a designated area of the virtual cover includes: If the virtual joystick and the target hot zone corresponding to the limit control are in an inclusion relationship, the virtual character is controlled to move toward the target direction to a designated area of the virtual cover.
6. The method according to claim 1, characterized in that The method further comprises: If the virtual joystick and the target hot zone corresponding to the limit control are in a cross relationship, then in response to a third movement operation on the virtual joystick, the virtual character is controlled to move in the game scene.
7. The method according to claim 2, wherein The method further comprises: When the virtual joystick is in an inoperable state, in response to a touch operation on the virtual joystick, the virtual joystick is unlocked.
8. The method according to claim 1, wherein The method further comprises: Recording the display duration during which there is no intersection between the target hot zone and the virtual joystick; It is determined whether the display duration exceeds a third preset threshold; if so, the limit control is controlled to be hidden on the graphical user interface.
9. The method according to claim 1, wherein After controlling the virtual character to move toward the target direction to a designated area of the virtual cover, the method further includes: In response to a touch operation on a shooting control on the graphical user interface, the virtual character is controlled to switch from a crouching posture to a probing posture in the designated area to perform an aiming and shooting operation.
10. The method according to claim 2, characterized in that, The method further comprises: If the position between the virtual character and the virtual bunker does not meet the preset condition, control the virtual character to switch from a crouching posture to a standing posture and leave the virtual bunker.
11. The method according to claim 1, wherein The method further includes: Display a preset identifier on the limit control to prompt the user of the position and posture of the virtual character in the virtual bunker after the limit control is triggered.
12. The method according to claim 1, wherein The controlling the virtual character to move in the target direction to a specified area of the virtual bunker includes: Obtain the position coordinates of two end points of the virtual bunker in the length direction and the current position coordinates of the virtual character; Based on the target direction indicated by the movement operation, select the target end point position coordinates corresponding to the target direction from the two end point position coordinates; Calculate the difference between the target end point position coordinates and the current position coordinates to obtain the moving length of the virtual character from the current position to the specified area; Control the virtual character to move the moving length in the target direction to the specified area of the virtual bunker.
13. A virtual character control device, characterized in that, Provide a graphical user interface through a terminal device, the graphical user interface at least includes a part of the game scene and a virtual joystick. In the game scene, there are a virtual bunker and a virtual character controlled by the terminal device. The device includes: A response module, configured to, when the virtual character is crouching behind the virtual bunker, in response to a first movement operation on the virtual joystick, control the virtual character to move relative to the virtual bunker in a crouching state based on the target direction indicated by the first movement operation; A display module, configured to display a limit control corresponding to the target direction in an associated area of the virtual joystick; A control module, configured to, in response to a second movement operation of dragging the virtual joystick to the limit control, if there is an intersection between the virtual joystick moving in the target direction until there is an intersection between the virtual joystick and the target hot zone corresponding to the limit control, control the virtual character to move in the target direction to a specified area of the virtual bunker.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores multiple instructions, and the instructions are suitable for being loaded by a processor to execute the method for controlling a virtual character according to any one of claims 1-12.
15. A terminal device, characterized in that, It includes a processor and a memory. The memory stores multiple instructions, and the processor loads the instructions to execute the method for controlling a virtual character according to any one of claims 1-12.
Citation Information
Patent Citations
Virtual object moving control method and apparatus, electronic apparatus and storage medium
CN108509139A
Mobile control method and device for virtual character in game
CN110215691A