Game virtual character control method and device, storage medium and electronic device

By setting up a virtual joystick area on the touch screen and using sliding operations and weight calculations in different directions, it solves the problem of players having difficulty controlling movement and rotation of the perspective at the same time in 3D mobile games, and improves the gaming experience.

CN112245908BActive Publication Date: 2024-09-20NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202011233649.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-06
Publication Date
2024-09-20
Estimated Expiration
2040-11-06

AI Technical Summary

Technical Problem

In 3D mobile games, it is difficult for players to control the movement and rotation of virtual characters at the same time, making it impossible to perform other operations at the same time, such as releasing skills or attacking, which affects the game experience.

Method used

By setting up a virtual joystick area on the touch screen, sliding operations in different directions are used to control the character movement and rotation of the perspective. The weight calculation of the sliding operation is used to realize the function of moving and rotating the perspective at the same time, and the operation process is optimized by switching control modes. .

Benefits of technology

It is possible to move and rotate the perspective in the same area without the need for two joysticks, improving the player's operational consistency and gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112245908B
    Figure CN112245908B
Patent Text Reader

Abstract

The present disclosure relates to the field of game technology, and in particular to a method and device for controlling a game virtual character, a computer-readable storage medium, and an electronic device, wherein the method comprises: controlling the movement of the game virtual character in response to a first sliding operation in a first control area, wherein the first sliding operation is a sliding operation along a first specified direction; controlling the rotation of the game virtual character in response to a second sliding operation in the first control area, wherein the second sliding operation is a sliding operation along a second specified direction. Through the technical solution of the embodiments of the present disclosure, the movement and rotation of the virtual character can be controlled in the same area.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the development of mobile smart terminals and the gaming industry, a large number of mobile games of different themes have emerged to meet the needs of players. In various game applications, it is usually necessary to aim at a target and perform a specified virtual action on the target.

[0003] In 3D mobile games, players usually need to control the movement and rotation of the game virtual character. In existing solutions, two joysticks are usually set on the mobile phone screen, one joystick is used to control the movement of the character, and the other joystick is used to control the rotation of the character.

[0004] However, when the player controls the virtual character in the game to move and rotate the perspective at the same time, other operations (such as releasing skills, attacking, etc.) cannot be completed. The player can only stop moving or rotating the perspective to perform other operations. This operation method will greatly affect the player's gaming experience.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The purpose of the present disclosure is to provide a method and device for controlling a game virtual character, a computer-readable storage medium, and an electronic device, which can control the movement and rotation of the character through sliding operations in different directions in the same area.

[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0008] According to a first aspect of the present disclosure, a method for controlling a game virtual character is provided, which is applied to a mobile terminal that displays a graphical user interface on a touch screen, and is characterized in that the graphical user interface includes a virtual joystick area, and the virtual joystick area includes a first control area, including: in response to a first sliding operation of the first control area, controlling the movement of the game virtual character, and the first sliding operation is a sliding operation along a first specified direction; in response to a second sliding operation of the first control area, controlling the rotation of the viewing angle of the game virtual character, and the second sliding operation is a sliding operation along a second specified direction; the first specified direction is different from the second specified direction.

[0009] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the method further includes: in response to a third sliding operation of the first control area, controlling the movement and rotation of the game virtual character; the third sliding operation is not a sliding operation along the first specified direction or a sliding operation along the second specified direction.

[0010] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the control area includes a second control area and a third control area, the game virtual character includes a movement control mode and a rotation perspective control mode, and the method also includes: detecting a fourth sliding operation from the first control area to the second control area, controlling the game virtual character to switch to the rotation perspective control mode; detecting a fifth sliding operation from the first control area to the third control area, controlling the game virtual character to switch to the movement control mode.

[0011] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the game virtual character includes a movement control mode and a rotation perspective control mode, and the control of the game virtual character to move and rotate the perspective includes: obtaining a first control weight of the movement control mode and a second control weight of the rotation perspective control mode according to the third sliding operation; and controlling the movement and rotation of the game virtual character according to the first control weight and the second weight.

[0012] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, obtaining the first control weight of the mobile control mode and the second control weight of the rotation angle control mode according to the third sliding operation includes: detecting the distance between the real-time touch position of the third sliding operation and the edge of the first control area; determining the first control weight of the mobile control mode and the second control weight of the rotation angle control mode according to the distance.

[0013] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, obtaining the first control weight of the mobile control mode and the second control weight of the rotation angle control mode according to the third sliding operation includes: calculating the slope of the trajectory of the third sliding operation in real time, wherein the slope of the path is the slope of the line between the starting point of the third sliding operation and the real-time touch position of the third sliding operation; determining the first control weight of the mobile control mode and the second control weight of the rotation angle control mode according to the slope.

[0014] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the virtual joystick area includes a first ellipse and a second ellipse, the first ellipse is the same as the second ellipse, the position of the center of the first ellipse is the same as the position of the center of the second ellipse, and the first control area is the overlapping area of ​​the first ellipse and the second ellipse.

