Control method and device of virtual character in game, and electronic device
By combining touch rotation operations and non-contact rotation operations to adjust the orientation and perspective of the virtual character, the problem of complex virtual character control and many controls in the existing technology is solved, and the game control experience and interface simplicity are improved.
Patent Information
- Application Number
- CN201811347831.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-11-13
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2038-11-13
AI Technical Summary
The control method of virtual characters in existing games is complicated, and the movement direction and observation direction are separated, resulting in poor control experience, and there are many and cumbersome controls, which affects the user experience.
Through the combination of touch rotation operation and non-contact rotation operation, the orientation and perspective of the virtual character can be adjusted, reducing the control settings on the interface, and achieving a more natural control experience.
It simplifies the adjustment of the virtual character's orientation and perspective, reduces the difficulty of operation, reduces accidental touches, and improves the game experience and interface simplicity.
Smart Images

Figure CN110448898B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game control technology, and in particular to a method and device for controlling a virtual character in a game, and an electronic device. Background Art
[0002] Currently, in many games, players need to control the virtual character to move forward, backward, left and right, and also need to observe the surrounding environment. The direction of movement affects the coordinate position of the character in the scene, and the direction of observation affects the player's perspective to obtain important environmental information, so there are often different requirements for the direction of movement and the direction of observation. For example, players need to control the virtual character in the game scene to run to the destination while observing whether there is an enemy around. The current methods of controlling the direction of movement and controlling the scene of observation include joystick control and touch control control. Figure 1 (a) is a schematic diagram of a joystick control of the movement of a virtual character and the rotation of the body in the prior art. As shown in Figure 1 (a), in the joystick game, there are two joysticks on the left and right, the left joystick controls the movement, and the right joystick controls the rotation of the body. The left joystick always points forward to the current character's direction, so the joystick forward is not absolutely north. The virtual character only turns around, not turns its head. For example, if the player wants to observe behind him while moving, he needs to move the left joystick down and move "backwards". FIG1(b) is a schematic diagram of another touch-screen game in the prior art for controlling the movement and body rotation of a virtual character. As shown in FIG1(b), the mobile touch-screen game uses a dual joystick setting, with a mobile joystick provided at the lower left corner of the touch screen to control the movement of the virtual character, and the blank area on the right to control the turning of the virtual character. The up, down, left, and right directions of the left joystick do not correspond to absolute directions, but are related to the specific orientation of the character.
[0003] In most cases, the movement and direction must be consistent to provide a better control experience. The right joystick can freely control the turn, but it cannot quickly keep in line with the moving direction of the camera. Manual adjustment is required, which is cumbersome. The character does not have the performance of only turning the head (changing the direction without turning). When it is necessary to look in the opposite direction, the character can only run backwards, which is not in line with the reality and destroys the overall control experience. That is, the current turning and turning head functions cannot be unified in one area.
[0004] The most commonly used solution is to separate the head turning operation into a separate control, and distinguish between facing and moving-turning operations. Figure 2 It is a schematic diagram of a method of controlling a virtual character to turn its head to observe and turn around in the prior art, such as Figure 2As shown, a mobile control area 20 is set in the lower left corner of the touch screen, and the mobile control area is used to control the movement (including movement speed) of the virtual character 21. A turn control area 22 is set in the lower right corner of the screen, and the turning direction of the virtual character can be controlled through the turn control area; a head turning observation area 23 is set in the upper right corner of the screen, and the user can directly drag up, down, left, right, and right nearby to adjust the viewing angle, up - look up, down - look down, left - turn left, right - turn right, and return to the initial viewing angle after releasing; through the head turning observation button, the field of view of the game scene near the virtual character can be realized. This operation does not affect the player's absolute position movement and character orientation at all, and the perspective switching is completed only by turning the head. However, this method will have multiple defects, including: the two functional areas of body turning and head turning occupy and squeeze each other, the mobile interface area is limited, and it is easy to cause inconvenience or misoperation; in addition, the head turning button needs to occupy a position exclusively, and the turning operation space needs to be reserved around it, which affects the simplicity and beauty of the interface.
[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0006] The embodiments of the present application provide a method and device for controlling a virtual character in a game, and an electronic device, so as to at least solve the technical problems in the related art that controlling the orientation and viewing angle of the virtual character in the game is complex, and there are many controls, which affects the user's gaming experience.
[0007] According to one aspect of an embodiment of the present application, a method for controlling a virtual character in a game is provided, which is applied to an electronic terminal that can present a graphical user interface on a screen, wherein the graphical user interface at least partially includes a virtual character, and the control method includes: receiving a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation and a non-contact rotation operation, wherein the touch rotation operation is a touch operation that satisfies a first preset condition in response to a control medium acting on the screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to the control medium acting within a preset distance range in front of the screen; in response to the touch rotation operation, adjusting the current orientation information of the virtual character according to the touch rotation operation; in response to the non-contact rotation operation, adjusting the current viewing angle information of the virtual character according to the non-contact rotation operation.
[0008] According to another aspect of an embodiment of the present application, a method for controlling a virtual character in a game is also provided, which is applied to an electronic terminal that can present a graphical user interface on a screen, and a virtual character is at least partially included on the graphical user interface. The control method includes: receiving a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation and a non-contact rotation operation, the touch rotation operation is a touch operation that satisfies a first preset condition in response to a control medium acting on the screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to the control medium acting within a preset distance range in front of the screen; in response to the non-contact rotation operation, adjusting the current orientation information of the virtual character according to the non-contact rotation operation; in response to the touch operation, adjusting the current viewing angle information of the virtual character according to the touch rotation operation.
[0009] According to another aspect of an embodiment of the present application, a control device for a virtual character in a game is also provided, which is applied to an electronic terminal that can present a graphical user interface on a screen, and a virtual character is at least partially included on the graphical user interface. The control device includes: a first receiving unit, used to receive a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation, a non-contact rotation operation, the touch rotation operation is a touch operation that satisfies a first preset condition in response to a control medium acting on the screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to the control medium acting on a preset distance range in front of the screen; a first adjustment unit, used to respond to the touch rotation operation and adjust the current orientation information of the virtual character according to the touch rotation operation; a second adjustment unit, used to respond to the non-contact rotation operation and adjust the current viewing angle information of the virtual character according to the non-contact rotation operation.
[0010] According to another aspect of an embodiment of the present application, a control device for a virtual character in a game is also provided, which is applied to an electronic terminal that can present a graphical user interface on a screen, and a virtual character is at least partially included on the graphical user interface. The control device includes: a second receiving unit, used to receive a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation, a non-contact rotation operation, the touch rotation operation is a touch operation that satisfies a first preset condition in response to a control medium acting on the screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to the control medium acting on a preset distance range in front of the screen; a third adjustment unit, used to respond to the non-contact rotation operation and adjust the current orientation information of the virtual character according to the non-contact rotation operation; and a fourth adjustment unit, used to respond to the touch operation and adjust the current viewing angle information of the virtual character according to the touch rotation operation.
[0011] According to another aspect of an embodiment of the present application, an electronic device is also provided, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-described methods for controlling a virtual character in a game by executing the executable instructions.
[0012] According to another aspect of an embodiment of the present application, a storage medium is further provided, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute any one of the above-mentioned methods for controlling a virtual character in a game.
[0013] In an embodiment of the present application, a target rotation operation is received, wherein the target rotation operation is one of the following: a touch rotation operation and a non-contact rotation operation, wherein the touch rotation operation is a touch operation that satisfies a first preset condition in response to a manipulation medium acting on the screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to a manipulation medium acting on a preset distance range in front of the screen; in response to the touch rotation operation, the current orientation information of the virtual character is adjusted according to the touch rotation operation; in response to the non-contact rotation operation, the current perspective information of the virtual character is adjusted according to the non-contact rotation operation. The orientation and perspective of the virtual character are adjusted by combining the touch rotation operation and the non-contact rotation operation interactive operation. When adjusting, the user can perform a touch rotation operation to adjust the current orientation of the virtual character, or perform a non-contact rotation operation to adjust the current perspective of the virtual character, without the user clicking on each control on the graphical user interface, which conforms to the user's operating habits, reduces the setting of the orientation and perspective control controls on the interface, and correspondingly reduces the occurrence of user mis-touch situations, thereby solving the technical problem that the orientation and perspective of the virtual character in the game control in the related art are complex, and there are many controls, which affects the user's gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0015] FIG. 1( a ) is a schematic diagram of a joystick used in the prior art to control the movement and body rotation of a virtual character;
[0016] FIG1( b ) is a schematic diagram of controlling the movement and body rotation of a virtual character in another touch screen game in the prior art;
[0017] Figure 2 It is a schematic diagram of a method of controlling a virtual character to turn its head to observe and turn around in the prior art;
[0018] Figure 3 is a flowchart of a method for controlling a virtual character in a game according to an embodiment of the present application;
[0019] Figure 4 is a schematic diagram of setting a rotation operation area on an optional electronic terminal according to an embodiment of the present application;
[0020] FIG5( a ) is a schematic diagram 1 of a control medium for realizing touch operation according to an embodiment of the present application;
[0021] FIG. 5( b ) is a schematic diagram of a touch operation implemented by a manipulation medium according to an embodiment of the present application. Figure 2 ;
[0022] Figure 6 is a schematic diagram 1 of controlling the current orientation of a virtual character according to an embodiment of the present application;
[0023] Figure 7 Another method of controlling the current orientation of a virtual character according to an embodiment of the present application is shown in FIG. Figure 2 ;
[0024] Figure 8 This is a schematic diagram of controlling the current viewing angle of a virtual character according to an embodiment of the present application. Figure 3 ;
[0025] Fig. 9 is a flow chart of another method for controlling a virtual character in a game according to an embodiment of the present application;
[0026] Fig.10 Schematic diagram 1 of a control device for a virtual character in a game according to an embodiment of the present application;
[0027] Fig.11 is a schematic diagram of another control device for a virtual character in a game according to an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution 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, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] To facilitate users to understand this application, some of the terms or nouns involved in each embodiment of this application are explained below:
[0031] In the present application, the current orientation of the virtual character indicates the orientation of the virtual character in the game scene, and different game fields of view are presented by orientation adjustment to achieve the game goal.
[0032] Contactless operation, in this application, refers to operation without contacting the terminal screen. The operation of the control medium in front of the terminal screen is detected by the sensor (or other screen distance sensing device) carried in the terminal. The operation detected is the contactless operation. The terminal generates a corresponding control signal based on the received contactless operation, that is, the control medium does not need to contact the terminal screen, and the control command can be issued. If the control medium is a three-dimensional material, such as a finger, it can detect the place where the entire control medium is closest to the terminal screen.
[0033] The touch operation in this application refers to an operation in which a manipulation medium contacts a terminal screen. The terminal receives the operation and generates a touch instruction corresponding to the operation.
[0034] The devices or equipment used in the following embodiments of the present application may include but are not limited to: mobile terminals and fixed terminals, wherein mobile terminals include but are not limited to: mobile phones, tablet computers, laptop computers, game consoles, PDAs, and the devices and equipment in the present application may be provided with an interactive interface or interactive screen to facilitate receiving user operations.
[0035] The interactive operation in the present application includes a non-contact rotation operation (or a non-contact interactive operation) and a touch rotation operation, that is, the control medium can issue instructions through a non-contact interactive operation, and can also issue instructions through a touch rotation operation. Through the combination of the non-contact rotation operation and the touch rotation operation, the current orientation and / or current viewing angle of the virtual character in the game is adjusted. For example, the body of the virtual character is rotated through a touch rotation operation to adjust the current orientation of the virtual character, so as to observe the surrounding vision of the virtual character; the head of the virtual character is rotated through a non-contact rotation operation to adjust the current viewing angle information of the virtual character, so as to observe the surrounding vision of the virtual character. In this way, through non-contact operation, the field of view observation controls set in the game can be reduced, the occurrence of accidental touches by users during the operation process can be reduced, and the fun of the game experience can be improved.
[0036] In the present application, the body rotation is realized by touch rotation operation, and the observed field of view can be a plane moving field of view, that is, the field of view parallel to the body is observed, and the head rotation of the virtual character is realized by non-contact rotation operation, and the vertical and horizontal directions of the virtual character can be observed, and the three-dimensional field of view. Taking the virtual character as a human body as the implementation scene, for the touch rotation operation, there is only a left and right turn in the X direction (the left and right rotation angle is uncertain). After determining the left and right rotation distance or rotation vector, the direction of the virtual character in the game scene can be adjusted.
[0037] In the present application, if the control medium is a finger, the rotation direction of the virtual character can be adjusted by the action of the finger and the terminal screen (in the following embodiment, it is represented as a graphical user interface), such as determining the adjustment of the rotation direction based on whether the finger is in contact with the terminal. The present application is described in detail below through various embodiments.
[0038] Embodiment 1
[0039] According to an embodiment of the present application, an embodiment of a method for controlling a virtual character in a game is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0040] In this exemplary embodiment, a method for controlling a virtual character in a game is first disclosed, which can be applied to an electronic terminal that can present a graphical user interface on a screen, by executing a game software application on a processor of the electronic terminal and rendering the graphical user interface on a display screen of the electronic terminal, wherein the game software application can be, for example, shooting game software, treasure-hunting game software, obstacle avoidance game software, etc.
[0041] The following embodiments of the present application can adjust the current orientation and current viewing angle of the virtual character. The current orientation of the virtual character can be adjusted by a touch rotation operation, and the current viewing angle of the virtual character can be adjusted by a contactless rotation operation, wherein the current orientation can be understood as the direction corresponding to the human body of the virtual character centered on the virtual character body, and the current viewing angle can be understood as the viewing angle viewed by turning the head of the virtual character centered on the virtual character body. In this way, when adjusting the current orientation of the virtual character, it can be understood as rotating the body of the virtual character to adjust the current orientation, and when adjusting the current viewing angle of the virtual character, it can be understood as rotating the head of the virtual character to adjust the current viewing angle. In this embodiment, the presentation image of the game screen can be controlled according to the current orientation or the current viewing angle.
[0042] As an optional example of the present application, a virtual character is at least partially included on the graphical user interface, and the virtual character can be controlled by manipulating the medium.
[0043] Figure 3 is a flow chart of a method for controlling a virtual character in a game according to an embodiment of the present application. Figure 3 As shown, the method comprises the following steps:
[0044] Step S302, receiving a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation and a non-contact rotation operation, wherein the touch rotation operation is a touch operation that satisfies a first preset condition in response to a manipulation medium acting on the screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to a manipulation medium acting within a preset distance range in front of the screen.
[0045] Step S304, responding to the touch rotation operation, adjusting the current orientation information of the virtual character according to the touch rotation operation.
[0046] Step S306, responding to the non-contact rotation operation, adjusting the current viewing angle information of the virtual character according to the non-contact rotation operation.
[0047] The method provided by the above embodiment of the present application receives a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation and a non-contact rotation operation, wherein the touch rotation operation is a touch operation that satisfies a first preset condition in response to the manipulation medium acting on the screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to the manipulation medium acting on the screen in a preset distance range; in response to the touch rotation operation, the current orientation information of the virtual character is adjusted according to the touch rotation operation; in response to the non-contact rotation operation, the current perspective information of the virtual character is adjusted according to the non-contact rotation operation. The orientation and perspective of the virtual character are adjusted by combining the touch rotation operation and the non-contact rotation operation interactive operation. During the adjustment, the user can perform a touch rotation operation to adjust the current orientation of the virtual character, or perform a non-contact rotation operation to adjust the current perspective of the virtual character, without the user clicking on each control on the graphical user interface, which conforms to the user's operating habits, reduces the setting of the orientation and perspective control controls on the interface, and correspondingly reduces the occurrence of user's accidental touches, and solves the technical problem in the related art that the orientation and perspective of the virtual character in the game are complex to control, and there are many controls, which affects the user's gaming experience.
[0048] Next, combine Figures 4 to 8 Each step of the method for controlling a virtual character in a game in this exemplary embodiment is described selectively.
[0049] In this exemplary embodiment, a rotation operation area is pre-set on the graphical interaction interface. Figure 4 is a schematic diagram of setting a rotation operation area on an optional electronic terminal according to an embodiment of the present application, such as Figure 4 As shown, an application is executed on the processor of the electronic terminal 100 and rendered on the screen of the electronic terminal to obtain a graphical user interface 110. The content presented by the graphical user interface 110 at least partially includes a rotation operation area, and the rotation operation area at least includes: a touch rotation area 410 and a non-contact rotation area 412, wherein the touch rotation area 410 indicates a plane interaction area formed by a1, a2, a3, and a4. The touch rotation area 410 can be a touch interaction area set on the screen of the graphical interaction interface 110, so that the control medium can directly perform touch operations in the touch rotation area, thereby adjusting the orientation of the virtual character rendered on the graphical user interface. The touch rotation area is Figure 4The width in can be a1-a2, and the length can be a1-a4, that is, an operation area of [a1, a2][a1, a4] can be formed; of course, the specific shape of the touch rotation area is not limited in the present application. In the embodiment of the present application, a square is used as an illustration, and the shape of the touch rotation area can also be a circle, an ellipse, a rectangle, etc. Optionally, the touch rotation area can be an operation area on the terminal screen. For example, when the graphical user interface is a game interface, the touch rotation area can be set in the lower right corner of the graphical user interface, so that the control medium can directly perform touch operation on the touch rotation area on the terminal screen.
[0050] In this exemplary embodiment, since only the current orientation of the virtual character is adjusted on the touch rotation area, it can be understood here as adjusting the body rotation of the virtual character, and the virtual character will not be moved. Therefore, when the current orientation of the virtual character in the game scene is mapped out by calculating the movement of the control medium on the touch rotation area, it is only necessary to calculate the lateral change of the control medium, that is, only the movement in the X-axis direction needs to be calculated.
[0051] The non-contact rotation area 412 indicates that the manipulation medium does not touch the terminal screen, and is in the three-dimensional area in front of the screen indicated by the touch rotation area 410. Figure 4 The non-contact rotation area 412 is the area between the screen interaction areas of a1, a2, a3, a4 and the interaction areas of b1, b2, b3, b4. The control medium can be operated in this three-dimensional area. The sensor located at the terminal can detect the operation of the control medium at various angles in this area, including horizontal direction (indicating the operation defined by the X-axis), vertical direction (indicating the operation defined by the Z-axis), and oblique direction (indicating the operation defined by the Y-axis).
[0052] In this exemplary embodiment, an ultrasonic sensor or other position sensor may be embedded in the terminal to detect the position of the manipulation medium during the contactless rotation operation, thereby determining the current position of the manipulation medium and the distance between the manipulation medium and the terminal screen.
[0053] The above-mentioned touch rotation area refers to the area on the terminal screen. If the control medium performs a touch operation in the touch rotation area, when detecting the touch operation, it is necessary to detect the moving distance and moving direction of the control medium in the touch rotation area. During the detection, the action of the control medium on the two-dimensional interface of the screen will be detected, such as sliding operation, tapping operation, and long pressing operation. As for the non-contact rotation area, it refers to the part of the area in front of the screen. If you want to detect the non-contact rotation operation, you need to locate the three-dimensional coordinates of the control medium in space, that is, you need to detect the action of the control medium in the three-dimensional space, so as to determine the spatial movement length and spatial movement speed.
[0054] Step S302, receiving a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation and a non-contact rotation operation, wherein the touch rotation operation is a touch operation that satisfies a first preset condition in response to a manipulation medium acting on the screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to a manipulation medium acting within a preset distance range in front of the screen.
[0055] In this exemplary embodiment, the touch operation that satisfies the first preset condition may be a touch operation that satisfies the first preset condition when the manipulation medium acts on the touch rotation area, and the touch operation includes at least one of the following operations: sliding operation, clicking operation; and satisfying the first preset condition may mean that the movement distance of the manipulation medium on the screen reaches a preset movement distance (such as 0.1 cm), and the movement distance includes a straight line distance and a curve distance. The non-contact operation that satisfies the second preset condition may be an operation that satisfies the second preset condition when the manipulation medium acts on the non-contact rotation area, and satisfying the second preset condition may include but is not limited to: the manipulation medium levitates and slides. If the non-contact operation of the manipulation medium satisfies the preset sliding condition, the virtual character needs to be controlled to keep the current viewing angle unchanged, and the virtual character can be controlled to keep moving in the current direction, wherein the preset sliding condition includes: the manipulation medium levitates and slides twice in a row, and the levitating movement distance of the manipulation medium is greater than the preset levitating movement distance. The control medium can be hovered and slid twice continuously, which can refer to continuous hovering and sliding within a preset time (such as within 1.5s). The starting points of the two hovering and sliding can be very close. The control medium can be hovered and slid twice continuously, which means that the user wants to change the current perspective of the virtual character in the game scene at this time to observe other fields of vision around the virtual character and achieve the game goal.
[0056] In this exemplary embodiment, the method includes: when the distance value between the control medium and the screen is a first preset distance value or the screen receives a touch operation, determining that the target rotation operation is a touch rotation operation; when the distance value is greater than the first preset distance value and less than the second preset distance value, determining that the target rotation operation is a non-contact rotation operation. In other embodiments, when the screen detects a touch operation, the target rotation operation is determined to be a touch rotation operation. When determining the target rotation operation, the distance value between the control medium and the screen may be detected in advance, wherein the first preset distance value may be 0, that is, when the distance value between the control medium and the screen is 0, it is determined that the control medium touches the screen, and touch operation sensing may be implemented within the above-mentioned touch rotation area 410, thereby generating a touch movement operation. For the second preset distance value, it may be set according to the detection distance of the sensor of the terminal, such as Figure 4The second preset distance value in is A, that is, the straight line distance from a1 to b1 in front of the screen. Since the detectable distance value of each sensor is uncertain, the specific value of the second preset distance value is not limited. In the embodiment of the present application, the control medium is operated within the distance range from the first preset distance value to the second preset distance value to realize the sensing of the non-contact operation, and then determine the signal corresponding to the non-contact rotation operation.
[0057] In this exemplary embodiment, if the operating range of the control medium is outside the rotation operation area, it is regarded as an invalid operation. At the same time, if the distance between the control medium and the screen is greater than the above-mentioned second preset distance value, the action of the control medium cannot be recognized. In this embodiment of the present application, the operating position of the control medium must be within the rotation operation area.
[0058] Figure 5(a) is a schematic diagram of a touch operation implemented by a control medium according to an embodiment of the present application. As shown in Figure 5(a), on the touch rotation area 410, the control medium 51 touches the area to implement the touch operation. As shown in Figure 5(a), the control medium is a finger. Optionally, the finger in Figure 5(a) can click, slide, and perform other operations on the touch rotation area, thereby adjusting the current orientation of the virtual character in the game scene based on the touch operation, and also adjusting the field of view presented in the game scene.
[0059] FIG. 5( b ) is a schematic diagram of a touch operation implemented by a manipulation medium according to an embodiment of the present application. Figure 2 As shown in FIG5(b), in the non-contact rotation area 412, non-contact operation is achieved by controlling the medium 51. As shown in FIG5(b), the controlling medium is a user's finger. The user's finger can hover or slide in the operation area 412, and after the second preset condition is met, a non-contact rotation signal corresponding to the non-contact rotation operation is determined.
[0060] The location of the touch rotation area setting may include but is not limited to: the lower left of the graphical user interface, the lower right of the graphical user interface, and the middle of the graphical user interface; and the size of the touch rotation area can be adjusted according to the size of each terminal screen, such as setting the size of the touch rotation area to 15% of the area of the graphical user interface.
[0061] In this exemplary embodiment, a touch icon with visually visible effects (such as a circular touch icon or a square touch icon) may be rendered in a graphical user interface to present a rotation operation area, and the size of the touch icon displayed may be smaller than the size of the touch movement operation area.
[0062] In the present application, the cross-sections of the touch rotation area 410 and the non-contact rotation area 412 may overlap, that is, the interaction area of the cross-sections of the touch rotation area 410 and the non-contact rotation area 412 is not specifically limited, such as the touch rotation area 410 may include the cross-section of the non-contact rotation area 412; or, the cross-section of the non-contact rotation area 412 includes the touch rotation area 410.
[0063] Step S304, responding to the touch rotation operation, adjusting the current orientation information of the virtual character according to the touch rotation operation.
[0064] In an embodiment of the present application, adjusting the current orientation information of the virtual character according to the touch rotation operation includes: determining the current orientation information of the virtual character according to the touch rotation operation with a first sensitivity. For determining the current orientation information of the virtual character according to the touch rotation operation with a first sensitivity, the current orientation of the virtual character may be determined by the moving distance of the touch rotation operation. In other embodiments, determining the current orientation information of the virtual character according to the touch rotation operation with a first sensitivity may be determining the current orientation of the virtual character according to the touch rotation operation with a first sensitivity. The following describes in detail these two methods of controlling the current orientation of the virtual character.
[0065] In this embodiment, the first sensitivity is the first ratio of the moving distance of the touch rotation operation and the current orientation information of the virtual character, that is, the moving distance of the control medium in the touch rotation area or the non-contact rotation area is obtained, and the current orientation of the virtual character is determined according to the first ratio. In this exemplary embodiment, the first ratio of the moving distance of the touch rotation operation and the current orientation information of the virtual character can be a linear relationship, that is, the moving distance corresponds to the specific current orientation, and the rotation angle of the virtual character during adjustment can be (xt-x0)*180 degrees / moving distance. Of course, the first ratio in the embodiment of the present application can also be a nonlinear relationship, such as the left and right moving distance is 2a, and the 0-a rotation angle is less than a-2a, so that the rotation angle can be adjusted according to the needs of different users to control the current orientation of the virtual character to reach the current orientation corresponding to the current contact point.
[0066] In an example of the present application, the current orientation information of the virtual character is determined with a first sensitivity according to a touch rotation operation, including two methods. The first method is to limit the current orientation of the virtual character by the moving distance of the manipulation medium in the touch rotation area. At this time, the position of the initial contact point of the touch movement operation is not specified, and the initial contact point can indicate any point acting on the touch movement operation area. Corresponding to this method, optionally, the current orientation information of the virtual character is determined with a first sensitivity according to the touch rotation operation, including: obtaining the first contact point of the manipulation medium acting on the touch rotation area; obtaining the current contact point of the manipulation medium acting on the touch rotation area; determining the first rotation vector based on the first contact point and the current contact point; and determining the current orientation information of the virtual character with a first sensitivity according to the first rotation vector.
[0067] Through the above-mentioned embodiments, when the user controls the current orientation of the virtual character, different first sensitivities can be determined according to the current game scene. For example, on the grass, if it is necessary to check the surrounding vision around the virtual character, the body rotation of the virtual character can be controlled with the first sensitivity to adjust the current orientation of the virtual character so as to check the surrounding vision. When observing a specific virtual target, slow and precise rotation can be performed.
[0068] In the above example, the touch rotation operation area indicates that the current orientation of the virtual character is adjusted with the first sensitivity, and the current orientation of the virtual character in the game scene is indicated with the first rotation vector. In an optional implementation scenario, the control medium is clicked on the touch rotation operation area, and the touch rotation area lights up, at which time the first contact point can be determined; then, if the control medium rotates on the touch rotation operation area, the first rotation vector can be determined based on the current contact point (not the first contact type), and then the virtual character is controlled to determine the current orientation information of the virtual character with the first sensitivity.
[0069] In this exemplary embodiment, the human body is used as the implementation scenario of the virtual character, and the rotation direction of the virtual character may include: the body rotation direction and the head rotation direction of the virtual character. The body rotation direction may correspond to the current orientation of the virtual character, and the head rotation direction may correspond to the current viewing angle of the virtual character, wherein the body rotation direction indicates that the entire body of the virtual character rotates. At this time, the body does not move and may remain in the original position. Of course, the operation of the moving operation area may be combined to realize the body rotation of the virtual character and adjust the field of view in the process of controlling the movement of the virtual character. As for the head rotation direction, the virtual character may be turned. At this time, the body does not need to be rotated, but only the field of view presented in the game scene needs to be changed. The control medium may view the field of view around the virtual character through floating sliding or other methods.
[0070] Figure 61 is a schematic diagram of controlling the current orientation of a virtual character according to an embodiment of the present application. Figure 6 As shown, the first contact point of the manipulation medium in the touch rotation area is 61. After the manipulation medium performs the touch rotation operation, it reaches the current contact point 62. According to the first contact point 61 and the current contact point 62, a first rotation vector can be determined, that is, the arrow pointing from 61 to 62 indicates the rotation direction and the rotation distance; then, according to the first rotation vector and the first ratio, the current orientation of the virtual character is determined, and according to the first rotation vector, the current orientation information of the virtual character is determined with the first sensitivity; Figure 6 It is shown in the figure that the virtual character needs to be adjusted to perform a turning operation, and the current direction is adjusted from left to right. During the rotation of the virtual character, the game field of view corresponding to the current direction of the virtual character will be presented in real time.
[0071] In this application Figure 6 As shown in the content, when the virtual character turns its body to view the surrounding game field of view, the current orientation information of the virtual character can be determined with the first sensitivity.
[0072] In this exemplary embodiment, when determining the first rotation vector of the touch rotation area, it can be determined by the coordinate difference between the contact points; Figure 6 For example, after the user touches the first contact point 61, its coordinates can be determined to be (x0, y0), and after the manipulation medium rotates to the current touch point 62, the coordinates of the current contact point 62 can be determined to be (xt, yt). By calculating the coordinate difference (xt-x0, 0), the first rotation vector is determined as the basis for the rotation of the virtual character. In the embodiment of the present application, the touch rotation area only needs to consider the horizontal coordinate changes. Since there is no need to check the vertical changes, the vertical coordinate changes can be ignored during the calculation. The rotation distance can be determined by the horizontal coordinate difference (xt-x0), and then the first rotation vector is determined.
[0073] In the example of the present application, when controlling the virtual character to rotate along the first rotation vector, the first presentation field of view can be used as the starting field of view, and the presentation field of view of the game scene screen on the graphical user interface can be adjusted along the first rotation vector. At this time, if the control medium changes the contact point, a new rotation vector can be determined based on the new contact point, thereby adjusting the current direction of the virtual character again. Figure 7 Another method of controlling the current orientation of a virtual character according to an embodiment of the present application is shown in FIG. Figure 2 ,like Figure 7 As shown, after the manipulation medium moves from the current contact point 62 to the new contact point 71, a new rotation vector, that is, the rotation vector from 62 to 71, can be determined, and then the current orientation of the virtual character is adjusted with the first sensitivity according to the new rotation vector, as shown in FIG. Figure 7As shown in FIG. 1 , the virtual character needs to turn left and adjust the field of view in the game scene to move left.
[0074] When adjusting the rotation vector of the virtual character, the lateral rotation distance can be determined based on the lateral coordinate difference between the current contact point and the new contact point, and then the new rotation vector can be determined. Figure 7 For example, the coordinates of the new contact point 71 may be (x3, y3). During calculation, only the horizontal coordinates need to be calculated, that is, the horizontal distance is determined by the value of (x3-xt), and then the new rotation vector is determined according to the first ratio.
[0075] In the above embodiment, it is indicated that when the position of the first contact point is not limited, the first rotation vector is determined, and then the current orientation information of the virtual character is adjusted with the first rotation vector. In another embodiment, a predetermined point can be pre-set as the position of the first contact point, and the operation of adjusting the current orientation is triggered only after the manipulation medium touches the predetermined point. Optionally, a center button can be set in the touch rotation area, and the position of the center button is the predetermined point, and the current contact point is the contact point around the center button, and the rotation vector is defined by the distance value between the center button and the current contact point. Corresponding to this embodiment, optionally, the step of determining the current orientation information of the virtual character with the first sensitivity according to the touch rotation operation also includes: obtaining the predetermined point where the manipulation medium acts on the touch rotation area; obtaining the current contact point where the manipulation medium acts on the touch rotation area; determining the target rotation vector according to the predetermined point and the current contact point; and determining the current orientation information of the virtual character with the first sensitivity according to the second rotation vector.
[0076] The above-mentioned second implementation method is convenient for terminal detection. After the control medium acts on the predetermined point, it is only necessary to locate the final moving position of the control medium to determine the target rotation vector. In this way, when detecting, the terminal only needs to detect the position of the current contact point of the control medium. Since the position of the preset operation point is known, it is convenient to detect the rotation vector under big data.
[0077] There are two types of relationships between the moving distance of the virtual character and the touch operation. In the present embodiment, there is a first proportional relationship between the moving distance of the touch rotation operation and the current orientation information. In another embodiment, there is a preset corresponding relationship between the current orientation information of the virtual character and the first sensitivity, and the first sensitivity is the adjustment speed of the current orientation information.
[0078] The sensitivity in the embodiment of the present application may include: a first sensitivity and a second sensitivity, wherein the first sensitivity is the adjustment speed of the current orientation information; the second sensitivity is the adjustment speed of the current viewing angle information. The specific values of the first sensitivity and the second sensitivity are not limited; different sensitivities can be set according to the needs of each game software; of course, in the present application, the user can also set or adjust the sensitivity by setting controls. When the user adjusts by himself, he can adjust the horizontal axis by adjusting the horizontal axis from 0 to the maximum sensitivity adjustment value, such as the adjustment of the volume. In this way, the user can adjust the sensitivity by himself. According to the different needs of each user, the sensitivity size can be adjusted to meet the needs of different users for controlling the current orientation adjustment speed of the virtual character, thereby improving the user's interest in experiencing the game.
[0079] As an exemplary embodiment of this invention, after adjusting the current orientation information of the virtual character according to the touch rotation operation, it further includes: after detecting that the control medium leaves the touch rotation area, keeping the presentation field of the game scene screen in the graphical user interface adjusted according to the current orientation information unchanged. That is, when it is detected that the control medium leaves the touch rotation area, it means that the user does not want to adjust the current orientation of the virtual character in the game scene, and the virtual character can be stopped from moving, keeping the presentation field of the game scene screen in the graphical user interface adjusted according to the current orientation information unchanged.
[0080] The above step S304 indicates that the current orientation information of the virtual character is controlled by a touch rotation operation, and the following step S306 can control the current viewing angle information of the virtual character by a non-contact rotation operation.
[0081] Step S306, responding to the non-contact rotation operation, adjusting the current viewing angle information of the virtual character according to the non-contact rotation operation.
[0082] In an optional example of the present application, determining the current viewing angle information of the virtual character based on the non-contact rotation operation with a second sensitivity includes: obtaining an initial stagnation point of the non-contact operation acting on the non-contact rotation area; obtaining a current stagnation point of the control medium acting on the non-contact rotation area; determining a second rotation vector based on the initial stagnation point and the current stagnation point; and determining the current viewing angle information of the virtual character based on the second rotation vector with a second sensitivity.
[0083] That is, the second rotation vector can be determined based on the contact point of the control medium in the non-contact rotation area, and then the current viewing angle information of the virtual character can be determined based on the second rotation vector with the second sensitivity; in the present application, the second rotation vector can be determined based on the spatial coordinates of the initial stagnation point and the current stagnation point. Figure 8 This is a schematic diagram of controlling the current viewing angle of a virtual character according to an embodiment of the present application. Figure 3 ,like Figure 8 As shown, in the non-contact rotation area 412, the control medium can perform a non-contact rotation operation, determine the second rotation vector according to the spatial coordinates of the initial stagnation point 81 and the current stagnation point 82, and then determine the perspective rotation direction when adjusting the current perspective according to the moving distance of the touch rotation operation and the fourth ratio of the current perspective information of the virtual character ( Figure 8 from left to right) and the rotation angle.
[0084] When determining the second rotation vector, it is determined based on the coordinate difference. At this time, it is necessary to first determine the coordinates of the current stagnation point as (x0, z0, y0). After the control medium performs non-contact operation (such as floating sliding), the coordinates of the current stagnation point can be determined as (xt, zt, yt), and the second rotation vector can be determined based on the coordinate difference (xt-x0, zt-z0, yt-y0). After determining the second rotation vector, the second rotation vector can be projected into the touch movement operation area, that is, taking the projection line directly above the screen as the starting point, the second rotation vector is projected into the touch movement operation area to obtain the second rotation vector in the plane direction, and the vector is used to indicate the rotation direction of adjusting the current viewing angle.
[0085] In an optional implementation scenario, after the user's finger hovers in the non-contact rotation area for a preset time, the moving operation area can be activated. At this time, the moving operation area will be highlighted on the graphical user interface and the initial stagnation point will be determined; then, during the finger hovering and sliding process, the second movement vector will be determined.
[0086] In this exemplary embodiment, the method of determining the current viewing angle information of the virtual character with the second sensitivity according to the touch rotation operation, and then determining the viewing angle position in the game scene screen, can be determined by the operation performed by the non-contact movement operation in the preset area in front of the screen. At this time, it is necessary to determine the spatial movement point of the non-contact movement operation, and indicate the current viewing angle adjustment angle of the virtual character with the distance of the spatial movement. For example, when the virtual character is in a high-rise building and wants to observe the next floor or the place on the grass, the current viewing angle of the virtual character can be adjusted by floating sliding in the non-contact rotation area.
[0087] Among them, the amplitude of adjusting the current viewing angle of the virtual character may not be limited in this application, including but not limited to: -360 degrees to 720 degrees, that is, the virtual character body can be continuously rotated to adjust the current viewing angle of the virtual character, thereby adjusting the field of view presented in the game scene screen.
[0088] In the embodiment of the present application, after receiving the target rotation operation, in response to the target rotation operation being a non-contact rotation operation, an identification area can be displayed on the graphical user interface through a preset display mode, and the identification area corresponds to the area receiving the non-contact rotation operation, and the preset display mode includes at least one of the following modes: highlight display and stroke display. That is, the size of the rotation operation area can be displayed through the preset display mode, and when the control medium wants to adjust the current perspective of the virtual character or wants to view the field of view near the virtual character in the game scene, the non-contact rotation area can be started through a non-contact operation. When the control medium operates the non-contact rotation area (such as floating sliding), the game application can display the identification area through a preset display mode, and the identification area can overlap with the touch rotation area or not overlap with the touch rotation area, so that the user knows that the non-contact rotation area or the rotation operation area has been activated. At this time, the user can continue to operate the non-contact rotation area, so as to adjust the current perspective of the virtual character in the game scene, and can also view the field of view around the virtual character.
[0089] When the response target rotation operation is a non-contact rotation operation, an identification area is displayed on the graphical user interface through a preset display method. When the identification area corresponds to the area receiving the non-contact movement operation, it can be highlighted or stroked, so that the user can clearly understand the position and boundaries of the rotation operation area, thereby ensuring stable reception of the target rotation operation.
[0090] As another optional example of the present application, after adjusting the current viewing angle information of the virtual character according to the touch rotation operation, it also includes: after detecting that the control medium leaves the non-contact rotation area, the presentation field of view in the game scene screen adjusted according to the current viewing angle information is restored to the state before responding to the non-contact rotation operation.
[0091] It should be noted that the presentation field of view of the present application is restored to the state before responding to the non-contact rotation operation, including: controlling the presentation field of view of the game scene screen on the graphical user interface to be restored to the presentation field of view in response to the non-contact rotation operation; or, controlling the presentation field of view of the game scene screen on the graphical user interface to be restored to the presentation field of view calculated according to the presentation field of view calculation logic before the non-contact rotation operation.
[0092] Control the presentation field of view of the game scene screen on the graphical user interface to be restored to the presentation field of view in response to the non-contact rotation operation, that is, absolutely restore the presentation field of view to the state before the non-contact rotation operation: the absolute position and absolute angle / direction of the virtual camera of the game screen are restored to the state before the non-contact rotation operation, for example, before the non-contact rotation operation, the position of the virtual camera is point A in the absolute coordinates of the game scene, and the camera direction is direction vector AO; absolutely restore the presentation field of view to the state before the non-contact rotation operation based on point A and direction AO, that is, based on the position of the virtual camera in the absolute coordinates of the game scene before the non-contact rotation operation and the shooting direction in the absolute coordinates, control the presentation field of view of the game scene screen on the graphical user interface.
[0093] Control the presentation field of view of the game scene screen on the graphical user interface to be restored to the presentation field of view calculated according to the presentation field of view calculation logic before the non-contact rotation operation, that is, restore the field of view to the control state before the non-contact rotation operation, for example: before the non-contact rotation operation, the game calculates the field of view according to a predetermined calculation logic (for example: the virtual camera is set at the head of the virtual character, and rotates in the direction following the rotation of the virtual character). In this case, the field of view of the present application is restored to the state before the non-contact rotation operation, or it can be restored to calculate the field of view by using the calculation logic before the non-contact rotation operation; for example, before the non-contact rotation operation, the position of the virtual camera is point A in the relative coordinates associated with the virtual character (for example, a point at a distance W and a height H behind the virtual character), and the camera direction is the direction vector AO, which It is associated with the orientation of the virtual character and / or the direction of the weapon crosshairs (for example, the projection of the direction vector AO in the horizontal direction is the same as the orientation of the virtual character in the horizontal direction). When restoring, the position of the virtual camera is still located at a point at a distance W and a height H behind the virtual character. The shooting direction of the virtual camera is associated with the orientation of the virtual character and / or the direction of the weapon crosshairs. That is, based on the current position of the virtual character in the absolute coordinates of the game scene, the current orientation of the virtual character and / or the direction of the weapon crosshairs of the virtual character, the position relationship of the virtual camera relative to the virtual character in the game scene before the non-contact rotation operation, and the association relationship between the orientation of the virtual character and / or the direction of the weapon crosshairs of the virtual character before the non-contact rotation operation and the shooting direction of the virtual camera, the presentation field of view of the game scene screen on the graphical user interface is controlled.
[0094] The scope of protection requested in this application should at least include the above two situations.
[0095] In this exemplary embodiment, the current orientation and current viewing angle of the virtual character can be adjusted by combining touch operation with non-contact operation. The current orientation of the virtual character can be adjusted by touch operation, and the current viewing angle can be adjusted by non-contact operation, thereby reducing the overall operational difficulty of movement and observation requirements, and there is no need to set multiple viewing angle adjustment controls on the graphical user interface, thereby increasing the simplicity of the interface. At the same time, the design method in this application is more in line with the user's operating method, reduces the operating difficulty, is easy to learn, and can increase the user's interest in controlling the game.
[0096] The present application is described in detail below in conjunction with another embodiment.
[0097] Embodiment 2
[0098] The content in Example 2 of the present application corresponds to the content in Example 1, and the content controlled by the touch operation and the non-contact operation is adjusted. In this Example 2, the current viewing angle of the virtual character can be adjusted through the touch rotation operation, and the current orientation of the virtual character can be adjusted through the non-contact rotation operation.
[0099] According to another aspect of an embodiment of the present application, a method for controlling a virtual character in a game is also provided. As an optional example of the present application, a virtual character is at least partially included on a graphical user interface, and the virtual character can be controlled by manipulating a medium.
[0100] Fig. 9 FIG. 1 is a flow chart of another method for controlling a virtual character in a game according to an embodiment of the present application. Fig. 9 As shown, the method comprises the following steps:
[0101] Step S902, receiving a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation and a non-contact rotation operation, wherein the touch rotation operation is a touch operation that satisfies a first preset condition in response to a manipulation medium acting on the screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to a manipulation medium acting within a preset distance range in front of the screen;
[0102] Step S904, responding to the non-contact rotation operation, adjusting the current orientation information of the virtual character according to the non-contact rotation operation;
[0103] Step S906, responding to the touch operation, adjusting the current viewing angle information of the virtual character according to the touch rotation operation.
[0104] The method provided by the above embodiment of the present application receives a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation and a non-contact rotation operation, wherein the touch rotation operation is a touch operation that satisfies a first preset condition in response to the manipulation medium acting on the screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to the manipulation medium acting on the screen in a preset distance range; in response to the non-contact rotation operation, the current orientation information of the virtual character is adjusted according to the non-contact rotation operation; in response to the touch operation, the current perspective information of the virtual character is adjusted according to the touch rotation operation. The orientation and perspective of the virtual character are adjusted by combining the touch rotation operation and the non-contact rotation operation interactive operation. When adjusting, the user can perform a touch rotation operation to adjust the current perspective of the virtual character, or perform a non-contact rotation operation to adjust the current orientation of the virtual character, without the user clicking on each control on the graphical user interface, which conforms to the user's operating habits, reduces the setting of the orientation and perspective control controls on the interface, and correspondingly reduces the occurrence of user's accidental touches, and solves the technical problem in the related art that the orientation and perspective of the virtual character in the game are complex to control, and there are many controls, which affects the user's gaming experience.
[0105] The difference between this embodiment and the aforementioned embodiment lies only in the contents of step S904 and step S906 and step S304 and step S306, that is, in this embodiment, the current orientation information of the virtual character is adjusted by a non-contact rotation operation, and the current viewing angle information of the virtual character is adjusted by a touch operation, wherein the specific contents of adjusting the current orientation information of the virtual character by a non-contact rotation operation in step S904 are similar to the specific contents of adjusting the current viewing angle information of the virtual character by a non-contact rotation operation in step S360 in the aforementioned implementation manner, and therefore are not elaborated on. Similarly, the specific contents of step S906 and step S304 are also similar, and therefore are not elaborated on.
[0106] Optionally, the step of adjusting the current orientation information of the virtual character according to the non-contact rotation operation includes: determining the current orientation information of the virtual character with a first sensitivity according to the non-contact rotation operation; the step of adjusting the current viewing angle information of the virtual character according to the touch rotation operation includes: determining the current viewing angle information of the virtual character with a second sensitivity according to the touch rotation operation.
[0107] Optionally, the first sensitivity is a third ratio of the moving distance of the non-contact rotation operation to the current orientation information of the virtual character; the second sensitivity is a fourth ratio of the moving distance of the touch rotation operation to the current viewing angle information of the virtual character.
[0108] Optionally, the first sensitivity is an adjustment speed of current orientation information; and the second sensitivity is an adjustment speed of current viewing angle information.
[0109] Optionally, the graphical user interface includes at least: a non-contact rotation area, and determining the current orientation information of the virtual character with the first sensitivity based on the non-contact rotation operation includes: obtaining an initial stagnation point of the non-contact operation acting on the non-contact rotation area; obtaining a current stagnation point of the control medium acting on the non-contact rotation area; determining a third rotation vector based on the initial stagnation point and the current stagnation point; and determining the current orientation information of the virtual character with the first sensitivity based on the third rotation vector.
[0110] Optionally, after adjusting the current orientation information of the virtual character according to the non-contact rotation operation, it also includes: after detecting that the control medium leaves the non-contact rotation area, keeping the presentation field of the game scene screen in the graphical user interface adjusted according to the current orientation information unchanged.
[0111] Optionally, the graphical user interface also includes: a touch rotation area, and determining the current viewing angle information of the virtual character with the second sensitivity according to the touch rotation operation includes: obtaining the initial contact point of the control medium acting on the touch rotation area; obtaining the current contact point of the control medium acting on the touch rotation area; determining a fourth rotation vector based on the initial contact point and the current contact point; and determining the current viewing angle information of the virtual character with the second sensitivity according to the fourth rotation vector.
[0112] Optionally, after adjusting the current viewing angle information of the virtual character according to the touch rotation operation, it also includes: after detecting that the control medium leaves the touch rotation area, restoring the presentation field of view in the game scene screen adjusted according to the current viewing angle information to the state before responding to the touch rotation operation.
[0113] According to another aspect of an embodiment of the present application, an electronic device is also provided, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the following steps by executing the executable instructions: receiving a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation, a non-contact rotation operation, the touch rotation operation is a touch operation that satisfies a first preset condition in response to a manipulation medium acting on a screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to a manipulation medium acting within a preset distance range in front of the screen; in response to the touch rotation operation, adjusting the current orientation information of the virtual character according to the touch rotation operation; in response to the non-contact rotation operation, adjusting the current viewing angle information of the virtual character according to the non-contact rotation operation.
[0114] Optionally, the method also includes: when the distance value between the control medium and the screen is a first preset distance value or the screen receives a touch operation, determining that the target rotation operation is a touch rotation operation; when the distance value is greater than the first preset distance value and less than the second preset distance value, determining that the target rotation operation is a non-contact rotation operation.
[0115] Optionally, after receiving the target rotation operation, the method also includes: in response to the target rotation operation being a non-contact rotation operation, displaying an identification area on the graphical user interface through a preset display method, the identification area corresponding to the area receiving the non-contact rotation operation, and the preset display method includes at least one of the following methods: highlight display and stroke display.
[0116] Optionally, the step of adjusting the current orientation information of the virtual character according to the touch rotation operation includes: determining the current orientation information of the virtual character with a first sensitivity according to the touch rotation operation; the step of adjusting the current viewing angle information of the virtual character according to the non-contact rotation operation includes: determining the current viewing angle information of the virtual character with a second sensitivity according to the non-contact rotation operation.
[0117] Optionally, the first sensitivity is a first ratio of the moving distance of the touch rotation operation to the current orientation information of the virtual character; the second sensitivity is a second ratio of the moving distance of the non-contact rotation operation to the current viewing angle information of the virtual character.
[0118] Optionally, the first sensitivity is an adjustment speed of current orientation information; and the second sensitivity is an adjustment speed of current viewing angle information.
[0119] Optionally, the graphical user interface includes at least: a touch rotation area, and determining the current orientation information of the virtual character with a first sensitivity based on the touch rotation operation includes: obtaining a first contact point of the control medium acting on the touch rotation area; obtaining a current contact point of the control medium acting on the touch rotation area; determining a first rotation vector based on the first contact point and the current contact point; and determining the current orientation information of the virtual character with a first sensitivity based on the first rotation vector.
[0120] Optionally, after adjusting the current orientation information of the virtual character according to the touch rotation operation, the method further includes: after detecting that the control medium leaves the touch rotation area, maintaining the presentation field of the game scene screen in the graphical user interface adjusted according to the current orientation information unchanged.
[0121] Optionally, the graphical user interface also includes: a non-contact rotation area, and determining the current viewing angle information of the virtual character based on the non-contact rotation operation with a second sensitivity includes: obtaining an initial stagnation point of the non-contact operation acting on the non-contact rotation area; obtaining a current stagnation point of the control medium acting on the non-contact rotation area; determining a second rotation vector based on the initial stagnation point and the current stagnation point; and determining the current viewing angle information of the virtual character based on the second rotation vector with a second sensitivity.
[0122] Optionally, after adjusting the current viewing angle information of the virtual character according to the non-contact rotation operation, it also includes: after detecting that the control medium leaves the non-contact rotation area, restoring the presentation field of view in the game scene screen adjusted according to the current viewing angle information to a state before responding to the non-contact rotation operation.
[0123] According to another aspect of an embodiment of the present application, an electronic device is also provided, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the following steps by executing the executable instructions: receiving a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation, a non-contact rotation operation, the touch rotation operation is a touch operation that satisfies a first preset condition in response to a manipulation medium acting on a screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to a manipulation medium acting within a preset distance range in front of the screen; in response to the non-contact rotation operation, adjusting the current orientation information of the virtual character according to the non-contact rotation operation; in response to the touch operation, adjusting the current viewing angle information of the virtual character according to the touch rotation operation.
[0124] Optionally, the step of adjusting the current orientation information of the virtual character according to the non-contact rotation operation includes: determining the current orientation information of the virtual character with a first sensitivity according to the non-contact rotation operation; the step of adjusting the current viewing angle information of the virtual character according to the touch rotation operation includes: determining the current viewing angle information of the virtual character with a second sensitivity according to the touch rotation operation.
[0125] Optionally, the first sensitivity is a third ratio of the moving distance of the non-contact rotation operation to the current orientation information of the virtual character; the second sensitivity is a fourth ratio of the moving distance of the touch rotation operation to the current viewing angle information of the virtual character.
[0126] Optionally, the first sensitivity is an adjustment speed of current orientation information; and the second sensitivity is an adjustment speed of current viewing angle information.
[0127] Optionally, the graphical user interface includes at least: a non-contact rotation area, and determining the current orientation information of the virtual character with the first sensitivity based on the non-contact rotation operation includes: obtaining an initial stagnation point of the non-contact operation acting on the non-contact rotation area; obtaining a current stagnation point of the control medium acting on the non-contact rotation area; determining a third rotation vector based on the initial stagnation point and the current stagnation point; and determining the current orientation information of the virtual character with the first sensitivity based on the third rotation vector.
[0128] Optionally, after adjusting the current orientation information of the virtual character according to the non-contact rotation operation, it also includes: after detecting that the control medium leaves the non-contact rotation area, keeping the presentation field of the game scene screen in the graphical user interface adjusted according to the current orientation information unchanged.
[0129] Optionally, the graphical user interface also includes: a touch rotation area, and determining the current viewing angle information of the virtual character with the second sensitivity according to the touch rotation operation includes: obtaining the initial contact point of the control medium acting on the touch rotation area; obtaining the current contact point of the control medium acting on the touch rotation area; determining a fourth rotation vector based on the initial contact point and the current contact point; and determining the current viewing angle information of the virtual character with the second sensitivity according to the fourth rotation vector.
[0130] Optionally, after adjusting the current viewing angle information of the virtual character according to the touch rotation operation, it also includes: after detecting that the control medium leaves the touch rotation area, restoring the presentation field of view in the game scene screen adjusted according to the current viewing angle information to the state before responding to the touch rotation operation.
[0131] The electronic device provided by the above-mentioned implementation mode can adjust the current direction and current viewing angle of the virtual character by combining touch operation with non-contact operation. The current viewing angle of the virtual character can be adjusted by touch operation, and the current direction can be adjusted by non-contact operation, thereby reducing the overall operational difficulty of movement-observation requirements, and there is no need to set multiple viewing angle adjustment controls on the graphical user interface, thereby increasing the simplicity of the interface. At the same time, the design method in the present application is more in line with the user's operating method, reduces the operating difficulty, is easy to learn, and can increase the user's interest in controlling the game.
[0132] According to another aspect of an embodiment of the present application, a storage medium is also provided, the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to perform the following steps: receiving a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation, a non-contact rotation operation, the touch rotation operation is a touch operation that satisfies a first preset condition in response to a manipulation medium acting on a screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to a manipulation medium acting within a preset distance range in front of the screen; in response to the touch rotation operation, adjusting the current orientation information of the virtual character according to the touch rotation operation; in response to the non-contact rotation operation, adjusting the current viewing angle information of the virtual character according to the non-contact rotation operation.
[0133] Optionally, the method also includes: when the distance value between the control medium and the screen is a first preset distance value or the screen receives a touch operation, determining that the target rotation operation is a touch rotation operation; when the distance value is greater than the first preset distance value and less than the second preset distance value, determining that the target rotation operation is a non-contact rotation operation.
[0134] Optionally, after receiving the target rotation operation, the method also includes: in response to the target rotation operation being a non-contact rotation operation, displaying an identification area on the graphical user interface through a preset display method, the identification area corresponding to the area receiving the non-contact rotation operation, and the preset display method includes at least one of the following methods: highlight display and stroke display.
[0135] Optionally, the step of adjusting the current orientation information of the virtual character according to the touch rotation operation includes: determining the current orientation information of the virtual character with a first sensitivity according to the touch rotation operation; the step of adjusting the current viewing angle information of the virtual character according to the non-contact rotation operation includes: determining the current viewing angle information of the virtual character with a second sensitivity according to the non-contact rotation operation.
[0136] Optionally, the first sensitivity is a first ratio of the moving distance of the touch rotation operation to the current orientation information of the virtual character; the second sensitivity is a second ratio of the moving distance of the non-contact rotation operation to the current viewing angle information of the virtual character.
[0137] Optionally, the first sensitivity is an adjustment speed of current orientation information; and the second sensitivity is an adjustment speed of current viewing angle information.
[0138] Optionally, the graphical user interface includes at least: a touch rotation area, and determining the current orientation information of the virtual character with a first sensitivity based on the touch rotation operation includes: obtaining a first contact point of the control medium acting on the touch rotation area; obtaining a current contact point of the control medium acting on the touch rotation area; determining a first rotation vector based on the first contact point and the current contact point; and determining the current orientation information of the virtual character with a first sensitivity based on the first rotation vector.
[0139] Optionally, after adjusting the current orientation information of the virtual character according to the touch rotation operation, the method further includes: after detecting that the control medium leaves the touch rotation area, maintaining the presentation field of the game scene screen in the graphical user interface adjusted according to the current orientation information unchanged.
[0140] Optionally, the graphical user interface also includes: a non-contact rotation area, and determining the current viewing angle information of the virtual character based on the non-contact rotation operation with a second sensitivity includes: obtaining an initial stagnation point of the non-contact operation acting on the non-contact rotation area; obtaining a current stagnation point of the control medium acting on the non-contact rotation area; determining a second rotation vector based on the initial stagnation point and the current stagnation point; and determining the current viewing angle information of the virtual character based on the second rotation vector with a second sensitivity.
[0141] Optionally, after adjusting the current viewing angle information of the virtual character according to the non-contact rotation operation, it also includes: after detecting that the control medium leaves the non-contact rotation area, restoring the presentation field of view in the game scene screen adjusted according to the current viewing angle information to a state before responding to the non-contact rotation operation.
[0142] According to another aspect of an embodiment of the present application, a storage medium is also provided, the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to perform the following steps: receiving a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation, a non-contact rotation operation, the touch rotation operation is a touch operation that satisfies a first preset condition in response to a manipulation medium acting on a screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to a manipulation medium acting within a preset distance range in front of the screen; in response to the non-contact rotation operation, adjusting the current orientation information of the virtual character according to the non-contact rotation operation; in response to the touch operation, adjusting the current viewing angle information of the virtual character according to the touch rotation operation.
[0143] Optionally, the step of adjusting the current orientation information of the virtual character according to the non-contact rotation operation includes: determining the current orientation information of the virtual character with a first sensitivity according to the non-contact rotation operation; the step of adjusting the current viewing angle information of the virtual character according to the touch rotation operation includes: determining the current viewing angle information of the virtual character with a second sensitivity according to the touch rotation operation.
[0144] Optionally, the first sensitivity is a third ratio of the moving distance of the non-contact rotation operation to the current orientation information of the virtual character; the second sensitivity is a fourth ratio of the moving distance of the touch rotation operation to the current viewing angle information of the virtual character.
[0145] Optionally, the first sensitivity is an adjustment speed of current orientation information; and the second sensitivity is an adjustment speed of current viewing angle information.
[0146] Optionally, the graphical user interface includes at least: a non-contact rotation area, and determining the current orientation information of the virtual character with the first sensitivity based on the non-contact rotation operation includes: obtaining an initial stagnation point of the non-contact operation acting on the non-contact rotation area; obtaining a current stagnation point of the control medium acting on the non-contact rotation area; determining a third rotation vector based on the initial stagnation point and the current stagnation point; and determining the current orientation information of the virtual character with the first sensitivity based on the third rotation vector.
[0147] Optionally, after adjusting the current orientation information of the virtual character according to the non-contact rotation operation, it also includes: after detecting that the control medium leaves the non-contact rotation area, keeping the presentation field of the game scene screen in the graphical user interface adjusted according to the current orientation information unchanged.
[0148] Optionally, the graphical user interface also includes: a touch rotation area, and determining the current viewing angle information of the virtual character with the second sensitivity according to the touch rotation operation includes: obtaining the initial contact point of the control medium acting on the touch rotation area; obtaining the current contact point of the control medium acting on the touch rotation area; determining a fourth rotation vector based on the initial contact point and the current contact point; and determining the current viewing angle information of the virtual character with the second sensitivity according to the fourth rotation vector.
[0149] Optionally, after adjusting the current viewing angle information of the virtual character according to the touch rotation operation, it also includes: after detecting that the control medium leaves the touch rotation area, restoring the presentation field of view in the game scene screen adjusted according to the current viewing angle information to the state before responding to the touch rotation operation.
[0150] The present application is described below in conjunction with another optional embodiment.
[0151] Embodiment 3
[0152] Fig.10 1 is a schematic diagram of a control device for a virtual character in a game according to an embodiment of the present application, which is applied to an electronic terminal capable of presenting a graphical user interface on a screen, and the graphical user interface at least partially includes a virtual character, such as Fig.10 As shown, the control device includes: a first receiving unit 1001, a first adjusting unit 1002, and a second adjusting unit 1003, wherein:
[0153] The first receiving unit 1001 is used to receive a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation and a non-contact rotation operation, wherein the touch rotation operation is a touch operation that satisfies a first preset condition in response to a manipulation medium acting on the screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to a manipulation medium acting within a preset distance range in front of the screen;
[0154] A first adjustment unit 1002, configured to respond to a touch rotation operation and adjust current orientation information of the virtual character according to the touch rotation operation;
[0155] The second adjustment unit 1003 is used to respond to the non-contact rotation operation and adjust the current viewing angle information of the virtual character according to the non-contact rotation operation.
[0156] The control device for the virtual character in the above-mentioned game adjusts the direction and perspective of the virtual character by combining the touch rotation operation and the contactless rotation operation interactive operation. When adjusting, the user can perform a touch rotation operation to adjust the current direction of the virtual character, or perform a contactless rotation operation to adjust the current perspective of the virtual character. The user does not need to click on each control on the graphical user interface, which conforms to the user's operating habits, reduces the setting of the direction and perspective control controls on the interface, and correspondingly reduces the occurrence of accidental touches by the user, thereby solving the technical problem in the related technology that the direction and perspective of the virtual character in the game are complex to control and there are many controls, which affects the user's gaming experience.
[0157] Fig.11 is a schematic diagram of another control device for a virtual character in a game according to an embodiment of the present application Figure 2 , applied to an electronic terminal capable of presenting a graphical user interface on a screen, wherein the graphical user interface at least partially includes a virtual character, such as Fig.11 As shown, the control device includes: a second receiving unit 1101, a third adjusting unit 1102, and a fourth adjusting unit 1103, wherein:
[0158] The second receiving unit 1101 is used to receive a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation and a contactless rotation operation, wherein the touch rotation operation is a touch operation that satisfies a first preset condition in response to a manipulation medium acting on the screen, and the contactless rotation operation is a contactless operation that satisfies a second preset condition in response to a manipulation medium acting within a preset distance range in front of the screen;
[0159] The third adjustment unit 1102 is used to respond to the non-contact rotation operation and adjust the current orientation information of the virtual character according to the non-contact rotation operation;
[0160] The fourth adjustment unit 1103 is used to respond to the touch operation and adjust the current viewing angle information of the virtual character according to the touch rotation operation.
[0161] The control device for the virtual character in the above-mentioned game receives a target rotation operation through the second receiving unit 1101, wherein the target rotation operation is one of the following: a touch rotation operation and a non-contact rotation operation, wherein the touch rotation operation is a touch operation that satisfies a first preset condition in response to the manipulation medium acting on the screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to the manipulation medium acting within a preset distance range in front of the screen; responds to the non-contact rotation operation through the third adjustment unit 1102, and adjusts the current orientation information of the virtual character according to the non-contact rotation operation; responds to the touch operation through the fourth adjustment unit 1103, and adjusts the current viewing angle information of the virtual character according to the touch rotation operation. The orientation and viewing angle of a virtual character can be adjusted by combining touch rotation operation and non-contact rotation operation. When adjusting, the user can perform a touch rotation operation to adjust the current viewing angle of the virtual character, or perform a non-contact rotation operation to adjust the current orientation of the virtual character. The user does not need to click on each control on a graphical user interface, which conforms to the user's operating habits, reduces the setting of orientation and viewing angle control controls on the interface, and correspondingly reduces the occurrence of accidental touches by the user, thereby solving the technical problem in related technologies that the orientation and viewing angle of virtual characters in games are complex to control and there are many controls, which affects the user's gaming experience.
[0162] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0163] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0164] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be 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 interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0165] 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 over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0166] In addition, each functional unit in each embodiment of 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0167] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0168] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for controlling a virtual character in a game, applied to an electronic terminal capable of presenting a graphical user interface on a screen, characterized in that: A virtual character is at least partially included on the graphical user interface, and the control method includes: Receiving a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation and a non-contact rotation operation, wherein the touch rotation operation is a touch operation that satisfies a first preset condition in response to a manipulation medium acting on the screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to the manipulation medium acting within a preset distance range in front of the screen; In response to the touch-rotation operation, adjusting the current orientation information of the virtual character according to the touch-rotation operation; In response to the non-contact rotation operation, adjusting the current viewing angle information of the virtual character according to the non-contact rotation operation; Wherein, the non-contact rotation operation is used to control the rotation of the head of the virtual character; There is an overlapping area between the cross section of the touch rotation area of the touch rotation operation and the cross section of the non-contact rotation area of the non-contact rotation operation.
2. The control method according to claim 1, characterized in that: The method further comprises: When the distance between the control medium and the screen is a first preset distance value or the screen receives a touch operation, determining that the target rotation operation is the touch rotation operation; When the distance value is greater than the first preset distance value and less than the second preset distance value, the target rotation operation is determined to be the non-contact rotation operation.
3. The control method according to claim 1, characterized in that: After receiving the target rotation operation, the method further includes: In response to the target rotation operation being the non-contact rotation operation, an identification area is displayed on the graphical user interface in a preset display mode, wherein the identification area corresponds to the area receiving the non-contact rotation operation, and the preset display mode includes at least one of the following modes: highlight display and stroke display.
4. The control method according to claim 1, characterized in that: The step of adjusting the current orientation information of the virtual character according to the touch rotation operation includes: determining the current orientation information of the virtual character with a first sensitivity according to the touch rotation operation; The step of adjusting the current viewing angle information of the virtual character according to the non-contact rotation operation includes: determining the current viewing angle information of the virtual character with a second sensitivity according to the non-contact rotation operation.
5. The control method according to claim 4, characterized in that: The first sensitivity is a first ratio of the moving distance of the touch rotation operation to the current orientation information of the virtual character; the second sensitivity is a second ratio of the moving distance of the non-contact rotation operation to the current viewing angle information of the virtual character.
6. The control method according to claim 4, characterized in that: The first sensitivity is the adjustment speed of the current orientation information; the second sensitivity is the adjustment speed of the current viewing angle information.
7. The control method according to claim 4, characterized in that: The graphical user interface at least includes: a touch rotation area, and the determining the current orientation information of the virtual character with a first sensitivity according to the touch rotation operation includes: Acquire a first contact point of the control medium acting on the touch rotation area; Acquire a current contact point of the control medium on the touch rotation area; Determining a first rotation vector according to the first contact point and the current contact point; The current orientation information of the virtual character is determined according to the first rotation vector with the first sensitivity.
8. The control method according to claim 7, characterized in that: After adjusting the current orientation information of the virtual character according to the touch rotation operation, the method further includes: After detecting that the control medium leaves the touch rotation area, the presentation field of the game scene screen in the graphical user interface adjusted according to the current orientation information is kept unchanged.
9. The control method according to claim 4, characterized in that: The graphical user interface further includes: a non-contact rotation area, and the determining of the current viewing angle information of the virtual character with a second sensitivity according to the non-contact rotation operation includes: Obtaining an initial stagnation point of the non-contact operation acting on the non-contact rotation area; Acquire a current stagnation point of the control medium acting on the non-contact rotation area; Determining a second rotation vector according to the initial stagnation point and the current stagnation point; The current viewing angle information of the virtual character is determined according to the second rotation vector with the second sensitivity.
10. The control method according to claim 9, characterized in that: After adjusting the current viewing angle information of the virtual character according to the non-contact rotation operation, the method further includes: After detecting that the control medium leaves the non-contact rotation area, the presentation field of view in the game scene screen adjusted according to the current viewing angle information is restored to a state before responding to the non-contact rotation operation.
11. A control device for a virtual character in a game, applied to an electronic terminal capable of presenting a graphical user interface on a screen, characterized in that: A virtual character is at least partially included on the graphical user interface, and the control device includes: A first receiving unit is used to receive a target rotation operation, wherein the target rotation operation is one of the following: a touch rotation operation and a non-contact rotation operation, wherein the touch rotation operation is a touch operation that satisfies a first preset condition in response to a manipulation medium acting on the screen, and the non-contact rotation operation is a non-contact operation that satisfies a second preset condition in response to the manipulation medium acting within a preset distance range in front of the screen; A first adjustment unit, configured to respond to the touch rotation operation and adjust the current orientation information of the virtual character according to the touch rotation operation; A second adjustment unit, configured to respond to the non-contact rotation operation and adjust the current viewing angle information of the virtual character according to the non-contact rotation operation; Wherein, the non-contact rotation operation is used to control the rotation of the head of the virtual character; There is an overlapping area between the cross section of the touch rotation area of the touch rotation operation and the cross section of the non-contact rotation area of the non-contact rotation operation.
12. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the method for controlling a virtual character in a game as described in any one of claims 1 to 10 by executing the executable instructions.
13. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the method for controlling a virtual character in a game as described in any one of claims 1 to 10.
