Virtual character control method and device, computer storage medium, and electronic device
By adjusting the viewpoint rotation speed and control area switching, the problem of accidental virtual character operation in open-world games has been solved, improving the user's gaming experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2022-12-08
- Publication Date
- 2026-04-28
AI Technical Summary
In open-world games, when virtual characters move across complex terrain, user misoperations can lead to frequent vaulting maneuvers, impacting the gaming experience.
By adjusting the rotation speed of the viewing direction and switching the control area, the system responds to operations in different control areas, generates a third control area to prompt the user, and reduces the viewing rotation speed in the designated area to avoid accidental operation.
It improves the user's gaming experience in complex scenarios, reduces accidental vaulting and falls, and enhances the feel of movement.
Smart Images

Figure CN115944919B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more specifically, to a virtual character control method and apparatus, a computer storage medium, and an electronic device. Background Technology
[0002] Open-world games, also known as roaming games, allow players to explore various corners of a map by controlling a virtual character. To facilitate free exploration in areas with complex terrain, the current game includes an automatic vaulting function. This means that when the virtual character is near a wall or other obstacle, it can automatically vault over it without player intervention.
[0003] However, when virtual characters move in complex terrain, especially when players' movement habits are consistent on both flat ground and complex terrain, they often accidentally trigger the vaulting action, which seriously affects the player's gaming experience.
[0004] Therefore, a new method for controlling virtual characters is needed.
[0005] It should be noted that the information in the background section above is only used to enhance the understanding of the background of the present invention, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0006] The purpose of this disclosure is to provide a virtual character control method, a virtual character control device, a computer-readable storage medium, and an electronic device, thereby at least to some extent overcoming the problem of poor user gaming experience caused by user misoperation leading to accidental triggering of vaulting operations due to limitations and defects in related technologies.
[0007] According to one aspect of this disclosure, a method for controlling a virtual character is provided, comprising:
[0008] In response to a first operation targeting the first control area, the virtual character's viewpoint is controlled to rotate at a first preset speed;
[0009] In response to a second operation targeting the second control area, the virtual character is controlled to move in the current view direction;
[0010] In response to the virtual character entering the designated area, a third control area is generated in the graphical user interface;
[0011] In response to a third operation targeting the third control area, the virtual character's viewpoint is controlled to rotate at a second preset speed;
[0012] Wherein, the first preset speed is greater than the second preset speed.
[0013] According to one aspect of this disclosure, a virtual character control device is provided, comprising:
[0014] A viewpoint direction control module is used to respond to a first operation on the first control area and control the viewpoint direction of the virtual character to rotate at a first preset speed.
[0015] The virtual character movement module is used to respond to a second operation targeting the second control area and control the virtual character to move in the current view direction;
[0016] The control area change module is used to generate a third control area in the graphical user interface in response to the virtual character entering the designated area.
[0017] The viewpoint rotation speed switching module is used to respond to a third operation on the third control area and control the viewpoint direction of the virtual character to rotate at a second preset speed.
[0018] Wherein, the first preset speed is greater than the second preset speed.
[0019] According to one aspect of this disclosure, a computer storage medium is provided that stores a computer program thereon, which, when executed by a processing unit, implements the virtual character control method described in any of the exemplary embodiments above.
[0020] According to one aspect of this disclosure, an electronic device is provided, comprising:
[0021] Processing unit; and
[0022] A storage unit for storing the executable instructions of the processing unit;
[0023] The processor is configured to execute the virtual character control method described in any of the above exemplary embodiments by executing the executable instructions.
[0024] This disclosure provides a virtual character control method that, in response to a first operation on a first control area, controls the virtual character's viewpoint direction to rotate at a first preset speed; in response to a second operation on a second control area, controls the virtual character to move towards the current viewpoint direction; in response to the virtual character entering a designated area, generates a third control area on the graphical user interface; and in response to a third operation on the third control area, controls the virtual character's viewpoint direction to rotate at a second preset speed; wherein the first preset speed is greater than the second preset speed. On the one hand, the system responds to the user's first operation in the first control area and the second operation in the second control area, jointly determining the movement of the virtual character based on these two operations. However, once the virtual character enters a designated area, a third control area is generated in the graphical user interface. This change in control area serves as a prompt to the user. On the other hand, once the virtual character enters a designated area, the system responds to the user's third operation in the third control area, controlling the virtual character's viewpoint direction through this third operation. In the third control area, the virtual character's viewpoint rotation speed is less than that in the first control area. That is, when performing a third operation in the third control area, the virtual character's viewpoint direction is controlled with a smaller viewpoint rotation speed, avoiding the problem of accidental overturning or falling due to user misoperation in the designated area, and improving the user's movement feel in complex scenes.
[0025] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description
[0026] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention. It is obvious that the drawings described below are merely some embodiments of the invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0027] Figure 1 A flowchart illustrating a virtual character control method according to an example embodiment of the present disclosure is shown schematically.
[0028] Figure 2 This schematically illustrates a graphical user interface diagram of a game scene that does not include a designated area according to an example embodiment of the present disclosure.
[0029] Figure 3 This illustration schematically depicts a graphical user interface diagram of a game scene according to an example embodiment of the present disclosure, showing a designated area and a user controlling a virtual character to enter that designated area.
[0030] Figure 4 This illustration schematically depicts a graphical user interface diagram of a game scene according to an example embodiment of the present disclosure, showing a designated area and a user controlling a virtual character to enter that designated area.
[0031] Figure 5 The flowchart illustrates a method for generating a third control area in a graphical user interface in response to a virtual character entering a designated area, according to an example embodiment of the present disclosure.
[0032] Figure 6 This illustration schematically depicts a graphical user interface diagram of a game scene according to an example embodiment of the present disclosure, showing a designated area and a user controlling a virtual character to enter that designated area.
[0033] Figure 7 A block diagram schematically illustrates a virtual character control device according to an exemplary embodiment of the present disclosure.
[0034] Figure 8 An electronic device for implementing the virtual character control method described above is illustrated according to an example embodiment of the present disclosure. Detailed Implementation
[0035] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make the invention more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a full understanding of embodiments of the invention. However, those skilled in the art will recognize that the technical solutions of the invention may be practiced with one or more of these specific details omitted, or other methods, components, apparatus, steps, etc., may be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of the invention.
[0036] Furthermore, the accompanying drawings are merely illustrative of the invention and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0037] The seamless open-world maps in current open-world games are a major highlight, attracting a large number of users. Players can control their virtual characters to reach any scene in the world. Currently, the game has implemented an automatic vaulting function, which reduces the difficulty of movement in complex terrain.
[0038] However, when users control virtual characters to move on complex terrains such as stairs and low walls, due to the automatic vaulting function and the limitations of mobile phone operation, especially when the user's movement operation habits are consistent on flat ground and on complex terrain, it is easy to move the virtual character to the edge of the railing, thereby triggering the vaulting operation and causing the virtual character to vault over the railing, which seriously affects the user's gaming experience.
[0039] To address one or more of the aforementioned issues, this exemplary embodiment first provides a virtual character control method. This method can run on a device terminal, which may include desktop computers, laptops, smartphones, tablets, etc. Of course, those skilled in the art can also run the method of this invention on other platforms as needed, and this exemplary embodiment does not impose any special limitations on this. (Reference) Figure 1 As shown, the virtual character control method may include the following steps:
[0040] Step S110. In response to a first operation targeting the first control area, control the virtual character's viewpoint direction to rotate at a first preset speed;
[0041] Step S120. In response to the second operation targeting the second control area, control the virtual character to move in the current view direction;
[0042] Step S130. In response to the virtual character entering the designated area, a third control area is generated in the graphical user interface;
[0043] Step S140. In response to a third operation targeting the third control area, control the virtual character's viewpoint direction to rotate at a second preset speed; wherein the first preset speed is greater than the second preset speed.
[0044] The above-described virtual character control method, in response to a first operation targeting the first control area, controls the virtual character's viewpoint direction to rotate at a first preset speed; in response to a second operation targeting the second control area, controls the virtual character to move towards the current viewpoint direction; in response to the virtual character entering a designated area, generates a third control area in the graphical user interface; in response to a third operation targeting the third control area, controls the virtual character's viewpoint direction to rotate at a second preset speed; wherein, the first preset speed is greater than the second preset speed. On the one hand, the system responds to the user's first operation in the first control area and the second operation in the second control area, jointly determining the movement of the virtual character based on these two operations. However, once the virtual character enters a designated area, a third control area is generated in the graphical user interface. This change in control area serves as a prompt to the user. On the other hand, once the virtual character enters a designated area, the system responds to the user's third operation in the third control area, controlling the virtual character's viewpoint direction through this third operation. In the third control area, the virtual character's viewpoint rotation speed is less than that in the first control area. That is, when performing a third operation in the third control area, the virtual character's viewpoint direction is controlled with a smaller viewpoint rotation speed, avoiding the problem of accidental overturning or falling due to user misoperation in the designated area, and improving the user's movement feel in complex scenes.
[0045] The following provides a detailed explanation and description of each step involved in the virtual character control method of the exemplary embodiments of this disclosure.
[0046] First, the application scenarios and purposes of the exemplary embodiments of this disclosure will be explained and described. Specifically, the exemplary embodiments of this disclosure can be applied to games that have already implemented the automatic vaulting function for virtual characters. The main research focuses on how to avoid the problem of poor user experience caused by users maintaining the same operating habits in different areas or by users accidentally triggering the vaulting operation in complex terrain of the game.
[0047] This disclosure uses a game scene displayed in a graphical user interface as a basis to determine a designated area included in the current game scene. When the user controls a virtual character to move in a non-designated area, the movement of the virtual character is determined jointly by the user's first operation in a first control area and a second operation in a second control area. Specifically, in the first control area, the virtual character's viewpoint is rotated at a first preset speed. After the virtual character enters the designated area, a third control area is generated in the graphical user interface. Responding to the user's third operation in the third control area, the virtual character's viewpoint is rotated at a second preset speed, which is less than the first preset speed. That is, when the virtual character moves in the designated area, the viewpoint rotation speed of the virtual character is reduced. This reduces the problem of users accidentally triggering a vaulting operation when their operating habits remain unchanged in the designated area and they continue to control the virtual character's viewpoint rotation at the first preset speed, thus improving the user's gaming experience.
[0048] Next, steps S110-S140 of the exemplary embodiments of this disclosure will be explained and described.
[0049] In step S110, in response to a first operation targeting the first control area, the viewpoint direction of the virtual character is controlled to rotate at a first preset speed.
[0050] In this example embodiment, the user's terminal device provides a graphical user interface (GUI), which may include a first control area and a second control area. The first control area may be located on the right side of the GUI. In this first control area, the user can control the virtual character using a first interactive medium, such as the user's right-hand finger or a stylus, etc. In this example embodiment, the first interactive medium is not specifically limited. The second control area may be located in the lower left corner of the GUI. An operation control is provided in the second control area, and the user can operate the operation control located in the first control area using a second interactive medium, such as the user's left-hand finger or a stylus, etc. In this example embodiment, the second interactive medium is not specifically limited. By operating the operation control, the virtual character can be controlled to move in the current viewpoint direction within the game scene.
[0051] In this example embodiment, when the user performs a first operation in the first control area, the system can respond to the user's first operation and control the virtual character's viewpoint direction according to the first operation. When the virtual character's viewpoint direction is controlled by the first operation, the rotation speed of the virtual character's viewpoint direction in the game scene is a first preset speed. In this example embodiment, no limitation is made on the first preset speed.
[0052] In step S120, in response to a second operation targeting the second control area, the virtual character is controlled to move in the current view direction.
[0053] In this example embodiment, when the user performs a second operation in the second control area, the system responds to the user's second operation on the virtual character in the second control area. The second operation is used to control the virtual character to move. When controlling the virtual character to move, the direction of movement of the virtual character is determined by the current view direction of the virtual character. That is, the current view direction of the virtual character is determined by the first operation in the first control area.
[0054] In step S130, in response to the virtual character entering the designated area, a third control area is generated in the graphical user interface.
[0055] refer to Figure 2 As shown, when the specified area does not exist in the current game scene displayed by the graphical user interface, the current graphical user interface may include a first control area 201, a second control area 202, operation controls 203 in the second control area 202, and a virtual character 204. However, when the specified area exists in the current game scene displayed by the graphical user interface, and a virtual character enters the specified area, a third control area can be generated in the graphical user interface. The third control area can be located above or below the first control area. In this example embodiment, the position of the generated third control area in the graphical user interface is specifically defined.
[0056] refer to Figure 3 As shown, in the current game scene displayed in the graphical user interface, there is a designated area 301. After the user controls the virtual character to enter the designated area 306, the graphical user interface may also include a first control area 301, a second control area 302, operation controls 303 in the second control area 302, a third control area 304, and a virtual character 305.
[0057] In this example embodiment, the step of generating a third control area in the graphical user interface in response to the virtual character entering the designated area may include:
[0058] In response to the virtual character entering the designated area, the first control area is switched to the third control area.
[0059] Specifically, when a user controls a virtual character to enter a designated area, the system responds by switching the first control area in the graphical user interface to the third control area.
[0060] refer to Figure 4As shown, when the user controls the virtual character to enter a designated area of the game scene, that is, when the current game scene includes the designated area 405, the current graphical user interface may also include a third control area 401, a second control area 402, operation controls 403 in the second operation area, and a virtual character 404.
[0061] In this example embodiment, reference Figure 5 As shown, the step of generating a third control area in the graphical user interface in response to the virtual character entering the designated area may include:
[0062] Step S510. In response to the virtual character entering the designated area, divide the first control area into a third control area and a fourth control area;
[0063] Step S520. In response to the fourth operation for the fourth control area, control the virtual character's viewpoint direction to rotate at a third preset speed;
[0064] The third preset speed is greater than the second preset speed.
[0065] The following will further explain and illustrate steps S510 and S520. Specifically, when the user controls the virtual character to enter the designated area, in response to the virtual character entering the designated area, the first control area is divided into a third control area and a fourth control area. The user can control the virtual character's viewing direction in the third control area or the fourth control area. When the user performs a fourth operation in the fourth control area to control the virtual character's viewing direction, the rotation of the virtual character's viewing direction is controlled at a third preset speed. The third preset speed is greater than the second preset speed and equal to the first preset speed. That is, when the virtual character enters the designated area, the first control area can be divided into a third control area and a fourth control area. The rotation speed of the virtual character's viewing direction in the fourth control area is greater than the rotation speed of the virtual character's viewing direction in the third control area.
[0066] refer to Figure 6 As shown, when a user controls a virtual character to enter a designated area, the graphical user interface includes a designated area 601, a first control area 602, a second control area 603, operation controls 604 within the second control area, a third control area 605, a fourth control area 606, and a virtual character 607. That is, in Figure 6 In the process, when the designated area is a staircase and the virtual character is located on the staircase in the designated area 601, the control divides the first control area into a third control area and a fourth control area. The change of the control area in the graphical user interface can provide prompts to the user.
[0067] In this example embodiment, when a third control area is generated in the graphical user interface, the virtual character control method may include:
[0068] A reminder message is generated for the third control area on the graphical user interface.
[0069] Specifically, after the third control area is generated in the user's graphical interface, a reminder message for the third control area can be generated in the graphical user interface. The reminder message can be a highlight of the third control area or a text prompt showing the change of the control area in the graphical user interface. In this example embodiment, the reminder message is not specifically limited.
[0070] Furthermore, in this example embodiment, when a virtual character enters a designated area, this designated area is the edge area of a virtual object in the virtual scene, where the virtual object is an object the virtual character can walk on. When the virtual character is in the designated area, i.e., at the edge of a virtual object, if the user's operating habits remain unchanged, they are very likely to accidentally trigger a vaulting operation. For example, when an open-world game is an outdoor-themed game, and building models appear in the scene, various stairs often appear in these models. When the user controls the virtual character to enter the interior of the building, while moving on the stairs, they often accidentally trigger a vaulting operation, i.e., the virtual character vaults directly down the stairs. Therefore, stairs and similar structures in the building model can be marked as designated areas. In other models within the game scene, designated areas can be determined according to the actual situation. In this example embodiment, the designated area is not specifically limited. A game scene may include one or multiple designated areas; in this example embodiment, the number of included designated areas is not specifically limited.
[0071] Furthermore, when determining whether a virtual character is located in a designated area, the position of the designated area in the game scene can be obtained, and the position of the virtual character in the game scene can be obtained in real time. When the position of the virtual character in the game scene is the same as the position of the designated area in the game scene, it is determined that the virtual character is located in the designated area.
[0072] Furthermore, when the first control area is divided into a third and a fourth control area, when the user controls the virtual character to move on the stairs in the designated area, the user can perform a fourth operation in the fourth control area when the virtual character is going up or down the stairs, controlling the rotation speed of the virtual character's view direction to a third preset speed. When the virtual character is at a corner of the stairs, the user can perform a third operation in the third control area, controlling the rotation speed of the virtual character's view direction to a second preset speed. That is, the rotation speed of the view direction at the corner of the stairs is less than the rotation speed of the view direction when going up or down the stairs, avoiding accidental triggering of the vaulting operation due to excessive rotation speed of the view direction at the corner of the stairs, thus improving the user's gaming experience.
[0073] In this example embodiment, the virtual character control method further includes:
[0074] In response to the virtual character entering the designated area, when the current state of the virtual character meets preset conditions, the virtual character is controlled to perform a vaulting action.
[0075] Specifically, when a user controls a virtual character to enter a designated area, and the virtual character's current state meets preset conditions, the user can control the virtual character to perform a vaulting operation. These preset conditions may include the virtual character being in a moving state, and when the virtual character is moving in a certain direction with an obstacle in that direction, the virtual character's lowest point after jumping must be higher than the height of the obstacle. In this example embodiment, the jump height of the virtual character is not specifically limited. Furthermore, the automatic vaulting function can be canceled when the virtual character is engaged in combat in the designated area or is on the edge of a prohibited area within the designated area.
[0076] In step S140, in response to a third operation targeting the third control area, the viewpoint direction of the virtual character is controlled to rotate at a second preset speed; wherein the first preset speed is greater than the second preset speed.
[0077] In this example embodiment, after a virtual character enters a designated area, when the user controls the virtual character's viewing direction through a third control area, the virtual character's viewing direction rotates at a second preset speed. After controlling the virtual character's viewing direction to rotate at the second preset speed, the virtual character control method further includes:
[0078] In response to the end of the third operation, the viewpoint direction of the virtual character is determined as the target viewpoint direction after rotating the viewpoint direction at a second preset speed.
[0079] Specifically, when the user performs the third operation in the third control area, the virtual character's view direction can be determined by the third operation and the second preset speed; however, when the user finishes the third operation in the third control area, in response to the end of the third operation, the virtual character's view direction can be determined by the view direction corresponding to the rotation at the second preset speed, that is, the view direction corresponding to the rotation at the second preset speed is determined as the target view direction.
[0080] In this example embodiment, when the user performs a fifth operation in the second operation area after completing the third operation in the third control area, the virtual character control method further includes:
[0081] In response to a fifth operation targeting the second control area, the virtual character is controlled to move toward the target viewpoint.
[0082] Specifically, in the graphical user interface, users can operate simultaneously in the second and third operation areas to control the movement of the virtual character. When the user finishes operating in the third operation area, and the user is still performing a fifth operation in the second operation area, the system responds to the user's fifth operation and controls the virtual object to move towards the target view direction. The target view direction is the view direction corresponding to the virtual character's view direction after the third operation is completed and rotated at a second preset speed.
[0083] Furthermore, in the public context, when a virtual character leaves a designated area, the virtual character control methods include:
[0084] In response to the virtual character leaving the designated area, the third control area is deleted.
[0085] Specifically, when the user controls the virtual character to leave the designated area, the system responds by deleting the third control area in the user's graphical interface. That is, after the user leaves the designated area, when the user controls the virtual character's viewpoint, the virtual character's viewpoint rotates at a first preset speed.
[0086] The virtual character control method provided in this exemplary embodiment has at least the following advantages: On the one hand, it responds to a user's first operation in a first control area and a second operation in a second control area, and determines the movement of the virtual character based on the first operation in the first control area and the second operation in the second control area. However, when the virtual character enters a designated area, a third control area is generated in the graphical user interface. The change in the control area serves as a prompt to the user. On the other hand, when the virtual character enters a designated area, the user performs a third operation in the third control area, controlling the virtual character's viewpoint direction through the third operation. In the third control area, the virtual character's viewpoint rotation speed is less than that in the first control area. That is, when performing the third operation in the third control area, the virtual character's viewpoint direction is controlled with a smaller viewpoint rotation speed, avoiding the problem of accidental overturning or falling caused by user misoperation in the designated area, and improving the user's gaming experience in complex scenes.
[0087] This disclosure also provides a virtual character control device, which provides a graphical user interface (GUI) via a terminal device. The GUI includes at least a first control area, a second control area, a game scene, and a virtual character. (See reference...) Figure 7 As shown, it may include: a view direction control module 710, a virtual character movement module 720, a control area change module 730, and a view rotation speed switching module 740. Wherein:
[0088] The view direction control module 710 is used to respond to a first operation on the first control area and control the view direction of the virtual character to rotate at a first preset speed.
[0089] The virtual character movement module 720 is used to respond to a second operation on the second control area and control the virtual character to move in the current view direction;
[0090] The control area change module 730 is used to generate a third control area in the graphical user interface in response to the virtual character entering the designated area.
[0091] The view rotation speed switching module 740 is used to respond to a third operation on the third control area and control the view direction of the virtual character to rotate at a second preset speed.
[0092] Wherein, the first preset speed is greater than the second preset speed.
[0093] The specific details of each module in the aforementioned virtual character control device have been described in detail in the corresponding virtual character control method, so they will not be repeated here.
[0094] In one exemplary embodiment of this disclosure, the step of generating a third control area in the graphical user interface in response to the virtual character entering a designated area includes:
[0095] In response to the virtual character entering the designated area, the first control area is switched to the third control area.
[0096] In one exemplary embodiment of this disclosure, the step of generating a third control area in the graphical user interface in response to the virtual character entering a designated area includes:
[0097] In response to the virtual character entering the designated area, the first control area is divided into a third control area and a fourth control area;
[0098] In response to a fourth operation targeting the fourth control area, the virtual character's viewpoint is controlled to rotate at a third preset speed;
[0099] The third preset speed is greater than the second preset speed.
[0100] In one exemplary embodiment of this disclosure, the third preset speed is equal to the first preset speed.
[0101] In one exemplary embodiment of this disclosure, the designated area is the edge area of a virtual object in the virtual scene, wherein the virtual object is an object in which the virtual character can walk.
[0102] In one exemplary embodiment of this disclosure, the method further includes:
[0103] In response to the virtual character entering the designated area, when the current state of the virtual character meets preset conditions, the virtual character is controlled to perform a vaulting action.
[0104] In one exemplary embodiment of this disclosure, when the graphical user interface generates the third control area, the method further includes:
[0105] A reminder message is generated for the third control area on the graphical user interface.
[0106] In one exemplary embodiment of this disclosure, after controlling the virtual character's viewpoint direction to rotate at a second preset speed, the method further includes:
[0107] In response to the end of the third operation, the viewpoint direction of the virtual character is determined as the target viewpoint direction after rotating the viewpoint direction at a second preset speed.
[0108] In one exemplary embodiment of this disclosure, the method further includes:
[0109] In response to a fifth operation targeting the second control area, the virtual character is controlled to move toward the target viewpoint.
[0110] In one exemplary embodiment of this disclosure, the method further includes:
[0111] In response to the virtual character leaving the designated area, the third control area is deleted.
[0112] It should be noted that although several modules or units of the device for performing actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0113] Furthermore, although the steps of the method in this invention are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.
[0114] In an exemplary embodiment of the present invention, an electronic device capable of implementing the above-described method is also provided.
[0115] Those skilled in the art will understand that various aspects of the present invention can be implemented as systems, methods, or program products. Therefore, various aspects of the present invention can be specifically implemented in the following forms: entirely in hardware, entirely in software (including firmware, microcode, etc.), or in a combination of hardware and software, collectively referred to herein as “circuit,” “module,” or “system.”
[0116] The following reference Figure 8 To describe an electronic device 800 according to this embodiment of the present invention. Figure 8 The electronic device 800 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0117] like Figure 8 As shown, the electronic device 800 is manifested in the form of a general-purpose computing device. The components of the electronic device 800 may include, but are not limited to: at least one processing unit 810, at least one storage unit 820, a bus 830 connecting different system components (including storage unit 820 and processing unit 810), and a display unit 840.
[0118] The storage unit stores program code that can be executed by the processing unit 810, causing the processing unit 810 to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of the present invention. For example, the processing unit 810 can perform actions such as... Figure 1 The steps shown are as follows: S110: In response to a first operation on the first control area, control the virtual character's viewpoint direction to rotate at a first preset speed; S120: In response to a second operation on the second control area, control the virtual character to move in the current viewpoint direction; S130: In response to the virtual character entering a designated area, generate a third control area in the graphical user interface; S140: In response to a third operation on the third control area, control the virtual character's viewpoint direction to rotate at a second preset speed; wherein, the first preset speed is greater than the second preset speed.
[0119] Storage unit 820 may include a readable medium in the form of a volatile storage unit, such as random access memory (RAM) 8201 and / or cache memory 8202, and may further include a read-only memory (ROM) 8203.
[0120] The storage unit 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0121] Bus 830 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0122] Electronic device 800 can also communicate with one or more external devices 900 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 800, and / or with any device that enables electronic device 800 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 850. Furthermore, electronic device 800 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 860. As shown, network adapter 860 communicates with other modules of electronic device 800 via bus 830. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0123] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, portable hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the method according to the embodiments of the present invention.
[0124] In exemplary embodiments of the present invention, a computer-readable storage medium is also provided, on which a program product capable of implementing the methods described above is stored. In some possible embodiments, various aspects of the present invention may also be implemented as a program product comprising program code that, when the program product is run on a terminal device, causes the terminal device to perform the steps of the various exemplary embodiments of the present invention described in the "Exemplary Methods" section above.
[0125] According to embodiments of the present invention, a program product for implementing the above-described method may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0126] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0127] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0128] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0129] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0130] Furthermore, the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.
[0131] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention described herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not invented herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the claims.
Claims
1. A method for controlling a virtual character, characterized in that, The method includes providing a graphical user interface (GUI) via a terminal device, wherein the GUI includes at least a first control area, a second control area, a game scene, and a virtual character; the method includes: In response to a first operation targeting the first control area, the virtual character's viewpoint is controlled to rotate at a first preset speed; In response to a second operation targeting the second control area, the virtual character is controlled to move in the current view direction; In response to the virtual character entering the designated area, a third control area is generated in the graphical user interface; wherein, the designated area is the edge area of a virtual object in the game scene, and the virtual object is an object in which the virtual character can walk; In response to a third operation targeting the third control area, the virtual character's viewpoint is controlled to rotate at a second preset speed; wherein the first preset speed is greater than the second preset speed; In response to the virtual character entering the designated area, when the current state of the virtual character meets the preset conditions, the virtual character is controlled to perform a vaulting action. The preset conditions are that the virtual character moves along a certain direction of movement, there is an obstacle in that direction of movement, and when the virtual character jumps, the height of the lowest point of the virtual character from the ground in the designated area is higher than the height of the obstacle.
2. The method according to claim 1, characterized in that, The response of the virtual character entering the designated area, generating a third control area in the graphical user interface, includes: In response to the virtual character entering the designated area, the first control area is switched to the third control area.
3. The method according to claim 1, characterized in that, The response of the virtual character entering the designated area, generating a third control area in the graphical user interface, includes: In response to the virtual character entering the designated area, the first control area is divided into a third control area and a fourth control area; In response to a fourth operation targeting the fourth control area, the virtual character's viewpoint is controlled to rotate at a third preset speed; The third preset speed is greater than the second preset speed.
4. The method according to claim 3, characterized in that, The third preset speed is equal to the first preset speed.
5. The method according to claim 1, characterized in that, When generating the third control area in the graphical user interface, the method further includes: A reminder message is generated for the third control area on the graphical user interface.
6. The method according to claim 1, characterized in that, After controlling the virtual character's viewpoint to rotate at a second preset speed, the method further includes: In response to the end of the third operation, the viewpoint direction of the virtual character is determined as the target viewpoint direction after rotating the viewpoint direction at a second preset speed.
7. The method according to claim 6, characterized in that, The method further includes: In response to a fifth operation targeting the second control area, the virtual character is controlled to move toward the target viewpoint.
8. The method according to claim 1, characterized in that, The method further includes: In response to the virtual character leaving the designated area, the third control area is deleted.
9. A virtual character control device, characterized in that, A graphical user interface is provided via a terminal device, the graphical user interface including at least a first control area, a second control area, a game scene, and a virtual character, the device comprising: A viewpoint direction control module is used to respond to a first operation on the first control area and control the viewpoint direction of the virtual character to rotate at a first preset speed. The virtual character movement module is used to respond to a second operation targeting the second control area and control the virtual character to move in the current view direction; The control area change module is used to generate a third control area in the graphical user interface in response to the virtual character entering a designated area; wherein, the designated area is the edge area of a virtual object in the game scene, and the virtual object is an object in which the virtual character can walk; A viewpoint rotation speed switching module is used to respond to a third operation on the third control area and control the viewpoint direction of the virtual character to rotate at a second preset speed; wherein the first preset speed is greater than the second preset speed. In response to the virtual character entering the designated area, when the current state of the virtual character meets the preset conditions, the virtual character is controlled to perform a vaulting action. The preset conditions are that the virtual character moves along a certain direction of movement, there is an obstacle in that direction of movement, and when the virtual character jumps, the height of the lowest point of the virtual character from the ground in the designated area is higher than the height of the obstacle.
10. A computer storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processing unit, it implements the virtual character control method according to any one of claims 1-8.
11. An electronic device, characterized in that, include: Processing unit; as well as A storage unit for storing the executable instructions of the processing unit; The processing unit is configured to execute the virtual character control method according to any one of claims 1-8 by executing the executable instructions.
Citation Information
Patent Citations
Browsing method for realizing palm apartment viewing according to 3D (three-dimensional) galleries and 3D apartment viewing system
CN103530799A
Virtual character viewing angle direction control method and device
CN106293070A