[0015] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the virtual joystick area also includes a circle with the major axis of the first ellipse as its diameter, the second control area is the area of ​​the first ellipse excluding the overlapping area, and the third control area is the area of ​​the circle excluding the first ellipse area; wherein the major axis of the first ellipse is parallel to the first specified direction.

[0016] According to a second aspect of the present disclosure, a control device for a virtual character in a virtual game is provided, which is applied to a mobile terminal that displays a graphical user interface on a touch screen, and is characterized in that the graphical user interface includes a virtual joystick area, and the virtual joystick area includes a first control area. The device includes: a movement control module, which is used to control the movement of the virtual character in the game in response to a first sliding operation of the first control area, and the first sliding operation is a sliding operation along a first specified direction; and a perspective control module, which is used to control the rotation of the perspective of the virtual character in the game in response to a second sliding operation of the first control area, and the second sliding operation is a sliding operation along a second specified direction.

[0017] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method for controlling a game virtual character as described in the first aspect of the above embodiment is implemented.

[0018] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:

[0019] Processor; and

[0020] A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the control method of the game virtual character as described in the first aspect of the above embodiment.

[0021] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0022] In a control method for a virtual game character provided in an embodiment of the present disclosure, the movement of the virtual game character can be controlled according to a first sliding operation, and the rotation of the perspective of the virtual game character can be controlled according to a second sliding operation in the same area. On the one hand, the movement and rotation of the perspective of the virtual game character can be controlled in the same area, that is, the movement and rotation of the perspective can be completed without two joysticks, and the virtual game character can be controlled to perform other actions; on the other hand, the player can control the movement, rotation of the perspective, and other actions (releasing skills, attacking, etc.) of the virtual game character at the same time, so that the player's operation has better coherence and improves the player's gaming experience.

[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0025] Figure 1 A flowchart schematically illustrating a method for controlling a game virtual character in an exemplary embodiment of the present disclosure;

[0026] Figure 2 A schematic diagram schematically illustrates a user graphical interface in an exemplary embodiment of the present disclosure;

[0027] Figure 3 A schematic diagram schematically illustrates a first sliding operation for controlling the movement of a game virtual character in an exemplary embodiment of the present disclosure;

[0028] Figure 4 A schematic diagram schematically illustrates a second sliding operation for controlling a game virtual character to rotate a viewing angle in an exemplary embodiment of the present disclosure;

[0029] Figure 5 A schematic diagram schematically illustrates a third sliding operation for controlling a game virtual character to move and rotate a viewing angle in an exemplary embodiment of the present disclosure;

[0030] Figure 6 A flowchart schematically illustrates controlling a game virtual character according to control weights of different control modes in an exemplary embodiment of the present disclosure;

[0031] Figure 7 A schematic diagram schematically illustrates controlling the movement of a game virtual character according to changes in two coordinate points in an exemplary embodiment of the present disclosure;

[0032] Figure 8 A flowchart schematically illustrates a method of determining a first control weight and a second control weight according to a distance between a real-time touch position and an edge of a first control area in an exemplary embodiment of the present disclosure;

[0033] Fig. 9 A schematic diagram schematically illustrates determining the first control weight and the second control weight according to the distance between the real-time touch position and the edge of the first control area in an exemplary embodiment of the present disclosure;

[0034] Fig.10A flowchart of determining a first control weight and a second control weight according to a touch position in an exemplary embodiment of the present disclosure is schematically shown;

[0035] Fig.11 A schematic diagram schematically illustrates determining a first control weight and a second control weight based on a trajectory of a third sliding operation in an exemplary embodiment of the present disclosure;

[0036] Fig.12 A flowchart schematically illustrates a control mode switching operation of sliding from a first control area to a second control area or a third control area in an exemplary embodiment of the present disclosure;

[0037] Fig.13 A schematic diagram schematically illustrates switching of control modes according to a fourth sliding operation and a fifth sliding operation in an exemplary embodiment of the present disclosure;

[0038] Fig.14 A schematic diagram schematically illustrates a virtual joystick area in an exemplary embodiment of the present disclosure;

[0039] Fig.15 A schematic diagram schematically showing another virtual joystick area in an exemplary embodiment of the present disclosure;

[0040] Fig.16 A schematic diagram schematically shows the composition of a control device for a game virtual character in an exemplary embodiment of the present disclosure;

[0041] Fig.17 The structure diagram of a computer system suitable for implementing the electronic device of the exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0042] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concept of the example embodiments will be fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In addition, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known structures, methods, devices, implementations, materials, or operations are not shown or described in detail to avoid blurring various aspects of the present disclosure.

[0043] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or these functional entities or parts of functional entities may be implemented in one or more software hardened modules, or these functional entities may be implemented in different networks and / or processor devices and / or microcontroller devices.

