Control method, device and storage medium of virtual object in game
By using the combined operation of movement, orientation and free perspective control buttons in shooting games, the orientation of virtual objects is automatically adjusted, solving the problem of binding the orientation of virtual objects to the perspective of the game screen, and improving operational efficiency and fluency.
Patent Information
- Application Number
- CN201910955308.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-09
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2039-10-09
AI Technical Summary
In shooting games, the orientation of virtual objects is bound to the perspective of the game screen, causing players to need complex perspective switching and adjustments when observing their surroundings, which increases operation time and complexity.
Provides a control method that adjusts the orientation of virtual objects and the perspective of the game screen in response to key operations through movement, orientation and free perspective control buttons, automatically adjusts the orientation of virtual objects when specified conditions are met, and simplifies operation steps.
It reduces the operating steps, reduces the time to adjust the orientation of virtual objects, improves the efficiency of human-computer interaction, and simplifies the player's operation process.
Smart Images

Figure CN110665226B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a control method, device and storage medium for a virtual object in a game. Background Art
[0002] In many games, such as shooting games such as "Wild Action", the direction of the virtual object controlled by the player is usually bound to the viewing direction of the game screen. In order to facilitate players to observe the situation around the virtual object without affecting the current state of the virtual object (for example, direction, weapon pointing), these games often provide a "free viewing angle" function, through which the direction of the virtual object can be untied from the viewing direction of the game screen. However, when the direction of the virtual object is different from the direction of the viewing angle (free viewing angle) of the game screen, if a situation is observed in a certain direction under the current viewing angle of the game screen (for example, an enemy character is discovered), in the relevant technology, it is necessary to first switch the viewing angle from the free viewing angle to the viewing angle of the virtual object's virtual object, and then adjust the direction of the virtual object to the direction (the direction in which the situation occurs). When the user controls the virtual object to complete the above operation, the operation process is relatively complicated, so that the user will consume a relatively long time to complete the above operation. Summary of the invention
[0003] In view of this, the embodiments of the present application at least provide a method, device and storage medium for controlling virtual objects in a game to improve the efficiency of human-computer interaction.
[0004] In a first aspect, an embodiment of the present application provides a method for controlling a virtual object in a game, wherein the virtual object performs a virtual action in the game according to an operation instruction received by a terminal device, the terminal device includes an operation button, and the operation button includes a movement control button, a direction control button, and a free viewing angle control button, and the control method includes:
[0005] In response to a first key operation on the movement control key, controlling the movement of the virtual object in the game scene;
[0006] In response to a second key operation on the direction control key, adjusting the direction of the virtual object and simultaneously adjusting the viewing angle of the game screen;
[0007] In response to a third button operation on the free viewing angle control button, the viewing angle of the game screen is adjusted, and the orientation of the virtual object is adjusted when the third button operation meets a specified condition.
[0008] Optionally, when the third button operation satisfies a specified condition, adjusting the orientation of the virtual object includes:
[0009] When the third button operation satisfies the specified condition, the orientation of the virtual object is adjusted according to the adjusted viewing angle of the game screen, wherein the adjusted viewing angle is the viewing angle determined by the third button operation.
[0010] Optionally, adjusting the orientation of the virtual object and adjusting the viewing angle of the game screen at the same time includes:
[0011] The orientation of the virtual object is adjusted and the viewing angle of the game screen is determined according to the orientation of the virtual object.
[0012] Optionally, the control method includes:
[0013] Controlling a free viewing angle indicator control to move within a first specified range according to the third button operation, wherein the free viewing angle indicator control is displayed on a display screen of the game screen;
[0014] The specified conditions include at least one of the following:
[0015] The third button operation controls the moving distance of the free viewing angle indication control to be greater than a distance threshold;
[0016] The third button operation controls the free viewing angle indication control to move to a designated area.
[0017] Optionally, the third button operation controls the free viewing angle indication control to move a distance greater than a distance threshold, including:
[0018] The third button operation controls the moving distance of the free viewing angle indication control to be greater than the radius of the first specified range;
[0019] The figure formed by the first designated range is a circle.
[0020] Optionally, the third button operation controls the free viewing angle indication control to move to a specified area, including:
[0021] The third button operation controls the free viewing angle indicator control to move to a second specified range;
[0022] The figure formed by the first designated range is a circle, the figure formed by the second designated range is a ring, and the second designated range surrounds the first designated range.
[0023] Optionally, the control method further includes:
[0024] An indicator mark is displayed on the display screen of the game screen, wherein the position of the indicator mark is outside the first specified range, and the indicator mark, the free viewing angle indicator control and the center of the circle are located on the same straight line.
[0025] Optionally, when the third button operation satisfies a specified condition, adjusting the orientation of the virtual object includes:
[0026] When the third button operation satisfies a specified condition, determining a rotation angle between the adjusted viewing angle of the game screen and the current orientation of the virtual object;
[0027] The orientation of the virtual object is adjusted according to the rotation angle.
[0028] In a second aspect, an embodiment of the present application provides a method for controlling a virtual object in a game, wherein the virtual object performs a virtual action in the game according to an operation instruction received by a terminal device, the terminal device includes a touch panel, and the touch panel includes a movement control area, a direction control area, and a free viewing angle control area, and the control method includes:
[0029] In response to a first touch operation applied to the movement control area, controlling the virtual object to move in the game scene;
[0030] In response to a second touch operation applied to the orientation control area, adjusting the orientation of the virtual object and adjusting the viewing angle of the game screen at the same time;
[0031] In response to a third touch operation applied to the free viewing angle control area, the viewing angle of the game screen is adjusted, and the orientation of the virtual object is adjusted when the third touch operation meets a specified condition.
[0032] Optionally, when the third touch operation satisfies a specified condition, adjusting the orientation of the virtual object includes:
[0033] When the third touch operation satisfies the specified condition, the orientation of the virtual object is adjusted according to the adjusted viewing angle of the game screen, wherein the adjusted viewing angle is a viewing angle determined by the third touch operation.
[0034] Optionally, the adjusting the orientation of the virtual object and the adjusting the viewing angle of the game screen simultaneously:
[0035] The orientation of the virtual object is adjusted and the viewing angle of the game screen is determined according to the orientation of the virtual object.
[0036] Optionally, the specified condition includes at least one of the following:
[0037] The moving distance of the touch point on the touch panel by the third touch operation is greater than a distance threshold;
[0038] The third touch operation moves the touch point on the touch panel to a designated area;
[0039] The touch pressure of the third touch operation on the touch panel is greater than a pressure threshold.
[0040] Optionally, the control method includes:
[0041] Controlling a free viewing angle indication control to move within a first specified range of the free viewing angle control area according to the third touch operation;
[0042] The specified conditions include at least one of the following:
[0043] The third touch operation controls the moving distance of the free viewing angle indication control to be greater than a distance threshold;
[0044] The third touch operation controls the free viewing angle indication control to move to a designated area.
[0045] Optionally, the third touch operation controls the free viewing angle indication control to move a distance greater than a distance threshold, including:
[0046] The third touch operation controls the moving distance of the free viewing angle indication control to be greater than the radius of the first specified range;
[0047] The figure formed by the first designated range is a circle.
[0048] Optionally, the third touch operation controls the free viewing angle indication control to move to a designated area, including:
[0049] The third touch operation controls the free viewing angle indication control to move into a second specified range;
[0050] The figure formed by the first designated range is a circle, the figure formed by the second designated range is a ring, and the second designated range surrounds the first designated range.
[0051] Optionally, the control method further includes:
[0052] An indicator mark is displayed on the display screen of the game screen, wherein the position of the indicator mark is outside the first specified range, and the indicator mark, the free viewing angle indicator control and the center of the circle are located on the same straight line.
[0053] Optionally, when the third touch operation satisfies a specified condition, adjusting the orientation of the virtual object includes:
[0054] When the third touch operation satisfies a specified condition, determining a rotation angle between the adjusted viewing angle of the game screen and the current orientation of the virtual object;
[0055] The orientation of the virtual object is adjusted according to the rotation angle.
[0056] Optionally, the free viewing angle control area includes a free viewing angle control widget;
[0057] The third touch operation acting on the free viewing angle control area is a touch sliding operation starting from the free viewing angle control control.
[0058] In a third aspect, an embodiment of the present application provides a terminal device, wherein the virtual object performs a virtual action in the game according to an operation instruction received by the terminal device, the terminal device includes an operation button, and the operation button includes a movement control button, a direction control button, and a free perspective control button, and the terminal device includes:
[0059] A control unit, configured to control the movement of the virtual object in the game scene in response to a first key operation on the movement control key;
[0060] A first adjustment unit, configured to adjust the direction of the virtual object and the viewing angle of the game screen in response to a second key operation on the direction control key;
[0061] The second adjustment unit is used to respond to the third key operation acting on the free viewing angle control key, adjust the viewing angle of the game screen, and adjust the orientation of the virtual object when the third key operation meets the specified conditions.
[0062] Optionally, the configuration of the second adjustment unit, when used to adjust the orientation of the virtual object when the third key operation satisfies a specified condition, includes:
[0063] When the third button operation satisfies the specified condition, the orientation of the virtual object is adjusted according to the adjusted viewing angle of the game screen, wherein the adjusted viewing angle is the viewing angle determined by the third button operation.
[0064] Optionally, when the configuration of the first adjustment unit is used to adjust the orientation of the virtual object and simultaneously adjust the viewing angle of the game screen, it includes:
[0065] The orientation of the virtual object is adjusted and the viewing angle of the game screen is determined according to the orientation of the virtual object.
[0066] Optionally, the second adjustment unit is further used to:
[0067] Controlling a free viewing angle indicator control to move within a first specified range according to the third button operation, wherein the free viewing angle indicator control is displayed on a display screen of the game screen;
[0068] The specified conditions include at least one of the following:
[0069] The third button operation controls the moving distance of the free viewing angle indication control to be greater than a distance threshold;
[0070] The third button operation controls the free viewing angle indication control to move to a designated area.
[0071] Optionally, the third button operation controls the free viewing angle indication control to move a distance greater than a distance threshold, including:
[0072] The third button operation controls the moving distance of the free viewing angle indication control to be greater than the radius of the first specified range;
[0073] The figure formed by the first designated range is a circle.
[0074] Optionally, the third button operation controls the free viewing angle indication control to move to a specified area, including:
[0075] The third button operation controls the free viewing angle indicator control to move to a second specified range;
[0076] The figure formed by the first designated range is a circle, the figure formed by the second designated range is a ring, and the second designated range surrounds the first designated range.
[0077] Optionally, an indicator mark is displayed on the display screen of the game screen, wherein the position of the indicator mark is outside the first specified range, and the indicator mark, the free perspective indicator control and the center of the circle are located on the same straight line.
[0078] Optionally, the configuration of the second adjustment unit, when used to adjust the orientation of the virtual object when the third key operation satisfies a specified condition, includes:
[0079] When the third button operation satisfies a specified condition, determining a rotation angle between the adjusted viewing angle of the game screen and the current orientation of the virtual object;
[0080] The orientation of the virtual object is adjusted according to the rotation angle.
[0081] In a fourth aspect, an embodiment of the present application provides a terminal device, wherein the virtual object performs a virtual action in the game according to an operation instruction received by the terminal device, the terminal device includes a touch panel, the touch panel includes a movement control area, a direction control area, and a free viewing angle control area, and the terminal device includes:
[0082] A control unit, configured to control the movement of the virtual object in the game scene in response to a first touch operation applied to the movement control area;
[0083] A first adjustment unit, configured to adjust the orientation of the virtual object and the viewing angle of the game screen in response to a second touch operation applied to the orientation control area;
[0084] The second adjustment unit is used to respond to a third touch operation applied to the free viewing angle control area, adjust the viewing angle of the game screen, and adjust the orientation of the virtual object when the third touch operation meets a specified condition.
[0085] Optionally, the configuration of the second adjustment unit, when used to adjust the orientation of the virtual object when the third touch operation satisfies a specified condition, includes:
[0086] When the third touch operation satisfies the specified condition, the orientation of the virtual object is adjusted according to the adjusted viewing angle of the game screen, wherein the adjusted viewing angle is a viewing angle determined by the third touch operation.
[0087] Optionally, when the configuration of the first adjustment unit is used to adjust the orientation of the virtual object and simultaneously adjust the viewing angle of the game screen, it includes:
[0088] The orientation of the virtual object is adjusted and the viewing angle of the game screen is determined according to the orientation of the virtual object.
[0089] Optionally, the specified condition includes at least one of the following:
[0090] The moving distance of the touch point on the touch panel by the third touch operation is greater than a distance threshold;
[0091] The third touch operation moves the touch point on the touch panel to a designated area;
[0092] The touch pressure of the third touch operation on the touch panel is greater than a pressure threshold.
[0093] Optionally, the second adjustment unit is further used to:
[0094] Controlling a free viewing angle indication control to move within a first specified range of the free viewing angle control area according to the third touch operation;
[0095] The specified conditions include at least one of the following:
[0096] The third touch operation controls the moving distance of the free viewing angle indication control to be greater than a distance threshold;
[0097] The third touch operation controls the free viewing angle indication control to move to a designated area.
[0098] Optionally, the third touch operation controls the free viewing angle indication control to move a distance greater than a distance threshold, including:
[0099] The third touch operation controls the moving distance of the free viewing angle indication control to be greater than the radius of the first specified range;
[0100] The figure formed by the first designated range is a circle.
[0101] Optionally, the third touch operation controls the free viewing angle indication control to move to a designated area, including:
[0102] The third touch operation controls the free viewing angle indication control to move into a second specified range;
[0103] The figure formed by the first designated range is a circle, the figure formed by the second designated range is a ring, and the second designated range surrounds the first designated range.
[0104] Optionally, an indicator mark is displayed on the display screen of the game screen, wherein the position of the indicator mark is outside the first specified range, and the indicator mark, the free perspective indicator control and the center of the circle are located on the same straight line.
[0105] Optionally, the configuration of the second adjustment unit, when used to adjust the orientation of the virtual object when the third touch operation satisfies a specified condition, includes:
[0106] When the third touch operation satisfies a specified condition, determining a rotation angle between the adjusted viewing angle of the game screen and the current orientation of the virtual object;
[0107] The orientation of the virtual object is adjusted according to the rotation angle.
[0108] Optionally, the free viewing angle control area includes a free viewing angle control widget;
[0109] The third touch operation acting on the free viewing angle control area is a touch sliding operation starting from the free viewing angle control control.
[0110] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the control method described in any one of the first aspects or to perform the steps of the control method described in any one of the second aspects.
[0111] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the control method as described in any one of the first aspects or the steps of the control method as described in any one of the second aspects are executed.
[0112] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0113] In the present application, in response to a first key operation on a movement control key, the terminal device controls the movement of a virtual object in a game scene; in response to a second key operation on a direction control key, the terminal device adjusts the direction of the virtual object and simultaneously adjusts the viewing angle of the game screen; through the above two steps, the virtual object can be controlled to move freely in the game scene, and the viewing angle of the game screen can be freely adjusted, so that the game screen displays the corresponding game scene as the virtual object moves and faces the direction; in response to a third key operation on a free viewing angle control key, the viewing angle of the game screen is adjusted, and the orientation of the virtual object is adjusted when the third key operation meets a specified condition; through the third key operation, the viewing angle of the game screen can be switched from the viewing angle of the game screen corresponding to the direction of the virtual object to the viewing angle of the game screen corresponding to the free viewing angle, and at the third key operation, the viewing angle of the game screen is switched from the viewing angle of the game screen corresponding to the direction of the virtual object to the viewing angle of the game screen corresponding to the free viewing angle. When the operation meets the specified conditions, the perspective of the game screen corresponding to the free perspective is switched to the perspective of the game screen corresponding to the orientation of the virtual object, and the orientation of the virtual object is adjusted at the same time. Through the above method, when the perspective of the game screen corresponding to the free perspective is switched to the perspective of the game screen corresponding to the orientation of the virtual object, the orientation of the virtual object will be adjusted. Furthermore, when the third button operation meets the specified conditions, the orientation of the virtual object after responding to the second button operation will be adjusted to the orientation of the virtual object after responding to the third button operation. Since the present application will automatically adjust the orientation of the virtual object according to the third button operation after exiting the free perspective, compared with the prior art, the present application reduces the operation steps, thereby reducing the complexity of the operation, which is conducive to allowing users to spend a relatively short time to complete the operation of adjusting the orientation of the virtual object, thereby improving the efficiency of human-computer interaction.
[0114] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0115] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0116] Figure 1 A flowchart of a method for controlling a virtual object in a game provided by an embodiment of the present application;
[0117] Figure 2 A display schematic diagram provided for an embodiment of the present application;
[0118] Figure 3 Another display schematic diagram provided for an embodiment of the present application;
[0119] Figure 4 A schematic diagram of a flow chart of another method for controlling a virtual object in a game provided by an embodiment of the present application;
[0120] Figure 5 A flowchart of a method for controlling a virtual object in a game provided by another embodiment of the present application;
[0121] Figure 6 A schematic diagram of a flow chart of another method for controlling a virtual object in a game provided by an embodiment of the present application;
[0122] Figure 7 A schematic diagram of the structure of a terminal device provided in another embodiment of the present application;
[0123] Figure 8 A schematic diagram of the structure of a terminal device provided in another embodiment of the present application;
[0124] Fig. 9 A schematic diagram of the structure of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0125] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0126] It should be noted in advance that the game screen involved in the present application is captured by a virtual camera and presented on a display device. The perspective of the game screen is the shooting angle of the virtual camera. The perspectives of game screens in different modes are the results of shooting by the virtual camera through different shooting angles. For example, the game screen corresponding to the direction of the virtual object is the picture captured by the virtual camera with the virtual character as the shooting point and the direction of the virtual character as the shooting direction. The game screen under a free perspective is the picture captured by the virtual camera with a certain point at a certain distance from the virtual character as the shooting point and a certain direction as the shooting direction. Specifically, it can be the picture captured by the virtual camera with a certain position above the head of the virtual character as the shooting point and a certain direction as the shooting direction. The adjustment of the perspective of the game screen is achieved by changing the shooting angle of the virtual camera. Under the perspective of a certain game screen, if you want to obtain a game screen in a certain direction, you can achieve it by controlling the shooting direction of the virtual camera.
[0127] Figure 1 A flowchart of a method for controlling a virtual object in a game provided by an embodiment of the present application is provided, wherein the virtual object performs a virtual action in the game according to an operation instruction received by a terminal device, wherein the terminal device includes an operation button, and the operation button includes a movement control button, a direction control button, and a free viewing angle control button. The control method includes the following steps:
[0128] Step 101: In response to a first key operation on the movement control key, control the movement of the virtual object in the game scene.
[0129] Step 102: In response to a second key operation on the direction control key, the direction of the virtual object is adjusted and the viewing angle of the game screen is adjusted simultaneously.
[0130] Step 103, in response to a third key operation on the free viewing angle control key, adjusting the viewing angle of the game screen, and adjusting the orientation of the virtual object when the third key operation meets a specified condition.
[0131] Specifically, the user can control the virtual objects in the game through the terminal device. For example, the user operates the terminal device, and after receiving the operation instruction, the terminal device controls the virtual object to perform virtual actions such as moving the virtual object or the direction of the table in the game.
[0132] When the terminal device includes buttons (such as physical buttons or virtual buttons), the user controls the virtual object by operating the buttons so that the virtual object performs the corresponding virtual action, wherein the buttons included in the terminal device include at least the following: a movement control button for moving the virtual object, a direction control button for changing the direction of the virtual object, and a free view control button for switching to a free view. When the user wants the virtual object to move, it can be achieved by operating the movement control button, when the user wants to change the direction of the virtual object, it can be achieved by operating the direction control button, and when the user wants to switch to a free view, it can be achieved by operating the free view control button. The above three buttons can be used alone or in combination. For example, when the user wants the virtual object to change its direction during movement, it can be achieved by operating the movement control button and the direction control button. Of course, the terminal device can also include buttons with other functions. The specific function buttons included in the terminal device can be set according to actual needs, and are not specifically limited here.
[0133] During the game, after the mobile terminal receives a first key operation acting on a movement control button, the mobile terminal controls the virtual object to move in the game scene. If the user wants to adjust the orientation of the virtual object to change the observation direction of the virtual object, the second key operation can be performed on the orientation control button. After receiving the second key operation, the mobile terminal controls the virtual object to adjust its orientation. Since the orientation of the virtual object changes, the observation direction of the virtual object also changes. In order to obtain the game screen in the adjusted orientation, it is also necessary to adjust the shooting direction of the virtual camera (i.e., adjust the viewing angle of the game screen) so that the shooting direction of the virtual camera is the same as the orientation of the virtual object, so that the virtual camera can capture the game screen in the adjusted orientation, and then display the game screen currently captured by the virtual camera on the terminal device. When the user wants to enter a free viewing angle, the third key operation can be performed on the free viewing angle control button. After receiving the third key operation, the terminal device adjusts the viewing angle of the game screen to enter the free viewing angle mode to observe the game scene. The adjustment at this time refers to the shooting position of the virtual camera and the virtual camera. The shooting direction of the machine is adjusted, but the orientation of the virtual object does not change at this time. After entering the free perspective mode to observe the game scene, if the situation is observed in a certain direction and you want the virtual object to change its orientation so that the orientation of the virtual object is the same as that direction, it is necessary to make the third button operation meet the specified conditions. For example: after entering the free perspective through the third button operation, you can still continue to adjust the shooting direction of the virtual camera through the third button operation, thereby changing the viewing angle of the game screen. When the shooting direction of the virtual camera is adjusted to a certain direction, the user can end the third button operation (meeting the specified conditions). At this time, it is necessary to adjust the orientation of the virtual object to that direction. For example: when the virtual object is facing a first direction, the free perspective is entered through the third button operation of the free perspective control button, and after entering the free perspective, the third button operation is still continued. At this time, the shooting direction of the virtual camera under the free perspective is adjusted through the subsequent third button operation. When the shooting direction of the virtual camera is the second direction, the third button operation ends. At this time, it is necessary to adjust the orientation of the virtual object from the first direction to the second direction.
[0134] It should be noted that the third button operation is a continuous operation, through which you can switch to the free perspective mode and adjust the shooting direction of the virtual camera in the free perspective mode. After the third button operation meets the specified conditions, the orientation of the virtual object can be adjusted from the orientation when entering the free perspective mode to the shooting direction of the virtual camera when the third button operation meets the specified conditions. The specific specified conditions can be set according to actual needs and the actual type of the free perspective control button, and no specific limitations are made here.
[0135] It should be noted that the buttons involved in the present application may be virtual buttons or physical buttons. For example, when the terminal device is a console gaming device such as PS4 or XBOX, the user can control the virtual objects through the physical buttons on the handle, such as controlling the movement and orientation of the virtual objects, and switching to the free perspective mode. Of course, virtual buttons can also be set on the handle to control the virtual objects through the virtual buttons on the handle, such as controlling the movement and orientation of the virtual objects, and switching to the free perspective mode.
[0136] In a feasible embodiment, when adjusting the orientation of the virtual object when the third button operation satisfies a specified condition, the orientation of the virtual object can be adjusted according to the adjusted viewing angle of the game screen when the third button operation satisfies the specified condition, wherein the adjusted viewing angle is the viewing angle determined by the third button operation.
[0137] Specifically, the third button operation is a continuous operation. Through the third button operation, you can switch to the free perspective mode and adjust the shooting direction of the virtual camera in the free perspective mode (the orientation of the virtual object does not change at this time), thereby adjusting the perspective of the game screen. At the same time, when the third button operation meets the specified conditions, the orientation of the virtual object can be adjusted to the shooting direction of the virtual camera when the specified conditions are met. In the present application, the above-mentioned control is achieved through one operation, which is conducive to simplifying the user's operating steps and improving the user's operating fluency.
[0138] In a feasible implementation, when adjusting the orientation of the virtual object and adjusting the viewing angle of the game screen at the same time, the orientation of the virtual object may be adjusted and the viewing angle of the game screen may be determined according to the orientation of the virtual object.
[0139] In a feasible embodiment, a free perspective indicator control can be controlled to move within a first specified range according to the third button operation, wherein the free perspective indicator control is displayed on a display screen of the game screen, and the specified conditions include at least one of the following: the third button operation controls the movement distance of the free perspective indicator control to be greater than a distance threshold, and the third button operation controls the free perspective indicator control to move to a specified area.
[0140] Specifically, after the user operates the free perspective control button, a free perspective indicator control will be displayed on the display screen. During the process of continuing the third button operation, the position of the free perspective indicator control on the display screen will change accordingly with the action of the third button operation. The position change range of the free perspective indicator control is within a first specified range. The position of the free perspective indicator control within the first specified range can be used to display the direction of the shooting direction of the virtual camera in the free perspective mode, so that the user can know the perspective direction of the current game screen in the free perspective mode.
[0141] Under the action of the third button operation, the free perspective indicator control will also move accordingly. In order to determine whether the specified conditions are currently met, the direction of the virtual object can be adjusted after the moving distance of the free perspective indicator control is greater than the distance threshold, wherein the moving distance of the free perspective indicator control is greater than the distance threshold, indicating that the shooting direction of the virtual camera in the free perspective mode is the adjusted direction of the direction of the virtual object, or the direction of the virtual object can be adjusted after the free perspective indicator control is moved to a specified area, wherein the free perspective indicator control is moved to the specified area, indicating that the shooting direction of the virtual camera in the free perspective mode is the adjusted direction of the direction of the virtual object.
[0142] It should be noted that the moving distance of the free viewing angle indicator control can be the distance between the position of the free viewing angle indicator control in a certain direction and the initial position of the free viewing angle indicator control. The designated area can be an area on the display screen that does not overlap with the first designated range. The designated area and moving distance can be defined according to actual needs and are not specifically limited here.
[0143] In a feasible embodiment, the moving distance of the free viewing angle indicator control controlled by the third button operation being greater than a distance threshold may mean that the moving distance of the free viewing angle indicator control controlled by the third button operation is greater than the radius of the first specified range, wherein the figure formed by the first specified range is a circle.
[0144] Specifically, when the third button operation is performed, the first specified range and the free viewing angle indicator control are displayed on the display screen, wherein the free viewing angle indicator control is located within the first specified range, and the graphic of the first specified range travel is a circle. When the first specified range and the free viewing angle indicator control are just displayed on the display screen, the free viewing angle indicator control can be located at the center of the first specified range. Figure 2 A display schematic diagram provided in an embodiment of the present application, such as Figure 2The circle shown in is a first specified range, and the free perspective indicator control can move within the circle. When the position of the free perspective indicator control is at the edge of the circle and has a tendency to continue to move to an area outside the circle, the specified condition is met. When the above operation is met, the direction of the virtual object is adjusted. The above method is conducive to improving the continuity of the operation, so that the player can quickly control the direction of the virtual object when observing the surrounding situation of the virtual object.
[0145] It should be noted that Figure 2 This is only a schematic illustration, and the size of the first specified range and the shape of the free viewing angle indicator control can be set according to actual needs and are not specifically limited here.
[0146] In a feasible embodiment, the third button operation controlling the free viewing angle indicator control to move to a designated area may be that the third button operation controls the free viewing angle indicator control to move to a second designated range, wherein the figure formed by the first designated range is a circle, the figure formed by the second designated range is a ring, and the second designated range surrounds the first designated range.
[0147] Specifically, when the third button operation is performed, the first specified range, the second specified range and the free viewing angle indicator control are displayed on the display screen, wherein the free viewing angle indicator control is located within the first specified range, and the range in which the free viewing angle indicator control can move is the first specified range, and the graphic of the first specified range travel is a circle, and when the first specified range and the free viewing angle indicator control are just displayed on the display screen, the free viewing angle indicator control can be located at the center of the first specified range, the graphic of the second specified range travel is a ring, and the second specified range includes the first specified range, Figure 3 Another display schematic diagram provided in the embodiment of the present application is as follows: Figure 3 As shown, the first specified range is an area filled with a checkered pattern, and the second specified range is an area filled with a diamond pattern. The free viewing angle indicator control can move within the first specified range. When the position of the free viewing angle indicator control is at the edge of the first specified range and there is a trend of continuing to move toward the second specified range, the specified condition is met. When the above operation is met, the orientation of the virtual object is adjusted. The above method is helpful to improve the accuracy of the user when performing the third button operation.
[0148] It should be noted that Figure 3 This is only a schematic illustration. The size of the first specified range, the size of the second specified range and the shape of the free viewing angle indicator control can be set according to actual needs, and the relative positions of the first specified range and the second specified range can also be set according to actual needs, without specific limitation here.
[0149] In one possible embodiment, Figure 2 or Figure 3 As shown, an indicator mark is displayed on the display screen of the game screen, wherein the position of the indicator mark is outside the first specified range, and the indicator mark, the free perspective indicator control and the center of the circle are located on the same straight line.
[0150] Specifically, Figure 2 or Figure 3 As shown, the indicator mark can enable the user to more conveniently know the angle of the free perspective indicator control within the first specified range, so that when the free perspective indicator control is blocked, the current shooting direction of the virtual camera can be determined through the indicator mark. The specific location of the indicator mark can be set according to actual needs and is not specifically limited here.
[0151] In one possible embodiment, Figure 4 A flowchart of another method for controlling a virtual object in a game provided by an embodiment of the present application is shown in FIG. Figure 4 As shown, when the third button operation satisfies a specified condition, adjusting the orientation of the virtual object can be achieved by the following steps:
[0152] Step 401: When the third button operation satisfies a specified condition, determine a rotation angle between the adjusted viewing angle of the game screen and the current orientation of the virtual object.
[0153] Step 402: Adjust the orientation of the virtual object according to the rotation angle.
[0154] Specifically, in order to enable the virtual object to adjust its orientation more quickly, the virtual object needs to be rotated at a relatively small angle to achieve the adjusted orientation. Therefore, when the third button operation meets the specified conditions, it is necessary to determine the minimum rotation angle between the adjusted viewing angle of the game screen and the current orientation of the virtual object, and then adjust the orientation of the virtual object according to the minimum rotation angle.
[0155] It should be noted that the determined rotation angle can also be the maximum rotation angle between the adjusted viewing angle of the game screen and the current orientation of the virtual object, and then the orientation of the virtual object is adjusted according to the maximum rotation angle. The specific rotation angle and rotation direction can be set according to actual needs and are not specifically limited here.
[0156] Figure 5A flowchart of a method for controlling a virtual object in a game provided by another embodiment of the present application is provided, wherein the virtual object performs a virtual action in the game according to an operation instruction received by a terminal device, the terminal device includes a touch panel, and the touch panel includes a movement control area, a direction control area, and a free viewing angle control area. The control method includes the following steps:
[0157] Step 501: In response to a first touch operation on the movement control area, the virtual object is controlled to move in a game scene.
[0158] Step 502: In response to a second touch operation on the orientation control area, adjust the orientation of the virtual object and simultaneously adjust the viewing angle of the game screen.
[0159] Step 503: In response to a third touch operation applied to the free viewing angle control area, the viewing angle of the game screen is adjusted, and the orientation of the virtual object is adjusted when the third touch operation meets a specified condition.
[0160] Specifically, Figure 5 The method shown can be executed in, for example, controlling a virtual object by a touch phone, displaying a game screen by a touch panel of the touch phone, or displaying a game screen by other display devices (such as a television, etc.). The first touch operation, the second touch operation, and the third touch operation can all be implemented by operations such as clicking and sliding. When performing the first touch operation, the second touch operation, and the third touch operation, it can be implemented by acting on the corresponding operation area on the touch panel, such as: the first touch operation can be implemented by operating the movement control area on the touch panel, the second touch operation can be implemented by operating the direction control area on the touch panel, and the third touch operation can be implemented by operating the free perspective control area on the touch panel.
[0161] about Figure 5 For other instructions on the corresponding content, please refer to Figures 1 to 4 The relevant explanations in the text will not be explained in detail here.
[0162] In a feasible implementation, when executing the step of adjusting the orientation of the virtual object when the third touch operation satisfies a specified condition, the orientation of the virtual object can be adjusted according to the adjusted viewing angle of the game screen when the third touch operation satisfies the specified condition, wherein the adjusted viewing angle is the viewing angle determined by the third touch operation.
[0163] For a description of this embodiment, please refer to Figures 1 to 4 The relevant explanations in the text will not be explained in detail here.
[0164] In a feasible implementation manner, adjusting the orientation of the virtual object and adjusting the viewing angle of the game screen simultaneously may be achieved by adjusting the orientation of the virtual object and determining the viewing angle of the game screen according to the orientation of the virtual object.
[0165] For a description of this embodiment, please refer to Figures 1 to 4 The relevant explanations in the text will not be explained in detail here.
[0166] In a feasible implementation manner, the specified conditions in the above implementation manner include at least one of the following situations:
[0167] The first type: the moving distance of the touch point on the touch panel of the third touch operation is greater than a distance threshold.
[0168] The second type: the third touch operation moves the touch point on the touch panel to a designated area.
[0169] The third type: the touch pressure of the third touch operation on the touch panel is greater than the pressure threshold.
[0170] For details about the first and second types, please refer to Figures 1 to 4 The relevant explanations in the text will not be explained in detail here.
[0171] Regarding the third type, for a touch panel that can sense different pressure values, when performing the third touch operation, the user can achieve the specified condition by the magnitude of the force applied on the touch surface.
[0172] In a feasible implementation scheme, in order to improve the interactivity of the game, after responding to a third touch operation applied to the free perspective control area, a free perspective indicator control can be controlled to move within a first specified range of the free perspective control area according to the third touch operation, wherein the specified conditions include at least one of the following: the third touch operation controls the movement distance of the free perspective indicator control to be greater than a distance threshold; and the third touch operation controls the free perspective indicator control to move to a specified area.
[0173] For a description of this embodiment, please refer to Figures 1 to 4 The relevant explanations in the text will not be explained in detail here.
[0174] In a feasible implementation, the third touch operation controlling the moving distance of the free viewing angle indicator control to be greater than a distance threshold may include the third touch operation controlling the moving distance of the free viewing angle indicator control to be greater than the radius of the first specified range; wherein the figure formed by the first specified range is a circle.
[0175] For a description of this embodiment, please refer to Figures 1 to 4The relevant explanations in the text will not be explained in detail here.
[0176] In a feasible embodiment, the third touch operation controlling the free viewing angle indicator control to move to a designated area may include: the third touch operation controlling the free viewing angle indicator control to move to a second designated range; wherein the figure formed by the first designated range is a circle, the figure formed by the second designated range is a ring, and the second designated range surrounds the first designated range.
[0177] For a description of this embodiment, please refer to Figures 1 to 4 The relevant explanations in the text will not be explained in detail here.
[0178] In a feasible implementation scheme, an indicator mark is displayed on the display screen of the game screen, wherein the position of the indicator mark is outside the first specified range, and the indicator mark, the free perspective indicator control and the center of the circle are located on the same straight line.
[0179] For a description of this embodiment, please refer to Figures 1 to 4 The relevant explanations in the text will not be explained in detail here.
[0180] In one possible embodiment, Figure 6 A flowchart of another method for controlling a virtual object in a game provided by an embodiment of the present application is shown in FIG. Figure 6 As shown, when the third touch operation satisfies a specified condition, adjusting the orientation of the virtual object can be achieved by the following steps:
[0181] Step 601: When the third touch operation satisfies a specified condition, determine a rotation angle between the adjusted viewing angle of the game screen and the current orientation of the virtual object.
[0182] Step 602: Adjust the orientation of the virtual object according to the rotation angle.
[0183] For a description of this embodiment, please refer to Figures 1 to 4 The relevant explanations in the text will not be explained in detail here.
[0184] In a feasible implementation manner, the free viewing angle control area includes a free viewing angle control control; and the third touch operation acting on the free viewing angle control area is a touch sliding operation starting from the free viewing angle control control.
[0185] Specifically, a free viewing angle control control will appear on the display panel of the terminal device in response to the start of the third touch operation, and the start of movement of the free viewing angle control control will definitely be the start of the terminal device influencing the third touch operation.
[0186] Figure 7 A schematic diagram of the structure of a terminal device provided in another embodiment of the present application, wherein the virtual object performs a virtual action in the game according to an operation instruction received by the terminal device, and the terminal device includes operation buttons, wherein the operation buttons include a movement control button, a direction control button, and a free viewing angle control button, such as Figure 7 As shown, the terminal device includes:
[0187] The control unit 701 is used to control the movement of the virtual object in the game scene in response to a first key operation acting on the movement control key.
[0188] The first adjustment unit 702 is used to adjust the direction of the virtual object and the viewing angle of the game screen in response to the second key operation acting on the direction control key.
[0189] The second adjustment unit 703 is used to respond to the third key operation acting on the free viewing angle control key, adjust the viewing angle of the game screen, and adjust the direction of the virtual object when the third key operation meets the specified condition.
[0190] In a feasible implementation manner, the configuration of the second adjustment unit 703, when used to adjust the orientation of the virtual object when the third key operation satisfies a specified condition, includes:
[0191] When the third button operation satisfies the specified condition, the orientation of the virtual object is adjusted according to the adjusted viewing angle of the game screen, wherein the adjusted viewing angle is the viewing angle determined by the third button operation.
[0192] In a feasible implementation, the configuration of the first adjustment unit 702, when used to adjust the orientation of the virtual object and simultaneously adjust the viewing angle of the game screen, includes:
[0193] The orientation of the virtual object is adjusted and the viewing angle of the game screen is determined according to the orientation of the virtual object.
[0194] In a feasible implementation manner, the second adjustment unit 703 is further used to:
[0195] Controlling a free viewing angle indicator control to move within a first specified range according to the third button operation, wherein the free viewing angle indicator control is displayed on a display screen of the game screen;
[0196] The specified conditions include at least one of the following:
[0197] The third button operation controls the moving distance of the free viewing angle indication control to be greater than a distance threshold;
[0198] The third button operation controls the free viewing angle indication control to move to a designated area.
[0199] In a feasible implementation manner, the third button operation controls the moving distance of the free viewing angle indication control to be greater than a distance threshold, including:
[0200] The third button operation controls the moving distance of the free viewing angle indication control to be greater than the radius of the first specified range;
[0201] The figure formed by the first designated range is a circle.
[0202] In a feasible implementation manner, the third button operation controls the free viewing angle indicator control to move to a specified area, including:
[0203] The third button operation controls the free viewing angle indicator control to move to a second specified range;
[0204] The figure formed by the first designated range is a circle, the figure formed by the second designated range is a ring, and the second designated range surrounds the first designated range.
[0205] In a feasible implementation scheme, an indicator mark is displayed on the display screen of the game screen, wherein the position of the indicator mark is outside the first specified range, and the indicator mark, the free perspective indicator control and the center of the circle are located on the same straight line.
[0206] In a feasible implementation manner, the configuration of the second adjustment unit 703, when used to adjust the orientation of the virtual object when the third key operation satisfies a specified condition, includes:
[0207] When the third button operation satisfies a specified condition, determining a rotation angle between the adjusted viewing angle of the game screen and the current orientation of the virtual object;
[0208] The orientation of the virtual object is adjusted according to the rotation angle.
[0209] about Figure 7 For explanation, please refer to Figures 1 to 4 The relevant instructions will not be explained in detail here.
[0210] Figure 8 A schematic diagram of the structure of a terminal device provided in another embodiment of the present application, wherein the virtual object performs a virtual action in the game according to an operation instruction received by the terminal device, and the terminal device includes a touch panel, and the touch panel includes a movement control area, a direction control area, and a free viewing angle control area, such as Figure 8 As shown, the terminal device includes:
[0211] A control unit 801 is used to control the movement of the virtual object in the game scene in response to a first touch operation applied to the movement control area;
[0212] A first adjustment unit 802, configured to adjust the orientation of the virtual object and the viewing angle of the game screen in response to a second touch operation applied to the orientation control area;
[0213] The second adjustment unit 803 is used to respond to a third touch operation applied to the free viewing angle control area, adjust the viewing angle of the game screen, and adjust the orientation of the virtual object when the third touch operation meets a specified condition.
[0214] In a feasible implementation manner, the configuration of the second adjustment unit 803, when used to adjust the orientation of the virtual object when the third touch operation satisfies a specified condition, includes:
[0215] When the third touch operation satisfies the specified condition, the orientation of the virtual object is adjusted according to the adjusted viewing angle of the game screen, wherein the adjusted viewing angle is a viewing angle determined by the third touch operation.
[0216] In a feasible implementation, the configuration of the first adjustment unit 802, when used to adjust the orientation of the virtual object and simultaneously adjust the viewing angle of the game screen, includes:
[0217] The orientation of the virtual object is adjusted and the viewing angle of the game screen is determined according to the orientation of the virtual object.
[0218] In a feasible embodiment, the specified conditions include at least one of the following:
[0219] The moving distance of the touch point on the touch panel by the third touch operation is greater than a distance threshold;
[0220] The third touch operation moves the touch point on the touch panel to a designated area;
[0221] The touch pressure of the third touch operation on the touch panel is greater than a pressure threshold.
[0222] In a feasible implementation manner, the second adjustment unit 803 is further used to:
[0223] Controlling a free viewing angle indication control to move within a first specified range of the free viewing angle control area according to the third touch operation;
[0224] The specified conditions include at least one of the following:
[0225] The third touch operation controls the moving distance of the free viewing angle indication control to be greater than a distance threshold;
[0226] The third touch operation controls the free viewing angle indication control to move to a designated area.
[0227] In a feasible implementation manner, the third touch operation controls the moving distance of the free viewing angle indication control to be greater than a distance threshold, including:
[0228] The third touch operation controls the moving distance of the free viewing angle indication control to be greater than the radius of the first specified range;
[0229] The figure formed by the first designated range is a circle.
[0230] In a feasible implementation manner, the third touch operation controls the free viewing angle indication control to move to a specified area, including:
[0231] The third touch operation controls the free viewing angle indication control to move into a second specified range;
[0232] The figure formed by the first designated range is a circle, the figure formed by the second designated range is a ring, and the second designated range surrounds the first designated range.
[0233] In a feasible implementation scheme, an indicator mark is displayed on the display screen of the game screen, wherein the position of the indicator mark is outside the first specified range, and the indicator mark, the free perspective indicator control and the center of the circle are located on the same straight line.
[0234] In a feasible implementation manner, the configuration of the second adjustment unit 803, when used to adjust the orientation of the virtual object when the third touch operation satisfies a specified condition, includes:
[0235] When the third touch operation satisfies a specified condition, determining a rotation angle between the adjusted viewing angle of the game screen and the current orientation of the virtual object;
[0236] The orientation of the virtual object is adjusted according to the rotation angle.
[0237] In a feasible implementation, the free viewing angle control area includes a free viewing angle control widget;
[0238] The third touch operation acting on the free viewing angle control area is a touch sliding operation starting from the free viewing angle control control.
[0239] about Figure 8 For explanation, please refer to Figures 5 and 6The relevant instructions will not be explained in detail here.
[0240] Fig. 9 A schematic diagram of the structure of an electronic device provided in another embodiment of the present application includes: a processor 901, a storage medium 902 and a bus 903, wherein the storage medium 902 stores machine-readable instructions executable by the processor 901. When the electronic device runs the above-mentioned game control method, the processor 901 communicates with the storage medium 902 through the bus 903, and the processor 901 executes the machine-readable instructions to perform the following steps:
[0241] In response to a first key operation on a movement control key, the movement of a virtual object in a game scene is controlled; in response to a second key operation on a direction control key, the direction of the virtual object is adjusted and the viewing angle of the game screen is adjusted at the same time; in response to a third key operation on a free viewing angle control key, the viewing angle of the game screen is adjusted, and the direction of the virtual object is adjusted when the third key operation meets a specified condition.
[0242] Or follow these steps:
[0243] In response to a first touch operation applied to the movement control area, the movement of the virtual object in the game scene is controlled; in response to a second touch operation applied to the orientation control area, the orientation of the virtual object is adjusted and the viewing angle of the game screen is adjusted at the same time; in response to a third touch operation applied to the free viewing angle control area, the viewing angle of the game screen is adjusted, and the orientation of the virtual object is adjusted when the third touch operation meets a specified condition.
[0244] In the embodiment of the present application, the storage medium 902 may also store other machine-readable instructions to execute the following: Figures 1 to 4 Or Figures 5 and 6 For the specific implementation method steps and principles of the game control method, see Figures 1 to 6 The description will not be repeated in detail here.
[0245] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the following steps:
[0246] In response to a first key operation on a movement control key, the movement of a virtual object in a game scene is controlled; in response to a second key operation on a direction control key, the direction of the virtual object is adjusted and the viewing angle of the game screen is adjusted at the same time; in response to a third key operation on a free viewing angle control key, the viewing angle of the game screen is adjusted, and the direction of the virtual object is adjusted when the third key operation meets a specified condition.
[0247] Or follow these steps:
[0248] In response to a first touch operation applied to the movement control area, the movement of the virtual object in the game scene is controlled; in response to a second touch operation applied to the orientation control area, the orientation of the virtual object is adjusted and the viewing angle of the game screen is adjusted at the same time; in response to a third touch operation applied to the free viewing angle control area, the viewing angle of the game screen is adjusted, and the orientation of the virtual object is adjusted when the third touch operation meets a specified condition.
[0249] In the embodiment of the present application, when the computer program is executed by the processor, other machine-readable instructions may also be executed to perform the following steps: Figures 1 to 4 Or Figures 5 and 6 Regarding the method of game control, the specific implementation steps and principles are described in the first embodiment and will not be described in detail here.
[0250] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0251] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple 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.
[0252] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0253] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0254] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for controlling a virtual object in a game, wherein the virtual object performs a virtual action in the game according to an operation instruction received by a terminal device, characterized in that: The terminal device includes operation buttons, the operation buttons include a movement control button, a direction control button and a free viewing angle control button, and the control method includes: In response to a first key operation on the movement control key, controlling the movement of the virtual object in the game scene; In response to a second key operation on the direction control key, adjusting the direction of the virtual object and simultaneously adjusting the viewing angle of the game screen; In response to a third button operation on the free viewing angle control button, adjusting the viewing angle of the game screen, and adjusting the orientation of the virtual object when the third button operation meets a specified condition; Wherein, when the viewing angle of the game screen is adjusted by the third button operation, the shooting direction of the virtual camera is adjusted. In the process of adjusting the shooting direction of the virtual camera by the third button operation, the shooting direction of the virtual camera is continuously adjusted accordingly under the effect of the continuous operation of the third button operation; The adjusting the orientation of the virtual object when the third button operation satisfies a specified condition includes: When the third button operation satisfies the specified condition, the orientation of the virtual object is adjusted according to the adjusted viewing angle of the game screen, wherein the adjusted viewing angle is the viewing angle determined by the third button operation.
2. The control method according to claim 1, characterized in that: The adjusting the orientation of the virtual object and adjusting the viewing angle of the game screen at the same time includes: The orientation of the virtual object is adjusted and the viewing angle of the game screen is determined according to the orientation of the virtual object.
3. The control method according to claim 1, characterized in that: The control method comprises: Controlling a free viewing angle indicator control to move within a first specified range according to the third button operation, wherein the free viewing angle indicator control is displayed on a display screen of the game screen; The specified conditions include at least one of the following: The third button operation controls the moving distance of the free viewing angle indication control to be greater than a distance threshold; The third button operation controls the free viewing angle indication control to move to a designated area.
4. The control method according to claim 3, characterized in that: The third button operation controls the moving distance of the free viewing angle indication control to be greater than a distance threshold, including: The third button operation controls the moving distance of the free viewing angle indication control to be greater than the radius of the first specified range; The figure formed by the first designated range is a circle.
5. The control method according to claim 3, characterized in that: The third button operation controls the free viewing angle indicator control to move to a specified area, including: The third button operation controls the free viewing angle indicator control to move to a second specified range; The figure formed by the first designated range is a circle, the figure formed by the second designated range is a ring, and the second designated range surrounds the first designated range.
6. The control method according to claim 4 or 5, characterized in that: The control method further comprises: An indicator mark is displayed on the display screen of the game screen, wherein the position of the indicator mark is outside the first specified range, and the indicator mark, the free viewing angle indicator control and the center of the circle are located on the same straight line.
7. The control method according to claim 1, characterized in that: When the third button operation satisfies a specified condition, adjusting the orientation of the virtual object includes: When the third button operation satisfies a specified condition, determining a rotation angle between the adjusted viewing angle of the game screen and the current orientation of the virtual object; The orientation of the virtual object is adjusted according to the rotation angle.
8. A method for controlling a virtual object in a game, wherein the virtual object performs a virtual action in the game according to an operation instruction received by a terminal device, characterized in that: The terminal device includes a touch panel, the touch panel includes a movement control area, a direction control area and a free viewing angle control area, and the control method includes: In response to a first touch operation applied to the movement control area, controlling the virtual object to move in the game scene; In response to a second touch operation applied to the orientation control area, adjusting the orientation of the virtual object and adjusting the viewing angle of the game screen at the same time; In response to a third touch operation applied to the free viewing angle control area, adjusting the viewing angle of the game screen, and adjusting the orientation of the virtual object when the third touch operation meets a specified condition; Wherein, when the viewing angle of the game screen is adjusted by the third touch operation, the shooting direction of the virtual camera is adjusted. In the process of adjusting the shooting direction of the virtual camera by the third touch operation, the shooting direction of the virtual camera is continuously adjusted accordingly under the effect of the continuous operation of the third touch operation; The adjusting the orientation of the virtual object when the third touch operation satisfies a specified condition includes: When the third touch operation satisfies the specified condition, the orientation of the virtual object is adjusted according to the adjusted viewing angle of the game screen, wherein the adjusted viewing angle is a viewing angle determined by the third touch operation.
9. The control method according to claim 8, characterized in that: The adjusting the orientation of the virtual object and adjusting the viewing angle of the game screen at the same time includes: The orientation of the virtual object is adjusted and the viewing angle of the game screen is determined according to the orientation of the virtual object.
10. The control method according to claim 8, characterized in that: The specified conditions include at least one of the following: The moving distance of the touch point on the touch panel by the third touch operation is greater than a distance threshold; The third touch operation moves the touch point on the touch panel to a designated area; The touch pressure of the third touch operation on the touch panel is greater than a pressure threshold.
11. The control method according to claim 8, characterized in that: The control method comprises: Controlling a free viewing angle indication control to move within a first specified range of the free viewing angle control area according to the third touch operation; The specified conditions include at least one of the following: The third touch operation controls the moving distance of the free viewing angle indication control to be greater than a distance threshold; The third touch operation controls the free viewing angle indication control to move to a designated area.
12. The control method according to claim 11, characterized in that: The third touch operation controls the moving distance of the free viewing angle indication control to be greater than a distance threshold, including: The third touch operation controls the moving distance of the free viewing angle indication control to be greater than the radius of the first specified range; The figure formed by the first designated range is a circle.
13. The control method according to claim 11, characterized in that: The third touch operation controls the free viewing angle indication control to move to a specified area, including: The third touch operation controls the free viewing angle indication control to move into a second specified range; The figure formed by the first designated range is a circle, the figure formed by the second designated range is a ring, and the second designated range surrounds the first designated range.
14. The control method according to claim 12 or 13, characterized in that: The control method further comprises: An indicator mark is displayed on the display screen of the game screen, wherein the position of the indicator mark is outside the first specified range, and the indicator mark, the free viewing angle indicator control and the center of the circle are located on the same straight line.
15. The control method according to claim 8, characterized in that: When the third touch operation satisfies a specified condition, adjusting the orientation of the virtual object includes: When the third touch operation satisfies a specified condition, determining a rotation angle between the adjusted viewing angle of the game screen and the current orientation of the virtual object; The orientation of the virtual object is adjusted according to the rotation angle.
16. The control method according to claim 8, characterized in that: The free viewing angle control area includes a free viewing angle control widget; The third touch operation acting on the free viewing angle control area is a touch sliding operation starting from the free viewing angle control control.
17. A terminal device, wherein a virtual object performs a virtual action in a game according to an operation instruction received by the terminal device, characterized in that: The terminal device includes operation buttons, wherein the operation buttons include a movement control button, a direction control button, and a free viewing angle control button. The terminal device includes: A control unit, configured to control the movement of the virtual object in the game scene in response to a first key operation on the movement control key; A first adjustment unit, configured to adjust the direction of the virtual object and the viewing angle of the game screen in response to a second key operation on the direction control key; a second adjustment unit, configured to adjust the viewing angle of the game screen in response to a third button operation on the free viewing angle control button, and to adjust the orientation of the virtual object when the third button operation satisfies a specified condition; Wherein, when the viewing angle of the game screen is adjusted by the third button operation, the shooting direction of the virtual camera is adjusted. In the process of adjusting the shooting direction of the virtual camera by the third button operation, the shooting direction of the virtual camera is continuously adjusted accordingly under the effect of the continuous operation of the third button operation; When the second adjustment unit is used to adjust the orientation of the virtual object when the third key operation satisfies a specified condition, it includes: When the third button operation satisfies the specified condition, the orientation of the virtual object is adjusted according to the adjusted viewing angle of the game screen, wherein the adjusted viewing angle is the viewing angle determined by the third button operation.
18. A terminal device, wherein a virtual object performs a virtual action in a game according to an operation instruction received by the terminal device, characterized in that: The terminal device includes a touch panel, the touch panel includes a movement control area, a direction control area and a free viewing angle control area, and the terminal device includes: A control unit, configured to control the movement of the virtual object in the game scene in response to a first touch operation applied to the movement control area; A first adjustment unit, configured to adjust the orientation of the virtual object and the viewing angle of the game screen in response to a second touch operation applied to the orientation control area; A second adjustment unit, configured to adjust the viewing angle of the game screen in response to a third touch operation applied to the free viewing angle control area, and to adjust the orientation of the virtual object when the third touch operation satisfies a specified condition; Wherein, when the viewing angle of the game screen is adjusted by the third touch operation, the shooting direction of the virtual camera is adjusted. In the process of adjusting the shooting direction of the virtual camera by the third touch operation, the shooting direction of the virtual camera is continuously adjusted accordingly under the effect of the continuous operation of the third touch operation; The second adjustment unit, when used for adjusting the orientation of the virtual object when the third touch operation satisfies a specified condition, includes: When the third touch operation satisfies the specified condition, the orientation of the virtual object is adjusted according to the adjusted viewing angle of the game screen, wherein the adjusted viewing angle is a viewing angle determined by the third touch operation.
19. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to execute the steps of the control method as described in any one of claims 1 to 7 or to execute the steps of the control method as described in any one of claims 8 to 16.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the control method as claimed in any one of claims 1 to 7 or the steps of the control method as claimed in any one of claims 8 to 16 are executed.