[0044] With the development of the Internet industry, the gaming industry has also developed rapidly. In order to cater to the needs of players, game merchants have designed various games that can be configured on terminal devices.

[0045] This exemplary embodiment provides a control scheme for a game virtual character, which can obtain a graphical user interface by executing application software on a processor of a terminal device and rendering it on a display of the terminal device. The terminal device can be an electronic device with a display screen, such as a computer, a tablet computer, a smart phone, etc., or a terminal device such as a game console, a VR device, etc., including a memory for storing data and a processor for processing data, installing game application software through the memory, and executing the corresponding game program through the processor, so as to realize the operation of the game program on the terminal device.

[0046] In this exemplary embodiment, the above-mentioned graphical user interface is used to display the game interface, and can be presented in whole or in part in the display area of ​​the terminal device. The graphical user interface includes skill controls and common attack controls of the game virtual character. The game virtual character refers to the game character controlled by the player, such as a person, animal, object, etc.; the skill control refers to the operation control for controlling the release of skills, such as a virtual button containing a skill icon, and the player can control the virtual character to release the corresponding game skill by clicking the button; the common attack control refers to the operation space for controlling the common attack of the game virtual character, which can be a virtual button containing a common attack icon, and the player can control the game virtual character to perform different attacks by clicking the button.

[0047] The control scheme for the game virtual character in this exemplary embodiment can be applied to various game scenes that require control of the game virtual character. For example, TPS (third-person perspective shooting), FPS (first-person perspective shooting), RPG (role-playing game), ACT (action game), SLG (strategy game), FTG (fighting game), SPG (sports competitive game), RCG (racing game), AVG (adventure game), etc., as long as it involves the scene of movement and rotation of the game virtual character, the control scheme of the game virtual character disclosed in this disclosure can be applied. In the embodiment of the present disclosure, the FPS game will be taken as an example to explain the scheme of the present disclosure in detail.

[0048] refer to Figure 1As shown, a flow chart of the skill control method in this exemplary embodiment is shown, which is applied to a mobile terminal that displays a graphical user interface on a touch screen, characterized in that the graphical user interface includes a virtual joystick area, the virtual joystick area includes a first control area, and can include the following steps:

[0049] Step S110: In response to a first sliding operation in a first control area, controlling the game virtual character to move, the first sliding operation being a sliding operation along a first specified direction;

[0050] Step S120: In response to a second sliding operation in the first control area, controlling the game virtual character to rotate the viewing angle, the second sliding operation is a sliding operation along a second designated direction, and the first designated direction is different from the second designated direction.

[0051] According to the control method of the game virtual character provided in this exemplary embodiment, the game virtual character can be controlled to move according to the first sliding operation, and the game virtual character can be controlled to rotate the perspective according to the second sliding operation in the same area. On the one hand, the game virtual character can be controlled to move and rotate the perspective in the same area, that is, the movement and rotation of the perspective can be completed without two joysticks, and the game virtual character can be controlled to perform other actions; on the other hand, the player can control the virtual game character to move, rotate the perspective, and perform other actions at the same time, so that the player's operation has better consistency and improves the player's gaming experience.

[0052] Next, we will combine Figure 1 The following describes in more detail steps S110 to S120 of the method for controlling a game virtual character in the exemplary embodiment.

[0053] Step S110: In response to a first sliding operation in the first control area, controlling the game virtual character to move, the first sliding operation being a sliding operation along a first specified direction;

[0054] In an example embodiment of the present disclosure, the solution of the present disclosure can be applied to a mobile terminal that displays a graphical user interface on a touch screen. The graphical user interface includes a virtual joystick area, in which a virtual joystick can be set, wherein the virtual joystick can be set at any position of the user graphical interface, and the virtual joystick can also be set to any size. In a specific game, the game producer can provide a default position and size for the virtual joystick, or provide a customized solution to game players so that users can adjust the virtual joystick according to their own habits. The virtual joystick is similar to the joystick in the console game. The player can control the virtual joystick to control the virtual character of the game to produce corresponding actions. The present disclosure does not specifically limit the position and size of the virtual joystick area.

[0055] For example, in mobile games, a virtual joystick can be used as a button virtual joystick on the virtual screen of a full-touch mobile phone, and the virtual joystick on the touch screen can be directly manipulated to control the virtual character in the game. There are many ways to implement a virtual joystick. For example, in the game design process, Unity3d can be used to develop a virtual joystick. Specifically, EasyTouch, FairyGUI, UGUI and other plug-ins can be used for development. The present disclosure does not specifically limit the type and implementation of the virtual joystick, as long as the virtual character can be controlled to take action through the virtual joystick.

[0056] In an exemplary embodiment of the present disclosure, the virtual joystick area may include a first control area. Specifically, the virtual joystick area may be divided into a plurality of areas, one of which is the first control area. The size of the first control area may be any size, such as 1 / 2, 1 / 3, 1 / 4, etc. of the virtual joystick area; the shape of the first control area may be any shape, such as a circle, a square, an ellipse, a triangle, or a figure of two overlapping parts; the first control area may be set at any position of the virtual joystick area, such as the center of the virtual joystick area, the virtual joystick area is close to the bottom relative to the center, etc. The present disclosure does not specifically limit the position, size, and shape of the first control area.

[0057] In addition to the above embodiment in which the virtual joystick area can be divided into multiple areas, the entire virtual joystick area can also be used as the first control area, that is, the shape, size, and position of the first control area are the same as those of the virtual joystick area.

[0058] In an exemplary embodiment of the present disclosure, a first sliding operation may be performed in a first control area to control a game virtual character to move, wherein the first sliding operation is a sliding operation along a first specified direction, and the first specified direction may be any direction. For example, a horizontal direction parallel to the long side of the terminal device, or a vertical direction perpendicular to the long side of the terminal device. Assume that the first specified direction is a vertical direction perpendicular to the long side of the mobile device.

[0059] Combine the following Figure 2-Figure 3 Controlling the movement of the game virtual character through the first sliding operation in the first control area is described in more detail.

[0060] In one embodiment of the present disclosure, the terminal device 200 includes a user graphical interface 208, and the current user graphical interface 208 is a shooting game interface, which includes a virtual joystick area 201, a first control area 202, a currently used firearm 203, a standby firearm 204, a game map 205, an action control control 206 (such as a crouching control, a prone control, a shooting control, a scope control, etc.), and a game function control 207 (such as a game setting control, a microphone control, a quick message control, etc.). The above controls can be primary controls or secondary controls (for example, after a touch operation is performed on a certain control, multiple sub-controls appear for selection).

[0061] In one embodiment of the present disclosure, Figure 3 As shown, for example, the first specified direction can be set to be a vertical direction 309 ( Figure 3 When controlling the movement of a game virtual character, when the first control area 302 receives a first sliding operation 310 of sliding upward along a vertical direction, the game virtual character moves forward at the current viewing angle; when a sliding operation 311 of sliding downward along a first specified direction within the first control area is received, the game virtual character moves backward at the current viewing angle.

[0062] Step S120: In response to a second sliding operation in the first control area, controlling the game virtual character to rotate the viewing angle, the second sliding operation being a sliding operation along a second specified direction.

[0063] In one embodiment of the present disclosure, the virtual character can be controlled to rotate the viewing angle. In some games, the viewing angle can be rotated to make the game virtual character face different directions. Specifically, when the viewing angle of the game virtual character is controlled, a second sliding operation can be performed in the first control area 402 to control the game virtual character to rotate the viewing angle, wherein the second sliding operation is a sliding operation along a second specified direction, and the second specified direction can be any direction different from the first specified direction. For example, a horizontal direction parallel to the long side of the terminal device, or a vertical direction perpendicular to the long side of the terminal device. Assume that the first specified direction is a vertical direction perpendicular to the long side of the mobile device.

[0064] In one embodiment of the present disclosure, Figure 4 As shown, for example, the second specified direction may be set to be a parallel direction 409 ( Figure 4When controlling the rotation of the viewing angle of the game virtual character, when the first control area 402 receives the second sliding operation 410 sliding to the left along a parallel direction, the game virtual character rotates the viewing angle to the left; when the sliding operation 411 sliding to the right along the second specified direction in the first control area is received, the game virtual character rotates the viewing angle to the right; when the game virtual character rotates the viewing angle, the viewing angle display 412 can display the specific value of the current viewing angle of the game virtual character.

[0065] Through the above scheme, the movement of the game virtual character can be controlled according to the first sliding operation, and the rotation of the perspective of the game virtual character can be controlled according to the second sliding operation in the same area. On the one hand, the movement and rotation of the perspective of the game virtual character can be controlled in the same area, that is, the movement and rotation of the perspective can be completed without two joysticks, and then the game virtual character can be controlled to perform other actions; on the other hand, the player can control the movement, rotation of the perspective, and other actions (releasing skills, attacking, etc.) of the virtual game character at the same time, so that the player's operation has better consistency and improves the player's gaming experience.

[0066] In an exemplary embodiment of the present disclosure, when controlling a virtual character in a game, a third sliding operation can be performed in the first control area to control the movement of the virtual character in the game while rotating the viewing angle. Specifically, the sliding direction of the third sliding operation is different from the first specified direction of the first sliding operation and the second specified direction of the second sliding operation, and the sliding direction of the third sliding operation may include any direction except the first specified direction and the second specified direction. When receiving the third sliding operation in the first control area, the virtual character in the game rotates the viewing angle while moving. For example, Figure 5 As shown, the virtual joystick area 501 includes a first control area 502. Assuming that the first specified direction is a vertical direction 504 perpendicular to the long side of the terminal device, and the first specified direction is a parallel direction 503 parallel to the long side of the terminal device, that is, at this time, the sliding direction of the third sliding operation can be any direction except the first specified direction and the second specified direction. For example, the sliding direction of the third sliding operation can be 505 or 506.

[0067] In an exemplary embodiment of the present disclosure, when controlling the movement and rotation of the game virtual character, the game virtual character can be controlled to rotate the perspective while moving according to the control weights of the movement control mode and the rotation perspective control mode. Figure 6 As shown, controlling the game virtual character according to the control weights of different control modes may include the following steps S610-S620:

[0068] Step S610: acquiring a first control weight of a movement control mode and a second control weight of a rotation angle control mode according to a third sliding operation;

[0069] In an example embodiment of the present disclosure, a game virtual character may include a movement control mode and a rotation view control mode. Specifically, the movement control mode may be used to control the movement of the game virtual character, and the rotation view control mode may be used to control the rotation view of the game virtual character. When controlling the game virtual character, the first control weight of the movement control mode may be obtained according to the third sliding operation, and the second control weight of the view rotation control mode may be obtained according to the third sliding operation. The first control weight is the weight of the movement of the game virtual character, and the second control weight is the weight of the rotation view of the game virtual character. The greater the weight ratio obtained by the movement control mode and the view rotation control mode, the stronger the effect of the mode.

[0070] Step S620: Control the game virtual character to move and rotate the viewing angle according to the first control weight and the second weight.

[0071] In an exemplary embodiment of the present disclosure, the first control weight and the second control weight obtained in the above steps can be used to control the movement of the game virtual character while rotating the viewing angle. In the movement control mode, the first control weight can correspond to different movement speeds, movement distances, etc.; in the rotation viewing angle control mode, the second control weight can correspond to different viewing angles, viewing angle rotation angular velocities, etc.

[0072] In an exemplary embodiment of the present disclosure, Figure 7 As shown, a rectangular coordinate system XOY can be established in the virtual joystick area 701. When the first control area 702 receives the third sliding operation 703 from P1 (x1, y1) to P2 (x2, y2), it is assumed that the x-axis corresponds to the rotation viewing angle control mode of the virtual character of the game, that is, the x-axis change x2-x1 from P1 to P2 corresponds to the rotation viewing angle. Further, the foot speed of the rotation viewing angle can be calculated based on the time from P1 to P2; it is assumed that the y-axis corresponds to the movement control mode of the virtual character of the game, that is, the y-axis change y2-y1 from P1 to P2 corresponds to the movement distance. Further, the movement speed can be calculated based on the time from P1 to P2.

[0073] Through the above steps S610-S620, the game virtual character can be controlled to rotate the perspective while moving according to the control weights of the movement control mode and the rotation perspective control mode. The function of controlling the rotation of the perspective while moving can be completed through a sliding operation.

[0074] In an exemplary embodiment of the present disclosure, the first control weight of the movement control mode and the second control weight of the rotation angle control mode can be determined according to the real-time touch position. Figure 8 As shown, determining the first control weight and the second control weight according to the touch position may include the following steps S810-S820:

[0075] Step S810: Detect the distance between the real-time touch position of the third sliding operation and the edge of the first control area;

[0076] In an exemplary embodiment of the present disclosure, when the third sliding operation is detected, the third sliding operation can be divided into multiple touch positions, the real-time touch position of the third sliding operation is obtained, and the distance between the current position and the edge of the first control area is calculated according to the real-time touch position. Among them, the distance between the real-time touch position and the edge of the first control area is the shortest distance of the connection line between the real-time touch position and each edge of the first control area.

[0077] Step S820: Determine the first control weight of the movement control mode and the second control weight of the rotation perspective control mode according to the distance.

[0078] In an exemplary embodiment of the present disclosure, after obtaining the distance between the real-time touch position and the edge of the first control area in the above steps, the first control weight of the movement control mode and the second control weight of the rotation perspective control mode can also be determined according to the distance between the real-time touch position and the edge of the first control area. For example, as Fig. 9 shown, in the virtual joystick area 901, the distance between the real-time touch position N1 and the right edge 9021 of the first control area 902 is L1, and the distance between the real-time touch position N1 and the upper edge 9022 of the first control area 902 is L2. Assuming that the right edge 9021 of the first control area 902 corresponds to the rotation perspective control mode, and the upper edge 9022 of the first control area 902 corresponds to the movement control mode, it can be set that the closer to the first control area 902, the greater the control weight. Since L1 < L2, that is, the second control weight of the rotation perspective control mode is greater than the first control weight of the movement control mode.

[0079] Through the above steps S810-S820, the first control weight and the second control weight can be determined according to the distance between the real-time touch position and the edge of the first control area.

[0080] In an exemplary embodiment of the present disclosure, the first control weight of the movement control mode and the second control weight of the rotation perspective control mode can be determined according to the trajectory of the third sliding operation. Refer to Fig.10 shown, determining the first control weight and the second control weight according to the touch position may include the following steps S1010 to S1020:

[0081] Step S1010: Calculate the slope of the trajectory of the third sliding operation in real time, where the slope of the path is the slope of the connection line between the starting point of the third sliding operation and the real-time touch position of the third sliding operation;

[0082] In an exemplary embodiment of the present disclosure, when a third sliding operation is received in the first control area, the real-time touch position of the third sliding operation can be obtained, and the real-time touch position includes any point on the trajectory of the third sliding operation. At this time, the slope of the trajectory of the third sliding operation can be calculated. Specifically, the real-time touch position of the third sliding operation can be connected with the starting point of the third sliding operation to form a straight line, that is, the slope of this straight line is the slope of the trajectory of the third sliding operation. For example, Fig.11 As shown, assuming that a rectangular coordinate system is set in the virtual joystick area 1101, a third sliding operation 1103 is received from the first control area 1102, the coordinates of the starting point b1 of the third sliding operation 1103 are (x1, y1), and there is also a real-time touch position b2 on the trajectory of the third sliding operation 1103, and its coordinates are (x2, y2). At this time, the slope of the line between the starting point b1 of the third sliding operation 1103 and the real-time touch position b2 can be calculated, and the slope of the line is (y2-y1) / (x2-x1).

[0083] Step S1020: Determine a first control weight of the movement control mode and a second control weight of the rotation viewing angle mode according to the slope.

[0084] In an exemplary embodiment of the present disclosure, after obtaining the slope of the trajectory of the third sliding operation obtained in the above steps, the correspondence between the slope of the trajectory of the third sliding operation and the first control weight of the mobile control mode and the second control weight of the rotation angle mode can be obtained, and the first control weight of the mobile control mode and the second control weight of the rotation angle mode can be determined according to the correspondence. For example, a correspondence table of the slope of the trajectory of the third sliding operation-the first control weight-the second control weight can be pre-set, and when the slope k1 of the trajectory of the third sliding operation is obtained, the first control weight and the second control weight corresponding to the slope k1 can be searched in the correspondence table.

[0085] Through the above steps S1010 - S1020 , the first control weight and the second control weight may be determined according to the slope of the trajectory of the third sliding operation.

[0086] In an exemplary embodiment of the present disclosure, the virtual joystick area may include a second control area and a third control area, and when a sliding operation from the first control area to the second control area or the third control area is detected, the game virtual character is switched to a rotation view control mode or a movement control mode. Fig.12 As shown, the sliding operation switching control mode from sliding from the first control area to the second control area or the third control area may include the following steps S1210-S1220:

[0087] Step S1210: detecting a fourth sliding operation from the first control area to the second control area, and controlling the game virtual character to switch to a rotation view control mode;

[0088] In an exemplary embodiment of the present disclosure, when a fourth sliding operation is detected from the first control area into the second control area, the movement mode of the game virtual character is switched to the rotation angle control mode. Specifically, in the second control area, the game virtual character can only be controlled to rotate the angle, and cannot be controlled to move.

[0089] Step S1220: a fifth sliding operation from the first control area to the third control area is detected, and the game virtual character is controlled to switch to a movement control mode.

[0090] In an exemplary embodiment of the present disclosure, when a fifth sliding operation from the first control area into the third control area is detected, the motion mode of the game virtual character is switched to the movement control mode. Specifically, in the third control area, the game virtual character can only be controlled to move, and the game virtual character cannot be controlled to rotate the perspective.

[0091] For example, refer to Fig.13 As shown, the virtual joystick area 1301 includes a first control area 1302, a second control area 1304, and a third control area 1303. When a fourth sliding operation 1305 is detected from the first control area 1302 to the second control area 1304, the movement mode of the game virtual character is switched to a rotation perspective control mode; when a fifth sliding operation 1306 is detected from the first control area 1302 to the third control area 1303, the movement mode of the game virtual character is switched to a moving control mode.

[0092] In an exemplary embodiment of the present disclosure, through the above steps S1210-S1220, when receiving a signal of entering the second control area or the third control area from the first control area, the control mode of the game virtual character can be switched to the rotation view control mode or the movement control mode.

[0093] In an exemplary embodiment of the present disclosure, referring to Fig.14 As shown, the virtual joystick area 1401 may include a first ellipse 1403 and a second ellipse 1404. The first ellipse 1403 is the same as the second ellipse 1404. The position of the center of the first ellipse 1403 is the same as the position of the center of the second ellipse 1404. The first control area 1402 is the overlapping area of ​​the first ellipse and the second ellipse.

[0094] In an exemplary embodiment of the present disclosure, referring to Fig.15As shown, the virtual joystick area 1501 also includes a circle 1505 with the major axis 15031 of the first ellipse 1503 as its diameter, the second control area is the area of ​​the first ellipse 1503 excluding the overlapping area (i.e., the first control area 1502), and the third control area is the area of ​​the circle 1505 excluding the area of ​​the first ellipse 1503, and the major axis of the first ellipse is parallel to the first specified direction of the above-mentioned first sliding operation.

[0095] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0096] In addition, in an exemplary embodiment of the present disclosure, a control device for a game virtual character is also provided. Fig.16 As shown, a control device 1600 for a game virtual character includes: a movement control module 1610 and a viewing angle control module 1620 .

[0097] Among them, the movement control module 1610 can be used to control the movement of the game virtual character in response to a first sliding operation in the first control area, and the first sliding operation is a sliding operation along a first specified direction; the perspective control module 1620 can be used to control the rotation of the perspective of the game virtual character in response to a second sliding operation in the first control area, and the second sliding operation is a sliding operation along a second specified direction.

[0098] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, in response to a third sliding operation of the first control area, the game virtual character is controlled to move and rotate the viewing angle; the third sliding operation is not a sliding operation along the first specified direction or a sliding operation in the second specified direction.

[0099] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the virtual joystick area includes a second control area and a third control area, and the game virtual character includes a movement control mode and a rotation perspective control mode. The method also includes: detecting a fourth sliding operation from the first control area to the second control area, controlling the game virtual character to switch to the rotation perspective control mode; detecting a fifth sliding operation from the first control area to the third control area, controlling the game virtual character to switch to the movement control mode.

[0100] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the game virtual character includes a movement control mode and a rotation perspective control mode, and controlling the movement and rotation perspective of the game virtual character includes: obtaining a first control weight of the movement control mode and a second control weight of the rotation perspective control mode according to a third sliding operation; controlling the movement and rotation perspective of the game virtual character according to the first control weight and the second weight.

[0101] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the first control weight of the mobile control mode and the second control weight of the rotation angle control mode are obtained according to the third sliding operation, including: detecting the distance between the real-time touch position of the third sliding operation and the edge of the first control area; determining the first control weight of the mobile control mode and the second control weight of the rotation angle control mode according to the distance.

[0102] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the first control weight of the mobile control mode and the second control weight of the rotation angle control mode are obtained according to the third sliding operation, including: calculating the slope of the trajectory of the third sliding operation in real time, wherein the slope of the path is the slope of the line between the starting point of the third sliding operation and the real-time touch position of the third sliding operation; determining the first control weight of the mobile control mode and the second control weight of the rotation angle mode according to the slope.

[0103] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the virtual joystick area includes a first ellipse and a second ellipse, the first ellipse and the second ellipse are the same, the position of the center of the first ellipse is the same as the position of the center of the second ellipse, and the first control area is the overlapping area of ​​the first ellipse and the second ellipse.

[0104] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the virtual joystick area also includes a circle with the major axis of the first ellipse as its diameter, the second control area is the area of ​​the first ellipse excluding the overlapping area, and the third control area is the area of ​​the circle excluding the first ellipse area; wherein the major axis of the first ellipse is parallel to the first specified direction.

[0105] Since the various functional modules of the device for controlling a game virtual character of the example embodiment of the present disclosure correspond to the steps of the example embodiment of the method for controlling a game virtual character described above, for details not disclosed in the device embodiment of the present disclosure, please refer to the embodiment of the method for controlling a game virtual character described above in the present disclosure.

[0106] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0107] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the virtual lighting control method of the virtual studio is also provided.

[0108] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware embodiments, complete software embodiments (including firmware, microcode, etc.), or embodiments combining hardware and software aspects, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0109] Refer to the following Fig.17 1700 according to this embodiment of the present disclosure is described. Fig.17 The electronic device 1700 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0110] like Fig.17 As shown, the electronic device 1700 is in the form of a general computing device. The components of the electronic device 1700 may include, but are not limited to: the at least one processing unit 1710, the at least one storage unit 1720, a bus 1730 connecting different system components (including the storage unit 1720 and the processing unit 1710), and a display unit 1740.

[0111] The storage unit stores program codes, which can be executed by the processing unit 1710, so that the processing unit 1710 performs the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 1710 can perform the following steps: Figure 1 The steps S110 shown in the figure: in response to the first sliding operation of the first control area, the movement of the virtual character of the game is controlled, and the first sliding operation is a sliding operation along the first specified direction; S120: in response to the first sliding operation of the first control area, the movement of the virtual character of the game is controlled, and the first sliding operation is a sliding operation along the first specified direction.

[0112] For example, electronic devices can achieve Figure 2 The steps shown.

[0113] The storage unit 1720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 1721 and / or a cache storage unit 1722 , and may further include a read-only storage unit (ROM) 1723 .

[0114] The storage unit 1720 may also include a program / utility 1724 having a set (at least one) of program modules 1725, such program modules 1725 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0115] Bus 1730 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0116] The electronic device 1700 may also communicate with one or more external devices 1770 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1700, and / or communicate with any device that enables the electronic device 1700 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1750. Furthermore, the electronic device 1700 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 1760. As shown, the network adapter 1760 communicates with other modules of the electronic device 1700 via a bus 1730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0117] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.

[0118] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible embodiments, various aspects of the present disclosure can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above "Exemplary Method" section of the present specification.

[0119] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0120] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0121] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0122] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0123] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0124] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for controlling a game virtual character, applied to a mobile terminal that displays a graphical user interface on a touch screen, It is characterized in that The graphical user interface includes a virtual joystick area, the virtual joystick area includes a first control area, a second control area, and a third control area, the game virtual character includes a movement control mode and a rotation view control mode, and the method includes: In response to a first sliding operation of the first control area, controlling the game virtual character to move, the first sliding operation being a sliding operation along a first specified direction; In response to a second sliding operation of the first control area, controlling the game virtual character to rotate the viewing angle, wherein the second sliding operation is a sliding operation along a second specified direction; the first specified direction is different from the second specified direction; A fourth sliding operation from the first control area to the second control area is detected, and the game virtual character is controlled to switch to a rotation view angle control mode; wherein the rotation view angle of the game virtual character is controlled in the second control area, and the movement of the game virtual character is not controlled; A fifth sliding operation from the first control area to the third control area is detected, and the game virtual character is controlled to switch to a movement control mode; wherein the movement of the game virtual character is controlled in the third control area, and the rotation of the viewing angle of the game virtual character is not controlled; In response to a third sliding operation in the first control area, the first control weight of the movement control mode and the second control weight of the rotation perspective control mode are obtained according to the third sliding operation; the movement of the game virtual character and the rotation perspective are controlled according to the first control weight and the second control weight; the third sliding operation is not a sliding operation along the first specified direction or a sliding operation along the second specified direction.

2. The method according to claim 1, It is characterized in that The acquiring the first control weight of the movement control mode and the second control weight of the rotation viewing angle control mode according to the third sliding operation includes: Detecting the distance between the real-time touch position of the third sliding operation and the edge of the first control area; A first control weight of the movement control mode and a second control weight of the rotation angle control mode are determined according to the distance.

3. The method according to claim 1, It is characterized in that The acquiring the first control weight of the movement control mode and the second control weight of the rotation viewing angle control mode according to the third sliding operation includes: Calculating in real time the slope of the trajectory of the third sliding operation, wherein the slope of the trajectory is the slope of a line between a starting point of the third sliding operation and a real-time touch position of the third sliding operation; A first control weight of the movement control mode and a second control weight of the rotation angle control mode are determined according to the slope.

4. The method according to claim 1, It is characterized in that The virtual joystick area includes a first ellipse and a second ellipse, the first ellipse is the same as the second ellipse, the position of the center of the first ellipse is the same as the position of the center of the second ellipse, and the first control area is the overlapping area of ​​the first ellipse and the second ellipse.

5. The method according to claim 4, It is characterized in that The virtual joystick area also includes a circle with the major axis of the first ellipse as its diameter, the second control area is the area of ​​the first ellipse excluding the overlapping area, and the third control area is the area of ​​the circle excluding the first ellipse area; wherein the major axis of the first ellipse is parallel to the first specified direction.

6. A control device for a game virtual character, applied to a mobile terminal that displays a graphical user interface on a touch screen, It is characterized in that The graphical user interface includes a virtual joystick area, the virtual joystick area includes a first control area, a second control area, and a third control area, the game virtual character includes a movement control mode and a rotation view control mode, and the device includes: The movement control module is used to control the movement of the game virtual character in response to a first sliding operation in the first control area, wherein the first sliding operation is a sliding operation along a first specified direction; and is also used to detect a fifth sliding operation from the first control area to a third control area, and control the game virtual character to switch to a movement control mode; wherein the movement of the game virtual character is controlled in the third control area, but the rotation of the viewing angle of the game virtual character is not controlled; The viewing angle control module is used to control the game virtual character to rotate the viewing angle in response to a second sliding operation in the first control area, wherein the second sliding operation is a sliding operation along a second specified direction; and is also used to detect a fourth sliding operation from the first control area to the second control area, and control the game virtual character to switch to a rotating viewing angle control mode; wherein the viewing angle of the game virtual character is controlled to rotate in the second control area, but the movement of the game virtual character is not controlled; A movement and perspective control module is used to respond to a third sliding operation in the first control area, obtain a first control weight of the movement control mode and a second control weight of the rotation perspective control mode according to the third sliding operation; control the movement of the game virtual character and the rotation perspective according to the first control weight and the second control weight; the third sliding operation is not a sliding operation along the first specified direction or a sliding operation along the second specified direction.

7. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

8. An electronic device, It is characterized in that include: processor; as well as The memory is used to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and system for controlling game characters to move

    CN106951178A

  • Control method and device of shooting game, storage medium, processor and terminal

    CN107661630A

  • Virtual object motion control method and device, electronic equipment and storage medium

    CN108295466A

  • Auxiliary collimation method and device in shooting games, electronic device and storage medium

    CN108404407A

  • Information processing method and device, storage medium and electronic equipment

    CN108404408A