Virtual object control method, device, electronic device and readable medium

By providing a graphical user interface and moving controls to switch perspectives in the game, the problem of single interaction mode in the game is solved, flexible operation of different game scenarios is achieved, and the player's gaming experience is improved.

CN114159787BActive Publication Date: 2025-04-25NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111519058.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-13
Publication Date
2025-04-25
Estimated Expiration
2041-12-13

AI Technical Summary

Technical Problem

The interaction method in the game is too single and cannot meet the actual operation needs of players for different game scenarios, affecting the player's gaming experience.

Method used

The electronic terminal provides a graphical user interface to display game scenes and virtual objects, configure mobile controls, allow the virtual camera to switch viewing angles, and change the mobile controls according to viewing angles to support operations in different control modes.

Benefits of technology

It realizes the control of virtual objects through different interactive methods in the game, meets the player's operation needs for different game scenarios, and greatly improves the interaction convenience during the game process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114159787B_ABST
    Figure CN114159787B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a control method, device, electronic device and readable medium for a virtual object. The method includes: during a game, a terminal can display a first presentation field of view formed by a virtual camera capturing a game scene at the current position of the virtual object in a graphical user interface, and display a first mobile control corresponding to the current position. If a player needs to control the virtual object to switch the perspective, the terminal can respond to a perspective switching instruction, switch the presentation field of view according to the perspective switching instruction, and display a second presentation field of view in the graphical user interface in which the virtual camera captures the game scene at the target position after the switch, and switch the first mobile control to a second mobile control corresponding to the target position. Then the terminal can respond to a touch operation on the second mobile control to control the virtual object to turn and move in the game scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of game technology, and in particular to a method for controlling a virtual object, a device for controlling a virtual object, an electronic device, and a computer-readable medium. Background Art

[0002] At present, games have gradually become an important leisure method for users. With the porting or development of a large number of games on mobile terminals, a large number of user groups have entered these games. Among them, in some games, there are usually at least two scenarios, one is the movement mode in the non-combat state, at this time the player can control the movement speed and direction of the corresponding virtual object; the other is the attack mode in the combat state, in which the player can control the virtual object to perform the corresponding attack behavior. In the game, players can only play the game through a single interactive method in different game scenarios, resulting in the inability to meet the actual operation needs of players in different game scenarios in the game, affecting the player's gaming experience. Summary of the invention

[0003] The embodiments of the present invention provide a method, device, electronic device and computer-readable storage medium for controlling a virtual object, so as to solve or partially solve the problem in the related art that the interaction method in the game is too single, resulting in the inability to meet the player's operational needs for different game perspectives during the game.

[0004] An embodiment of the present invention discloses a method for controlling a virtual object. A graphical user interface is provided through an electronic terminal. Content displayed by the graphical user interface includes at least part of a game scene and a virtual object located in the game scene. The virtual object is configured with a mobile control. The method includes:

[0005] Displaying in the graphical user interface a first presentation field of view formed by a virtual camera capturing the game scene at the current position of the virtual object, and displaying a first mobile control corresponding to the current position;

[0006] In response to a perspective switching instruction, controlling the virtual camera to switch from the current position to the target position of the virtual object, capturing the game scene at the target position to switch a first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and switching the first mobile control to a second mobile control, the second mobile control being different from the first mobile control;

[0007] In response to a touch operation on the second mobile control, a steering parameter of the virtual object is determined according to a touch parameter of the touch operation, and the virtual object is controlled to perform steering movement in the game scene according to the steering parameter.

[0008] Optionally, the virtual object includes at least one sub-virtual model, the sub-virtual model is configured with corresponding position information, and in response to a perspective switching instruction, the virtual camera is controlled to switch from the current position to the target position of the virtual object, including:

[0009] In response to a perspective switching instruction, determining a target sub-virtual model corresponding to the perspective switching instruction, and acquiring target orientation information corresponding to the target sub-virtual model;

[0010] The virtual camera is controlled to switch from the current position to a target position corresponding to the target orientation information of the target sub-virtual model.

[0011] Optionally, the mobile control is configured with different control modes, and the virtual camera is located at different positions of the virtual object in different control modes, and the control mode includes at least one of a first control mode and a second control mode; wherein, in the first control mode, the mobile control is configured to control the moving direction and moving speed of the virtual object; and in the second control mode, the mobile control is configured to control the turning direction and moving speed of the virtual object.

[0012] Optionally, the capturing of the game scene at the target position to switch a first presentation field of view picture displayed in the graphical user interface to a second presentation field of view picture corresponding to the target position, and switching the first mobile control to a second mobile control, comprises:

[0013] Determining a current control mode corresponding to the first mobile control, and determining a target control mode corresponding to the perspective switching instruction;

[0014] The game scene is captured at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and the first mobile control is switched to a second mobile control corresponding to the target control mode.

[0015] Optionally, in the first control mode, the virtual camera is located at a position facing the virtual object, capturing the game scene at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and switching the first mobile control to a second mobile control corresponding to the target control mode, comprises:

[0016] If the target control mode is the first control mode, the game scene is captured at the positive facing position of the virtual object to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the positive facing position, and the first mobile control is switched to a second mobile control corresponding to the target control mode;

[0017] The second movement control includes at least one or more of a forward control, a deceleration control, a left direction control, and a right direction control.

[0018] Optionally, the steering parameter includes a target direction, and the responding to the touch operation on the second mobile control, determining the steering parameter of the virtual object according to the touch parameter of the touch operation, and controlling the virtual object to perform steering movement in the game scene according to the steering parameter, comprises:

[0019] In response to a click operation on the left-facing control or the right-facing control, a target direction corresponding to the click operation is determined, and the virtual object is controlled to move along the target direction in the game scene.

[0020] Optionally, the steering parameter includes a target speed and a target direction, and the responding to the touch operation on the second mobile control, determining the steering parameter of the virtual object according to the touch parameter of the touch operation, and controlling the virtual object to perform steering movement in the game scene according to the steering parameter, comprises:

[0021] In response to touch operations on the forward control and the left-facing control, determine a target movement speed corresponding to the forward control and a target direction corresponding to the left-facing control, and control the virtual object to move in the game scene along the target direction at the target movement speed;

[0022] Or, in response to touch operations on the forward control and the right control, determine the movement speed information corresponding to the forward control and the target direction corresponding to the right control, and control the virtual object to move along the target direction in the game scene according to the movement speed information.

[0023] Optionally, it also includes:

[0024] In response to a click operation on the forward control, controlling the virtual object to move forward in the game scene, or increasing the moving speed of the virtual object in the game scene;

[0025] In response to a click operation on the deceleration control, the virtual object is controlled to move backward in the game scene, or the moving speed of the virtual object in the game scene is reduced.

[0026] Optionally, in the second control mode, the virtual camera is located at a target side facing position of the virtual object, capturing the game scene at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and switching the first mobile control to a second mobile control corresponding to the target control mode, comprises:

[0027] If the target control mode is the second control mode, the game scene is captured at the target side orientation position of the virtual object to switch the first presentation field of view picture displayed in the graphical user interface to a second presentation field of view picture corresponding to the target side orientation position, and the first mobile control is switched to a second mobile control corresponding to the target control mode;

[0028] The target side facing position includes a left-side facing position or a right-side facing position in the direction of travel of the virtual object, and the second movement control includes at least one of a movement speed control, a left steering control, and a right steering control.

[0029] Optionally, the steering parameter includes a steering direction and a steering distance, and the responding to the touch operation on the second mobile control, determining the steering parameter of the virtual object according to the touch parameter of the touch operation, and controlling the virtual object to perform steering movement in the game scene according to the steering parameter, comprises:

[0030] In response to a click touch operation on the left turn control, determining a left turn direction and a first turn radius corresponding to the click touch operation, and controlling the virtual object to execute the left turn direction with the first turn radius during movement in the game scene;

[0031] or, in response to a sliding touch operation on the left turn control, determining a left turn direction and a second turning radius corresponding to the sliding touch operation, and controlling the virtual object to execute the left turn direction with the second turning radius during the movement of the virtual object in the game scene;

[0032] Wherein, the second turning radius is greater than the first turning radius.

[0033] Optionally, responding to the touch operation on the second mobile control, determining a steering parameter of the virtual object according to a touch parameter of the touch operation, and controlling the virtual object to perform steering movement in the game scene according to the steering parameter, includes:

[0034] In response to a click touch operation on the right turn control, determining a right turn direction and a first turn radius corresponding to the click touch operation, and controlling the virtual object to execute the right turn direction with the first turn radius during movement in the game scene;

[0035] or, in response to a sliding touch operation on the right turn control, determining a right turn direction and a second turning radius corresponding to the sliding touch operation, and controlling the virtual object to execute the right turn direction with the second turning radius during the movement of the virtual object in the game scene;

[0036] Wherein, the second turning radius is greater than the first turning radius.

[0037] Optionally, the steering parameter includes a target speed, and the method further includes:

[0038] In response to a touch operation on the movement speed control, a target movement speed corresponding to the touch operation is determined, and the virtual object is controlled to move in the game scene at the target movement speed.

[0039] Optionally, it also includes:

[0040] In response to the movement control being configured as the second control mode, the virtual object is controlled to move in the game scene at a preset constant speed.

[0041] Optionally, the content displayed by the graphical user interface further includes an attack selection control corresponding to the virtual object, and the step of responding to the perspective switching instruction, determining a target sub-virtual model corresponding to the perspective switching instruction, and acquiring target position information corresponding to the target sub-virtual model includes:

[0042] In response to a touch operation on the attack selection control, an attack function area corresponding to the virtual object is displayed in the graphical user interface, wherein the attack function area includes a plurality of attack viewing angles;

[0043] In response to a perspective selection operation for the attack function area, a target attack perspective corresponding to the perspective selection operation is obtained, a target sub-virtual model corresponding to the target attack perspective is determined, and target orientation information corresponding to the target sub-virtual model is obtained.

[0044] Optionally, the responding to the touch operation on the attack selection control to display an attack function area associated with the virtual object in the graphical user interface includes:

[0045] In response to a sliding operation on the attack selection control, an attack function area corresponding to the virtual object is displayed in the graphical user interface.

[0046] Optionally, the attack perspective includes at least one of a front attack perspective, a side attack perspective and a rear attack perspective.

[0047] Optionally, the content displayed by the graphical user interface further includes an attack control, and the method further includes:

[0048] In response to a touch operation on the attack control, the virtual object is controlled to perform an attack operation under the target attack viewing angle.

[0049] The embodiment of the present invention further discloses a control device for a virtual object, which provides a graphical user interface through an electronic terminal, wherein the content displayed by the graphical user interface includes at least part of a game scene and a virtual object located in the game scene, and the virtual object is configured with a mobile control, and the device includes:

[0050] A content display module, configured to display in the graphical user interface a first presentation field of view formed by a virtual camera capturing the game scene at the current position of the virtual object, and to display a first mobile control corresponding to the current position;

[0051] a mobile control switching module, configured to control the virtual camera to switch from the current position to the target position of the virtual object in response to a view switching instruction, and to capture the game scene at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and to switch the first mobile control to a second mobile control, the second mobile control being different from the first mobile control;

[0052] A mobile control response module is used to respond to a touch operation on the second mobile control, determine a steering parameter of the virtual object according to touch parameters of the touch operation, and control the virtual object to turn and move in the game scene according to the steering parameters, wherein the touch parameters include a first touch parameter and a second touch parameter different from the first touch parameter.

[0053] Optionally, the virtual object includes at least one sub-virtual model, the sub-virtual model is configured with corresponding position information, and the mobile control switching module includes:

[0054] an orientation information acquisition submodule, for determining, in response to a perspective switching instruction, a target sub-virtual model corresponding to the perspective switching instruction, and acquiring target orientation information corresponding to the target sub-virtual model;

[0055] The target position switching submodule is used to control the virtual camera to switch from the current position to the target position corresponding to the target orientation information of the target sub-virtual model.

[0056] Optionally, the mobile control is configured with different control modes, and the virtual camera is located at different positions of the virtual object in different control modes, and the control mode includes at least one of a first control mode and a second control mode; wherein, in the first control mode, the mobile control is configured to control the moving direction and moving speed of the virtual object; and in the second control mode, the mobile control is configured to control the turning direction and moving speed of the virtual object.

[0057] Optionally, the mobile control switching module includes:

[0058] A control mode determination submodule, used to determine a current control mode corresponding to the first mobile control, and determine a target control mode corresponding to the perspective switching instruction;

[0059] A content switching submodule is used to capture the game scene at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and to switch the first mobile control to a second mobile control corresponding to the target control mode.

[0060] Optionally, in the first control mode, the virtual camera is located at a position facing the virtual object, and the content switching submodule is specifically configured to:

[0061] If the target control mode is the first control mode, the game scene is captured at the positive facing position of the virtual object to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the positive facing position, and the first mobile control is switched to a second mobile control corresponding to the target control mode;

[0062] The second movement control includes at least one or more of a forward control, a deceleration control, a left direction control, and a right direction control.

[0063] Optionally, the steering parameter includes a target direction, and the mobile control response module is specifically used for:

[0064] In response to a click operation on the left-facing control or the right-facing control, a target direction corresponding to the click operation is determined, and the virtual object is controlled to move along the target direction in the game scene.

[0065] Optionally, the steering parameter includes a target speed and a target direction, and the responding to the touch operation on the second mobile control, determining the steering parameter of the virtual object according to the touch parameter of the touch operation, and controlling the virtual object to perform steering movement in the game scene according to the steering parameter, comprises:

[0066] In response to touch operations on the forward control and the left-facing control, determine a target movement speed corresponding to the forward control and a target direction corresponding to the left-facing control, and control the virtual object to move in the game scene along the target direction at the target movement speed;

[0067] Or, in response to touch operations on the forward control and the right control, determine the movement speed information corresponding to the forward control and the target direction corresponding to the right control, and control the virtual object to move along the target direction in the game scene according to the movement speed information.

[0068] Optionally, it also includes:

[0069] A first movement control module, configured to respond to a click operation on the forward control to control the virtual object to move forward in the game scene, or to increase the movement speed of the virtual object in the game scene;

[0070] The second movement control module is used to respond to a click operation on the deceleration control to control the virtual object to move backward in the game scene, or to reduce the movement speed of the virtual object in the game scene.

[0071] Optionally, in the second control mode, the virtual camera is located at a target side facing position of the virtual object, and the content switching submodule is specifically used to:

[0072] If the target control mode is the second control mode, the game scene is captured at the target side orientation position of the virtual object to switch the first presentation field of view picture displayed in the graphical user interface to a second presentation field of view picture corresponding to the target side orientation position, and the first mobile control is switched to a second mobile control corresponding to the target control mode;

[0073] The target side facing position includes a left-side facing position or a right-side facing position in the direction of travel of the virtual object, and the second movement control includes at least one of a movement speed control, a left steering control, and a right steering control.

[0074] Optionally, the steering parameter includes a steering direction and a steering distance, and the mobile control response module is specifically used for:

[0075] In response to a click touch operation on the left turn control, determining a left turn direction and a first turn radius corresponding to the click touch operation, and controlling the virtual object to execute the left turn direction with the first turn radius during movement in the game scene;

[0076] or, in response to a sliding touch operation on the left turn control, determining a left turn direction and a second turning radius corresponding to the sliding touch operation, and controlling the virtual object to execute the left turn direction with the second turning radius during the movement of the virtual object in the game scene;

[0077] Wherein, the second turning radius is greater than the first turning radius.

[0078] Optionally, the mobile control response module is specifically used to:

[0079] In response to a click touch operation on the right turn control, determining a right turn direction and a first turn radius corresponding to the click touch operation, and controlling the virtual object to execute the right turn direction with the first turn radius during movement in the game scene;

[0080] or, in response to a sliding touch operation on the right turn control, determining a right turn direction and a second turning radius corresponding to the sliding touch operation, and controlling the virtual object to execute the right turn direction with the second turning radius during the movement of the virtual object in the game scene;

[0081] Wherein, the second turning radius is greater than the first turning radius.

[0082] Optionally, the steering parameter includes a target moving speed, and the device further includes:

[0083] The movement speed control module is used to respond to the touch operation on the movement speed control, determine the target movement speed corresponding to the touch operation, and control the virtual object to move in the game scene at the target movement speed.

[0084] Optionally, it also includes:

[0085] The movement control module is used to control the virtual object to move in the game scene at a preset constant speed in response to the movement control being configured as the second control mode.

[0086] Optionally, the content displayed by the graphical user interface further includes an attack selection control corresponding to the virtual object, and the position information acquisition submodule is specifically used to:

[0087] In response to a touch operation on the attack selection control, an attack function area corresponding to the virtual object is displayed in the graphical user interface, wherein the attack function area includes a plurality of attack viewing angles;

[0088] In response to a perspective selection operation for the attack function area, a target attack perspective corresponding to the perspective selection operation is obtained, a target sub-virtual model corresponding to the target attack perspective is determined, and target orientation information corresponding to the target sub-virtual model is obtained.

[0089] Optionally, the position information acquisition submodule is specifically used for:

[0090] In response to a sliding operation on the attack selection control, an attack function area corresponding to the virtual object is displayed in the graphical user interface.

[0091] Optionally, the attack perspective includes at least one of a front attack perspective, a side attack perspective and a rear attack perspective.

[0092] Optionally, the content displayed by the graphical user interface further includes an attack control, and the device further includes:

[0093] The attack execution module is used to respond to the touch operation on the attack control and control the virtual object to perform the attack operation under the target attack perspective.

[0094] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0095] The memory is used to store computer programs;

[0096] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0097] The embodiment of the present invention further discloses one or more computer-readable media on which instructions are stored. When executed by one or more processors, the processors are enabled to execute the method described in the embodiment of the present invention.

[0098] The embodiments of the present invention include the following advantages:

[0099] In an embodiment of the present invention, during a game, the terminal may display in a graphical user interface a first presentation field of view formed by a virtual camera capturing a game scene at the current position of a virtual object and a first mobile control corresponding to the current position. If a player needs to control the virtual object to switch the perspective, the terminal may respond to a perspective switching instruction and switch the presentation field of view according to the perspective switching instruction. In the graphical user interface, the virtual camera captures a second presentation field of view of the game scene at the target position after switching, and switches the first mobile control to a second mobile control corresponding to the target position. Then, the terminal may respond to a touch operation on the second mobile control to control the virtual object to turn and move in the game scene. Thus, in the game, different interaction modes are configured for the mobile controls of the virtual objects. When the user switches the observation perspective, the terminal may not only switch the corresponding presentation field of view, but also adaptively switch the mobile controls according to the user's observation perspective under the presentation field of view, so that the player can control the virtual object through different mobile controls under different observation perspectives, thereby satisfying the player's interaction needs for different game scenes and greatly improving the convenience of interaction during the game. BRIEF DESCRIPTION OF THE DRAWINGS

[0100] Figure 1 is a flowchart of a method for controlling a virtual object provided in an embodiment of the present invention;

[0101] Figure 2 is a schematic diagram of a virtual camera provided in an embodiment of the present invention;

[0102] Figure 3 is a schematic diagram of a game interface provided in an embodiment of the present invention;

[0103] Figure 4 is a schematic diagram of a game interface provided in an embodiment of the present invention;

[0104] Figure 5 is a schematic diagram of a game interface provided in an embodiment of the present invention;

[0105] Figure 6 is a schematic diagram of a game interface provided in an embodiment of the present invention;

[0106] Figure 7 is a schematic diagram of a game interface provided in an embodiment of the present invention;

[0107] Figure 8 is a structural block diagram of a virtual object control method device provided in an embodiment of the present invention;

[0108] Fig. 9 is a block diagram of an electronic device provided in an embodiment of the present invention;

[0109] Fig.10is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0110] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0111] The control method of the virtual object in the embodiment of the present invention can be run on a local terminal device or a server. When the control method of the virtual object is run on a server, it can be a cloud game.

[0112] In an optional implementation, cloud gaming refers to a gaming method based on cloud computing. In the operation mode of cloud gaming, the operating entity of the game program and the entity presenting the game screen are separated. The storage and operation of the control method of the virtual object are completed on the cloud gaming server. The role of the cloud gaming client is used for receiving and sending data and presenting the game screen. For example, the cloud gaming client can be a display device with data transmission function close to the user side, such as a mobile terminal, a television, a computer, a handheld computer, etc.; but the cloud gaming server in the cloud is used to process the game data. When playing the game, the player operates the cloud gaming client to send operation instructions to the cloud gaming server. The cloud gaming server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the cloud gaming client through the network. Finally, the cloud gaming client decodes and outputs the game screen.

[0113] In an optional embodiment, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed and run by an electronic device in a conventional manner. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.

[0114] Among them, in the embodiment of the present invention, the electronic terminal is taken as a local terminal device for exemplary description. It can be understood that it can also be the cloud game client mentioned above, and the present invention is not limited to this.

[0115] In one example, in some games, there are usually at least two scenarios, one is the movement mode in a non-combat state, in which the player can control the movement speed and direction of the corresponding virtual object; the other is the attack mode in a combat state, in which the player can control the virtual object to perform the corresponding attack behavior.

[0116] For example, in some sailing games, in related technology ①, it can be a 2.5D sailing game. For the movement controls of virtual objects, the focus is on the direction control of virtual objects. The movement speed of the virtual ship in the game is often determined by a fixed control to move at full speed or stop. In this type of 2.5D wide perspective, the direction of the virtual ship is controlled by another control. This interaction method is too simple and is not suitable for scenes where the virtual ship changes state in the game, which easily limits the player's interactive control method; in related technology ②, the game controls the acceleration, deceleration and direction of the virtual ship through corresponding mobile controls, thereby controlling the movement of the virtual ship. In this interaction method, the movement control method of the virtual ship is too simple and is also not suitable for scenes where the virtual ship changes state in the game, resulting in the player being unable to control the virtual ship through appropriate interactive methods according to the development progress of the game, seriously affecting the player's gaming experience.

[0117] In this regard, one of the core inventive points of the embodiments of the present invention is that different control modes can be configured for mobile controls of virtual objects. As the viewing angle of the virtual object in the game switches, the control mode of the mobile control can adaptively change, so that the player can control the virtual object in the game through a suitable interactive method. Specifically, during the game, the terminal can display in the graphical user interface a first presentation field of view formed by the virtual camera capturing the game scene at the current position of the virtual object and a first mobile control corresponding to the current position. If the player needs to control the virtual object to switch the viewing angle, the terminal can respond to the viewing angle switching instruction and switch the presentation field of view according to the viewing angle switching instruction. The terminal captures a second presentation field of view of the game scene at the target position after switching, and switches the first mobile control to the second mobile control corresponding to the target position. Then the terminal can respond to the touch operation on the second mobile control to control the virtual object to turn and move in the game scene. Therefore, in the game, different interaction modes are configured for the mobile controls of the virtual objects. When the user switches the observation perspective, the terminal can not only switch the corresponding presentation field of view, but also adaptively switch the mobile controls according to the user's observation perspective under the presentation field of view, so that the player can control the virtual object through different mobile controls under different observation perspectives, thereby meeting the player's interaction needs for different game scenes and improving the convenience of interaction during the game.

[0118] Specifically, refer to Figure 1 , shows a flowchart of a method for controlling a virtual object provided in an embodiment of the present invention, wherein a graphical user interface is provided through an electronic terminal, and the content displayed by the graphical user interface includes at least part of a game scene and a virtual object located in the game scene, and the virtual object is configured with a mobile control, and specifically may include the following steps:

[0119] Step 101, displaying in the graphical user interface a first presentation field of view formed by a virtual camera capturing the game scene at the current position of the virtual object, and displaying a first mobile control corresponding to the current position;

[0120] In an embodiment of the present invention, the content displayed by the graphical user interface of the electronic terminal (hereinafter referred to as the terminal) may include at least part of the game scene and the virtual objects located in the game scene, wherein the virtual objects may be configured with corresponding interactive controls so that the player can control the virtual objects to move, attack, jump, squat, release skills, pick up items, etc. in the game scene through the interactive controls.

[0121] Optionally, the embodiment of the present invention uses a sailing game as an exemplary illustration. In the sailing game, the player can control the corresponding virtual ship to play the game in the game scene. When the terminal runs the application corresponding to the sailing game, the corresponding game scene and the virtual ship in the game scene, as well as various interactive controls for controlling the virtual ship, such as movement controls, attack controls, etc., can be displayed through a graphical user interface. The observation perspective of the virtual ship can include a first observation perspective and a second observation perspective. Under the first observation perspective, only part of the virtual ship can be displayed in the game interface to present the player with an observation field closer to the "first-person perspective" in the graphical user interface; under the second observation perspective, the entire virtual ship can be displayed in the game interface to present the player with a larger observation field with a wide perspective. In the embodiment of the present invention, the first observation perspective of displaying the virtual ship in the game interface is used as an example for exemplary illustration. It can be understood that the present invention is not limited to this.

[0122] In the first-person perspective, the position of the virtual camera at the virtual object is the user's current viewing angle of the game scene and the virtual object. As the user switches the viewing angle, the virtual camera can change the position of the virtual ship accordingly, so that the terminal can capture the game scene according to the position of the virtual camera at the virtual ship, and use this to show the user the view from the corresponding viewing angle. Figure 2, shows a schematic diagram of a virtual camera provided in an embodiment of the present invention. When the virtual camera 210 is located at the facing position of the bow of the virtual ship 220, the terminal can display the game scene in front of the virtual ship and the bow position of the virtual ship in the graphical user interface; similarly, when the virtual camera is located on the port side of the virtual ship (the left facing position of the virtual ship's traveling direction), the terminal can display the game scene on the port side of the virtual ship and the port side of the virtual ship in the graphical user interface. For the starboard side and the rear, etc., the processing process is the same and will not be repeated here.

[0123] For the movement control of the virtual object, it can be configured with different control modes. The virtual camera can correspond to different control modes of the movement control at different positions of the virtual object. For example, when the virtual camera is located at the first position of the virtual object, it can correspond to the first control mode, and when it is located at the second position, it can correspond to the second control mode, and so on. In the first control mode, the movement control is configured to control the movement direction and movement speed of the virtual object; in the second control mode, the second movement control is configured to control the turning direction and movement speed of the virtual object.

[0124] It should be noted that, for the first control mode of the mobile control, the player can control the movement speed and movement direction of the virtual object in the game scene, and the emphasis is on fine-tuning the movement direction of the virtual object. For example, assuming that the virtual object moves along the north direction in the game scene, the player can control the movement speed of the virtual object along the north direction through the mobile control, and can also control the movement direction of the virtual object through the mobile control. In this state, the movement speed of the virtual object can change (accelerate or decelerate, etc.) during the process of the player touching the mobile control. When the player does not touch the mobile control, the virtual object can move at the default movement speed, or stop moving. For the second control mode of the mobile control, the player can control the movement speed and movement direction of the virtual object in the game scene, and the emphasis is on The movement and direction of the virtual object are adjusted. For example, when the player does not adjust the movement speed of the virtual object through the mobile control, the virtual object moves in a fixed direction at a default movement speed. During the movement, the player can adjust the movement speed of the virtual object through the mobile control, so that the virtual object moves in the game scene at a certain fixed movement speed. At the same time, the player can also control the virtual object to turn a certain angle to the left or right through the mobile control to control the virtual object to turn. Therefore, in the game, as the game state of the virtual object switches, the terminal can adaptively adjust the control mode of the mobile control, so that the player can control the virtual object in the corresponding state through the mobile control in the corresponding control mode, thereby meeting the player's interaction needs for different game scenes and greatly improving the convenience of interaction during the game.

[0125] During the game, the terminal can first determine the current position of the virtual camera at the virtual object, and then display the first presentation field of view formed by the virtual camera capturing the game scene at the current position of the virtual object in the graphical user interface, and display the first mobile control corresponding to the current position, so that the player can control the virtual object in the current observation angle through the first mobile control. Among them, the presentation field of view can be the field of view that the player can see in the graphical user interface formed by the virtual camera capturing the game scene at the corresponding position of the virtual object, and the presentation field of view can change as the player controls the movement of the virtual object in the game scene or switches the perspective, etc.

[0126] In one example, referring to Figure 3 , shows a schematic diagram of a game interface provided in an embodiment of the present invention, wherein a nautical game application is run through a terminal and a game interface 30 is displayed in a graphical user interface, wherein the game interface 30 includes a virtual ship 310 and a mobile control 320. Wherein, assuming that the virtual camera is located at the forward facing position of the bow of the virtual ship 310, corresponding to the forward facing perspective of the ship, the terminal can collect the game scene with the forward facing perspective and display the corresponding first presentation field of view; assuming that the virtual camera is located at the left facing position of the virtual ship 310, for the left facing perspective of the ship, the terminal can collect the game scene with the left facing perspective and display the corresponding second presentation field of view, etc. In addition, when the virtual camera is located at other positions, the terminal can collect the game scene according to the corresponding perspective and display the corresponding presentation field of view. In this process, if the position of the virtual camera does not change, the terminal can determine the forward facing perspective of the virtual ship 310, and then display the first presentation field of view corresponding to the forward facing perspective and the corresponding mobile control 320 in the game interface, and the mobile control 320 can be used to control the virtual ship 310 to move in the game scene.

[0127] Step 102, in response to the perspective switching instruction, controlling the virtual camera to switch from the current position to the target position of the virtual object, capturing the game scene at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and switching the first mobile control to a second mobile control, the second mobile control being different from the first mobile control;

[0128] During the game, as the player controls the virtual object, when the user switches the perspective, the terminal can adjust the corresponding presentation field of view according to the perspective switching instruction and switch the control mode of the mobile control. Specifically, the terminal can respond to the perspective switching instruction, determine the target sub-virtual model corresponding to the perspective switching instruction, and obtain the target orientation information corresponding to the target sub-virtual model, control the virtual camera to switch from the current position to the target position corresponding to the target orientation information of the target sub-virtual model, and at the same time determine the current control mode corresponding to the first mobile control, and determine the target control mode corresponding to the perspective switching instruction, and then capture the game scene at the target position to switch the first presentation field of view displayed in the graphical user interface to the second presentation field of view corresponding to the target position, and switch the first mobile control to the second mobile control corresponding to the target control mode.

[0129] Optionally, the virtual object may include at least one sub-virtual model, each sub-virtual model may be configured with corresponding orientation information, and the orientation information may be used to characterize the current moving direction of the virtual object. Different sub-virtual models may correspond to different positions of the virtual camera on the virtual object, and correspond to mobile controls of different control modes. For example, sub-virtual model ① corresponds to the virtual camera facing the virtual object, and corresponds to the first mobile control of the first control mode; sub-virtual model ② corresponds to the virtual camera facing the left side of the virtual object, and corresponds to the second mobile control of the second control mode, etc., so that when the player inputs a perspective switching instruction, the terminal can simultaneously obtain the target control mode corresponding to the perspective switching instruction and determine the target sub-virtual model corresponding to the perspective switching instruction, and then switch the field of view and the mobile control.

[0130] In addition, because the hull model of the virtual ship cannot be fully displayed in the terminal's graphical user interface under the first-person perspective, when the virtual camera is framing at the corresponding position of the virtual ship, the terminal can only display part of the virtual ship in the graphical user interface, and it is difficult for the player to directly know in which direction the current perspective is in the hull. Therefore, for the sub-virtual model, the terminal can switch the sub-virtual model while switching the mobile control, including switching the current sub-virtual model to the target sub-virtual model, so that the player can intuitively and quickly understand the current moving direction of the virtual object and the current observation position of the virtual object through the display method of the sub-virtual mode (horizontal display or vertical display, etc.) and the display of direction information (pointing to the top, the left, the back and the right, etc.), thereby improving the player's spatial perception of the virtual object and facilitating the player to make game decisions.

[0131] In a specific implementation, in the first control mode, the virtual camera can be located at the positive facing position of the virtual object. If the target control mode corresponding to the perspective switching instruction is the first control mode, the terminal can control the virtual camera to switch from the current position to the positive facing position of the virtual object (a position different from the current position), and capture the game scene at the positive facing position to switch the first presentation field of view displayed in the graphical user interface to the second presentation field of view corresponding to the positive facing position, and switch the first mobile control to the second mobile control corresponding to the target control mode. Among them, the second mobile control includes at least one or more of a forward control, a deceleration control, a left-facing control, and a right-facing control. The player can control the virtual object to move forward or increase the moving speed of the virtual object through the forward control, reduce the moving speed of the virtual object through the deceleration control, control the moving direction of the virtual object to shift to the left through the left-facing control, and control the moving direction of the virtual object to shift to the right through the right-facing control, etc.

[0132] In addition, in the second control mode, the virtual camera is located at the target side facing position of the virtual object. If the target control mode corresponding to the perspective switching instruction is the second control mode, the virtual camera is controlled to switch from the current position to the target side facing position of the virtual object (a position different from the current position), and the game scene is captured at the target side facing position to switch the first presentation field of view displayed in the graphical user interface to the second presentation field of view corresponding to the target side facing position, and the first mobile control is switched to the second mobile control corresponding to the target control mode. Among them, the target side facing position includes the left facing position or the right facing position in the direction of travel of the virtual object, and the second mobile control includes at least one of the speed control, the left steering control, and the right steering control. Then, the player can control the movement speed of the virtual object through the speed control, control the virtual object to turn left through the left steering control, and control the virtual object to turn right through the right steering control.

[0133] It should be noted that both the first mobile control and the second mobile control are controls for controlling the movement of virtual objects, and the differences between the two may include differences in control mode, operation mode, display mode, and implementation functions. For example, when the current game state of the virtual object corresponds to the first control mode, the terminal may display a first mobile control of the first style in the graphical user interface, and the movement direction and movement speed of the virtual object may be controlled by clicking the first mobile control; when the current game state of the virtual object corresponds to the second control mode, the second mobile control of the second style may be displayed in the graphical user interface, and the turning direction of the virtual object may be controlled by clicking or sliding the second mobile control, and the movement speed of the virtual object may also be controlled by clicking or sliding the second mobile control, etc. It is understandable that the control modes corresponding to the first mobile control and the second mobile control may be interchangeable, and the present invention does not limit this.

[0134] In an optional embodiment, the perspective switching of the virtual object can be switched from the moving perspective to the attacking perspective, or from the attacking perspective to the moving perspective. In the game, different game perspectives of the virtual object (i.e., the virtual camera is located at different positions of the virtual object) can correspond to different control modes of the mobile control, such as the moving perspective can correspond to the first control mode of the mobile control, the attacking perspective can correspond to the second control mode of the mobile control, and so on.

[0135] In a specific implementation, the terminal can display an attack selection control corresponding to the virtual object in a graphical user interface, and the player can select the angle of view to attack through the attack selection control, that is, select the attack direction. The terminal can respond to the touch operation on the attack selection control, display the attack function area corresponding to the virtual object in the graphical user interface, and the attack function area includes several attack angles, and then respond to the angle selection operation on the attack function area, obtain the target attack angle corresponding to the angle selection operation, and determine the target sub-virtual model corresponding to the target attack angle, and obtain the target position information corresponding to the target sub-virtual model, and then control the virtual camera to switch from the current position to the target position corresponding to the target position information of the target sub-virtual model, so as to display the second presentation field of view corresponding to the target attack angle in the graphical user interface, and switch the first mobile control to the second mobile control corresponding to the target attack angle, and switch the current sub-virtual model to the target sub-virtual model, so that the player can control the virtual object to move and attack under the target attack angle through the second mobile control. Among them, the attack function area can be an attack angle selection area, and the attack angle selection area can include at least one of the front attack angle, the side attack angle (including the left attack angle and the right attack angle, etc.) and the rear attack angle.

[0136] In addition, the attack function area can also be an attack method selection area, which may include frontal attack, side attack (including left attack and right attack, etc.) and rear attack, etc. When the player selects the corresponding attack method, the terminal can obtain the target attack perspective corresponding to the target attack method after determining the target attack method, and then control the virtual camera to switch from the current position of the virtual object to the target position corresponding to the target attack perspective, so as to display the second presentation field of view corresponding to the target attack perspective in the graphical user interface, and switch the first mobile control to the second mobile control corresponding to the target attack perspective, so that the player can control the virtual object to move and attack under the target attack perspective through the second mobile control.

[0137] Optionally, the attack function area can be a roulette wheel, which can be equally divided into different areas, each area can correspond to an attack perspective or attack method, so that the player can trigger the display of the attack function area by touching the attack selection control, and then slide to the corresponding area to select the target attack perspective or target attack method, and release the finger, and then the terminal determines the target attack perspective or target attack method according to the player's selection operation, and then determines the target attack perspective.

[0138] In one example, referring to Figure 4 , shows a schematic diagram of a game interface provided in an embodiment of the present invention, wherein a game interface 40 is displayed through a graphical user interface of a terminal, and a virtual ship 410, a first moving control 420, an attack selection control 430, and a current sub-virtual model 450 are displayed in the game interface 40. Assuming that the virtual ship 410 is currently in a sailing perspective, the game interface 40 may also include a first presentation field of view 440 of the virtual ship 410 in a sailing perspective. During the game, when the player wants to control the virtual ship 410 to attack, the player may touch the attack control 430 and slide in a certain direction, and the terminal may respond to the sliding operation on the attack selection control and display an attack function area 4301 corresponding to the attack selection control 430 in the game interface 40. The attack function area 4301 may include several attack perspectives, and the player may slide to the target attack perspective while maintaining the touch operation on the attack selection control 430, and then release the finger, and the terminal may use the attack perspective corresponding to the touch point where the player's finger last left as the target attack perspective.

[0139] Reference Figure 5 , shows a schematic diagram of a game interface provided in an embodiment of the present invention, wherein a game interface 50 is displayed through a graphical user interface of a terminal, and when the player's finger leaves the graphical user interface of the terminal, the terminal can control a virtual ship 510 to enter a target attack perspective to display a second presentation view 520 corresponding to the target attack perspective in the graphical user interface, and switch a first mobile control 420 to a second mobile control 530 corresponding to the target attack perspective, so that the player can control the virtual object to move and attack under the target attack perspective through the second mobile control 530, and at the same time, the current sub-virtual model 450 can be switched to a target sub-virtual model 540, so that in the game, different interaction modes are configured for the mobile control of the virtual ship, so that when the perspective of the virtual ship in the game changes, the terminal can not only switch the corresponding presentation view, but also adaptively provide an adapted mobile control according to the game perspective of the virtual ship under the presentation view, so that the player can control the virtual object under the corresponding game perspective through the switched mobile control, thereby meeting the player's interaction needs for different game scenes and greatly improving the convenience of interaction during the game.

[0140] For the sub-virtual model, refer to Figure 4 , 5 It can be seen that its configuration has a direction information ( Figure 4 The "protruding" position above the center, Figure 5 This direction information can be used to represent the current sailing direction of the virtual ship, so that when the observation perspective switches, the player can also understand the current sailing direction through the sub-virtual model corresponding to the virtual ship, which is convenient for the player to make corresponding game decisions.

[0141] In addition, the terminal can also display at least one virtual weapon of the virtual object in the graphical user interface. When the player touches the corresponding virtual weapon, the virtual object can be controlled to enter an attack state. The terminal can respond to the control operation on the virtual weapon, determine the target virtual weapon, and obtain the target attack perspective corresponding to the target virtual weapon, as well as the target control mode corresponding to the target attack perspective, control the virtual object to enter the target attack perspective to display a second presentation field of view corresponding to the target attack perspective in the graphical user interface, and switch the first mobile control to the second mobile control corresponding to the target attack perspective, so that the player can control the virtual object to move and attack under the target attack perspective through the second mobile control.

[0142] In one example, assuming that the virtual object is a virtual ship, virtual cannons for attacking enemies in different directions may be configured on the virtual ship, and the virtual cannons may include a bow cannon located at the bow of the virtual ship, a broadside cannon located on both sides of the virtual ship, and a tail cannon located at the rear of the virtual ship. Specifically, the player can directly touch the corresponding virtual cannon, and the terminal can switch to the target attack perspective corresponding to the virtual cannon selected by the player, such as switching to the target attack perspective corresponding to the left side of the ship, and then switch the first mobile control to the second mobile control corresponding to the target attack perspective, so that the player controls the virtual object to move and attack under the target attack perspective, so that in the game, different interaction modes are configured for the mobile control of the virtual ship, so that when the perspective of the virtual ship in the game changes, the terminal can not only switch the corresponding presentation perspective, but also provide an adaptive mobile control according to the game perspective of the virtual ship under the presentation perspective, so that the player can control the virtual object under the corresponding game perspective through the switched mobile control, which meets the player's interaction needs for different game scenes and greatly improves the convenience of interaction during the game.

[0143] Step 103, in response to a touch operation on the second mobile control, determining a steering parameter of the virtual object according to a touch parameter of the touch operation, and controlling the virtual object to perform steering movement in the game scene according to the steering parameter.

[0144] Optionally, in an embodiment of the present invention, the first control mode is the control mode of the mobile control when the virtual object is in a moving perspective, and the second control mode is the control mode of the mobile control when the virtual object is in an attacking perspective. It can be understood that the present invention is not limited to this.

[0145] Among them, for the second mobile control, when the user inputs different types of touch operations for the second mobile control, the terminal can determine the steering parameters of the virtual object according to the touch parameters corresponding to the touch operations, and then control the virtual object to turn and move in the game scene according to the steering parameters. For example, the touch operation may include click touch, slide touch, etc., and the corresponding touch parameters may include a first touch parameter and a second touch parameter different from the first touch parameter. For example, the first touch parameter may be the touch point corresponding to the click operation, and the terminal may determine which interactive control the touch operation input by the player corresponds to according to the touch point; the second touch parameter may be the sliding distance, sliding direction, etc. corresponding to the sliding operation. In addition, the first touch parameter and the second touch parameter may be interchangeable, and the present invention does not limit this.

[0146] In an optional embodiment, if the target control mode corresponding to the second mobile control is the first control mode, the second mobile control may include a forward control, a deceleration control, a left heading control, and a right heading control, and the player can control the movement of the virtual object through these interactive controls.

[0147] Specifically, if the virtual object moves at a default speed in the game scene, the terminal can respond to a click operation on the forward control to increase the movement speed of the virtual object in the game scene, or can respond to a click operation on the deceleration control to reduce the movement speed of the virtual object in the game scene. It can also respond to a click operation on the left direction control or the right direction control to determine the target direction corresponding to the click operation, and control the virtual object to move along the target direction in the game scene.

[0148] If the virtual object in the game scene needs the player to touch the forward control to move, the terminal can respond to the click operation on the forward control to control the virtual object to move forward in the game scene, or respond to the click operation on the deceleration control to control the virtual object to move backward in the game scene. It can also touch the left direction control or the right direction control to move in the corresponding direction while touching the forward control. The terminal can respond to the touch operation on the forward control and the left direction control, determine the target movement speed corresponding to the forward control and the target direction corresponding to the left direction control, and control the virtual object to move in the game scene along the target direction according to the target movement speed; it can also respond to the touch operation on the forward control and the right direction control, determine the movement speed information corresponding to the forward control and the target direction corresponding to the right direction control, and control the virtual object to move in the game scene along the target direction according to the movement speed information.

[0149] In one example, referring to Figure 6 , shows a schematic diagram of a game interface provided in an embodiment of the present invention, wherein a game interface 60 is displayed through a graphical user interface of a terminal, and a virtual ship 610, a mobile control 620, and a visual field 630 of the virtual ship 610 under a navigation perspective are displayed in the game interface 60. The mobile control 620 may include a forward control 6201, a deceleration control 6202, a left heading control 6203, and a right heading control 6204. Under the navigation perspective, a player may control the virtual ship 610 to accelerate and / or move through the forward control 6201, decelerate or move backward through the deceleration control 6202, control the virtual ship 610 to deviate to the left or yaw to the left through the left heading control 6203, and control the virtual ship 610 to deviate to the right or yaw to the right through the right heading control 6204.

[0150] In another optional embodiment, if the target control mode corresponding to the second mobile control is the second control mode, the second mobile control may include a movement speed control, a left direction control, and a right direction control, and the player may control the movement of the virtual object through these interactive controls.

[0151] Specifically, when the mobile control is configured as the second control mode, the terminal can control the virtual object to move in the game scene at a preset constant speed along the current direction. During the movement process, the terminal can respond to the touch operation on the speed control, determine the target speed corresponding to the touch operation, and control the virtual object to move in the game scene at the target speed. Among them, for the speed control, it can include a speed control control and a speed bar. The value corresponding to the current movement speed of the virtual object can be displayed on the speed control control. The player can drag the speed control control to move on the speed bar to adjust the movement speed of the virtual object in the game scene in real time. As the player drags the speed control control to move on the speed bar, the value on the speed control control can change in real time so that the player can perceive the current movement speed of the virtual object.

[0152] In addition, when the player wants to control the virtual ship to turn left, the terminal can also respond to the click touch operation for the left turn control, determine the left turn direction and the first turn radius corresponding to the click touch operation, and control the virtual object to perform the left turn direction with the first turn radius during the movement of the game scene, or respond to the slide touch operation for the left turn control, determine the left turn direction and the second turn radius corresponding to the slide touch operation, and control the virtual object to perform the left turn direction with the second turn radius during the movement of the game scene. When the player wants to control the virtual ship to turn right, the terminal can respond to the click touch operation for the right turn control, determine the right turn direction and the first turn radius corresponding to the click touch operation, and control the virtual object to perform the right turn direction with the first turn radius during the movement of the game scene, or respond to the slide touch operation for the right turn control, determine the right turn direction and the second turn radius corresponding to the slide touch operation, and control the virtual object to perform the right turn direction with the second turn radius during the movement of the game scene. Wherein, the second turn radius is greater than the first turn radius.

[0153] Among them, for the steering control, when the player clicks the steering control, the virtual object can be controlled to complete the normal steering; when the player inputs the sliding operation in the steering control, the virtual object can be controlled to complete the rapid full-rudder steering, that is, the steering radius of the normal steering can be configured as a fixed value, and each time the player clicks the steering control, the virtual object completes the steering of the fixed steering radius; the rapid full-rudder steering is the maximum radius that the virtual object can turn. When the player inputs the sliding operation on the corresponding steering control, the terminal can obtain the sliding direction and sliding distance corresponding to the sliding operation, and determine the steering direction according to the sliding direction and calculate the target steering radius according to the sliding distance and the maximum steering radius. When the sliding distance reaches the preset distance threshold of the maximum steering radius, the terminal can control the virtual object to complete the steering of the maximum steering radius in the direction of the object. If it is not reached, the virtual object is controlled to turn according to the actual steering radius, so that the player can flexibly choose a suitable method to control the virtual object to turn according to his own needs during the game. Optionally, for the steering radius of the sliding operation, it can be calculated by (sliding distance / distance threshold corresponding to the maximum steering radius)*maximum steering radius, and the present invention is not limited to this.

[0154] It should be noted that the second control mode may correspond to the side attack perspective of the virtual object. In this side attack perspective, the virtual object moves in the current direction. If the player still controls the movement of the virtual object with the interactive controls (forward control, deceleration control, left direction control, and right direction control) corresponding to the first control mode, since the control mode emphasizes slightly adjusting the moving direction of the ship, and in the side attack perspective, especially when the player attacks in the side attack perspective, how to control the virtual object to turn quickly to avoid the attack of the enemy virtual object is the primary requirement. Therefore, when the virtual object enters the side attack perspective, the terminal may switch the movement control from the first movement control corresponding to the first control mode to the second movement control of the second control mode, and control the virtual object to move at a constant movement speed. At the same time, the player can control the movement speed of the virtual object through the movement speed control, and the player can control the virtual object to turn quickly through the left and right steering controls. On the one hand, it meets the player's interactive control needs for different game scenes. On the other hand, the fast steering control method allows the player to flexibly control the virtual object in the game, thereby improving the convenience of the player's operation.

[0155] In one example, referring to Figure 7, showing a schematic diagram of a game interface provided in an embodiment of the present invention, wherein a game interface 70 is displayed through a graphical user interface of a terminal, and a virtual ship 710, a mobile control 720, and a visual field screen 730 of the virtual ship 710 under a (left) side attack perspective are displayed in the game interface 70. Among them, the mobile control 720 may include a speed control 7201, a left turn control 7202 and a right turn control 7203. In the side attack perspective, the virtual ship 710 moves in the game scene at a constant speed by default. The player can slide the speed control control 72011 in the speed control 7201 to move on the speed bar 72012 to control the movement speed of the virtual ship 710, and control the virtual ship 710 to quickly turn left (including normal turning or full rudder turning, etc.) through the left turn control 7203, and control the virtual ship 710 to quickly turn right (including normal turning or full rudder turning, etc.) through the right turn control 7203. In the game, different interaction modes are configured for the mobile controls of virtual objects, so that when the state of the virtual object in the game changes, the terminal can adaptively provide an adaptive mobile control according to the target state of the virtual object, so that the player can control the virtual object in the target state under the corresponding mobile control, which meets the player's interaction needs for different game scenes and greatly improves the convenience of interaction during the game.

[0156] In addition, when the virtual object is in an attacking perspective or an attacking perspective, the terminal can display a corresponding attack control in the graphical user interface so that the player can control the virtual object to attack through the attack control, and the terminal can respond to the touch operation on the attack control to control the virtual object to perform the attack operation under the target attacking perspective. For example, assuming that the virtual object is a virtual ship, the player can control the bow gun, side gun, and stern gun of the virtual ship to attack through the attack control, and the present invention is not limited to this.

[0157] It should be noted that the embodiments of the present invention include but are not limited to the above examples. It is understandable that under the guidance of the ideas of the embodiments of the present invention, those skilled in the art can also make settings according to actual needs, and the present invention is not limited to this.

[0158] In an embodiment of the present invention, during a game, the terminal may display in a graphical user interface a first presentation field of view formed by a virtual camera capturing a game scene at the current position of a virtual object and a first mobile control corresponding to the current position. If a player needs to control the virtual object to switch the perspective, the terminal may respond to a perspective switching instruction and switch the presentation field of view according to the perspective switching instruction. In the graphical user interface, the virtual camera captures a second presentation field of view of the game scene at the target position after switching, and switches the first mobile control to a second mobile control corresponding to the target position. Then, the terminal may respond to a touch operation on the second mobile control to control the virtual object to turn and move in the game scene. Thus, in the game, different interaction modes are configured for the mobile controls of the virtual objects. When the user switches the observation perspective, the terminal may not only switch the corresponding presentation field of view, but also adaptively switch the mobile controls according to the user's observation perspective under the presentation field of view, so that the player can control the virtual object through different mobile controls under different observation perspectives, thereby satisfying the player's interaction needs for different game scenes and greatly improving the convenience of interaction during the game.

[0159] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0160] Reference Figure 8 , shows a structural block diagram of a virtual object control method device provided in an embodiment of the present invention, wherein a graphical user interface is provided through an electronic terminal, and the content displayed by the graphical user interface includes at least part of a game scene and a virtual object located in the game scene, and the virtual object is configured with a mobile control, which may specifically include the following modules:

[0161] A content display module 801 is used to display in the graphical user interface a first presentation field of view formed by a virtual camera capturing the game scene at the current position of the virtual object, and to display a first mobile control corresponding to the current position;

[0162] A mobile control switching module 802 is used to control the virtual camera to switch from the current position to the target position of the virtual object in response to a perspective switching instruction, and to capture the game scene at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and to switch the first mobile control to a second mobile control, which is different from the first mobile control;

[0163] The mobile control response module 803 is used to respond to the touch operation on the second mobile control, determine the steering parameters of the virtual object according to the touch parameters of the touch operation, and control the virtual object to turn and move in the game scene according to the steering parameters, wherein the touch parameters include a first touch parameter and a second touch parameter different from the first touch parameter.

[0164] In an optional embodiment, the virtual object includes at least one sub-virtual model, the sub-virtual model is configured with corresponding position information, and the mobile control switching module 802 includes:

[0165] an orientation information acquisition submodule, for determining, in response to a perspective switching instruction, a target sub-virtual model corresponding to the perspective switching instruction, and acquiring target orientation information corresponding to the target sub-virtual model;

[0166] The target position switching submodule is used to control the virtual camera to switch from the current position to the target position corresponding to the target orientation information of the target sub-virtual model.

[0167] In an optional embodiment, the mobile control is configured with different control modes, and the virtual camera is located at different positions of the virtual object in different control modes, and the control mode includes at least one of a first control mode and a second control mode; wherein, in the first control mode, the mobile control is configured to control the moving direction and moving speed of the virtual object; and in the second control mode, the mobile control is configured to control the turning direction and moving speed of the virtual object.

[0168] In an optional embodiment, the mobile control switching module 802 includes:

[0169] A control mode determination submodule, used to determine a current control mode corresponding to the first mobile control, and determine a target control mode corresponding to the perspective switching instruction;

[0170] A content switching submodule is used to capture the game scene at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and to switch the first mobile control to a second mobile control corresponding to the target control mode.

[0171] In an optional embodiment, in the first control mode, the virtual camera is located at a position facing the virtual object, and the content switching submodule is specifically configured to:

[0172] If the target control mode is the first control mode, the game scene is captured at the positive facing position of the virtual object to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the positive facing position, and the first mobile control is switched to a second mobile control corresponding to the target control mode;

[0173] The second movement control includes at least one or more of a forward control, a deceleration control, a left direction control, and a right direction control.

[0174] In an optional embodiment, the steering parameter includes a target direction, and the mobile control response module 803 is specifically used to:

[0175] In response to a click operation on the left-facing control or the right-facing control, a target direction corresponding to the click operation is determined, and the virtual object is controlled to move along the target direction in the game scene.

[0176] In an optional embodiment, the steering parameter includes a target movement speed and a target direction, and the response to the touch operation on the second mobile control determines the steering parameter of the virtual object according to the touch parameter of the touch operation, and controls the virtual object to perform steering movement in the game scene according to the steering parameter, including:

[0177] In response to touch operations on the forward control and the left-facing control, determine a target movement speed corresponding to the forward control and a target direction corresponding to the left-facing control, and control the virtual object to move in the game scene along the target direction at the target movement speed;

[0178] Or, in response to touch operations on the forward control and the right control, determine the movement speed information corresponding to the forward control and the target direction corresponding to the right control, and control the virtual object to move along the target direction in the game scene according to the movement speed information.

[0179] In an optional embodiment, it also includes:

[0180] A first movement control module, configured to respond to a click operation on the forward control to control the virtual object to move forward in the game scene, or to increase the movement speed of the virtual object in the game scene;

[0181] The second movement control module is used to respond to a click operation on the deceleration control to control the virtual object to move backward in the game scene, or to reduce the movement speed of the virtual object in the game scene.

[0182] In an optional embodiment, in the second control mode, the virtual camera is located at a target side facing position of the virtual object, and the content switching submodule is specifically used to:

[0183] If the target control mode is the second control mode, the game scene is captured at the target side orientation position of the virtual object to switch the first presentation field of view picture displayed in the graphical user interface to a second presentation field of view picture corresponding to the target side orientation position, and the first mobile control is switched to a second mobile control corresponding to the target control mode;

[0184] The target side facing position includes a left-side facing position or a right-side facing position in the direction of travel of the virtual object, and the second movement control includes at least one of a movement speed control, a left steering control, and a right steering control.

[0185] In an optional embodiment, the steering parameter includes a steering direction and a steering distance, and the mobile control response module 803 is specifically used to:

[0186] In response to a click touch operation on the left turn control, determining a left turn direction and a first turn radius corresponding to the click touch operation, and controlling the virtual object to execute the left turn direction with the first turn radius during movement in the game scene;

[0187] or, in response to a sliding touch operation on the left turn control, determining a left turn direction and a second turning radius corresponding to the sliding touch operation, and controlling the virtual object to execute the left turn direction with the second turning radius during the movement of the virtual object in the game scene;

[0188] Wherein, the second turning radius is greater than the first turning radius.

[0189] In an optional embodiment, the mobile control response module 803 is specifically used to:

[0190] In response to a click touch operation on the right turn control, determining a right turn direction and a first turn radius corresponding to the click touch operation, and controlling the virtual object to execute the right turn direction with the first turn radius during movement in the game scene;

[0191] or, in response to a sliding touch operation on the right turn control, determining a right turn direction and a second turning radius corresponding to the sliding touch operation, and controlling the virtual object to execute the right turn direction with the second turning radius during the movement of the virtual object in the game scene;

[0192] Wherein, the second turning radius is greater than the first turning radius.

[0193] In an optional embodiment, the steering parameter includes a target moving speed, and the device further includes:

[0194] The movement speed control module is used to respond to the touch operation on the movement speed control, determine the target movement speed corresponding to the touch operation, and control the virtual object to move in the game scene at the target movement speed.

[0195] In an optional embodiment, it also includes:

[0196] The movement control module is used to control the virtual object to move in the game scene at a preset constant speed in response to the movement control being configured as the second control mode.

[0197] In an optional embodiment, the content displayed by the graphical user interface also includes an attack selection control corresponding to the virtual object, and the position information acquisition submodule is specifically used to:

[0198] In response to a touch operation on the attack selection control, an attack function area corresponding to the virtual object is displayed in the graphical user interface, wherein the attack function area includes a plurality of attack viewing angles;

[0199] In response to a perspective selection operation for the attack function area, a target attack perspective corresponding to the perspective selection operation is obtained, a target sub-virtual model corresponding to the target attack perspective is determined, and target orientation information corresponding to the target sub-virtual model is obtained.

[0200] In an optional embodiment, the position information acquisition submodule is specifically used for:

[0201] In response to a sliding operation on the attack selection control, an attack function area corresponding to the virtual object is displayed in the graphical user interface.

[0202] In an optional embodiment, the attack perspective includes at least one of a front attack perspective, a side attack perspective, and a rear attack perspective.

[0203] In an optional embodiment, the content displayed by the graphical user interface also includes an attack control, and the device further includes:

[0204] The attack execution module is used to respond to the touch operation on the attack control and control the virtual object to perform the attack operation under the target attack perspective.

[0205] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0206] In addition, an embodiment of the present invention further provides an electronic device, such as Fig. 9 As shown, it includes a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902, and the memory 903 communicate with each other through the communication bus 904.

[0207] Memory 903, used for storing computer programs;

[0208] The processor 901 is used to execute the program stored in the memory 903 to implement the following steps:

[0209] Displaying in the graphical user interface a first presentation field of view formed by a virtual camera capturing the game scene at the current position of the virtual object, and displaying a first mobile control corresponding to the current position;

[0210] In response to a perspective switching instruction, controlling the virtual camera to switch from the current position to the target position of the virtual object, capturing the game scene at the target position to switch a first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and switching the first mobile control to a second mobile control, the second mobile control being different from the first mobile control;

[0211] In response to a touch operation on the second mobile control, a steering parameter of the virtual object is determined according to a touch parameter of the touch operation, and the virtual object is controlled to perform steering movement in the game scene according to the steering parameter.

[0212] In an optional embodiment, the virtual object includes at least one sub-virtual model, the sub-virtual model is configured with corresponding orientation information, and in response to a perspective switching instruction, the virtual camera is controlled to switch from the current position to the target position of the virtual object, including:

[0213] In response to a perspective switching instruction, determining a target sub-virtual model corresponding to the perspective switching instruction, and acquiring target orientation information corresponding to the target sub-virtual model;

[0214] The virtual camera is controlled to switch from the current position to a target position corresponding to the target orientation information of the target sub-virtual model.

[0215] In an optional embodiment, the mobile control is configured with different control modes, and the virtual camera is located at different positions of the virtual object in different control modes, and the control mode includes at least one of a first control mode and a second control mode; wherein, in the first control mode, the mobile control is configured to control the moving direction and moving speed of the virtual object; and in the second control mode, the mobile control is configured to control the turning direction and moving speed of the virtual object.

[0216] In an optional embodiment, the step of acquiring the game scene at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and switching the first mobile control to the second mobile control, includes:

[0217] Determining a current control mode corresponding to the first mobile control, and determining a target control mode corresponding to the perspective switching instruction;

[0218] The game scene is captured at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and the first mobile control is switched to a second mobile control corresponding to the target control mode.

[0219] In an optional embodiment, in the first control mode, the virtual camera is located at a position facing the virtual object, capturing the game scene at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and switching the first mobile control to a second mobile control corresponding to the target control mode, comprises:

[0220] If the target control mode is the first control mode, the game scene is captured at the positive facing position of the virtual object to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the positive facing position, and the first mobile control is switched to a second mobile control corresponding to the target control mode;

[0221] The second movement control includes at least one or more of a forward control, a deceleration control, a left direction control, and a right direction control.

[0222] In an optional embodiment, the steering parameter includes a target direction, the response to the touch operation on the second mobile control, determining the steering parameter of the virtual object according to the touch parameter of the touch operation, and controlling the virtual object to perform steering movement in the game scene according to the steering parameter, includes:

[0223] In response to a click operation on the left-facing control or the right-facing control, a target direction corresponding to the click operation is determined, and the virtual object is controlled to move along the target direction in the game scene.

[0224] In an optional embodiment, the steering parameter includes a target movement speed and a target direction, and the response to the touch operation on the second mobile control determines the steering parameter of the virtual object according to the touch parameter of the touch operation, and controls the virtual object to perform steering movement in the game scene according to the steering parameter, including:

[0225] In response to touch operations on the forward control and the left-facing control, determine a target movement speed corresponding to the forward control and a target direction corresponding to the left-facing control, and control the virtual object to move in the game scene along the target direction at the target movement speed;

[0226] Or, in response to touch operations on the forward control and the right control, determine the movement speed information corresponding to the forward control and the target direction corresponding to the right control, and control the virtual object to move along the target direction in the game scene according to the movement speed information.

[0227] In an optional embodiment, it also includes:

[0228] In response to a click operation on the forward control, controlling the virtual object to move forward in the game scene, or increasing the moving speed of the virtual object in the game scene;

[0229] In response to a click operation on the deceleration control, the virtual object is controlled to move backward in the game scene, or the moving speed of the virtual object in the game scene is reduced.

[0230] In an optional embodiment, in the second control mode, the virtual camera is located at a target side facing position of the virtual object, capturing the game scene at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and switching the first mobile control to a second mobile control corresponding to the target control mode, comprises:

[0231] If the target control mode is the second control mode, the game scene is captured at the target side orientation position of the virtual object to switch the first presentation field of view picture displayed in the graphical user interface to a second presentation field of view picture corresponding to the target side orientation position, and the first mobile control is switched to a second mobile control corresponding to the target control mode;

[0232] The target side facing position includes a left-side facing position or a right-side facing position in the direction of travel of the virtual object, and the second movement control includes at least one of a movement speed control, a left steering control, and a right steering control.

[0233] In an optional embodiment, the steering parameter includes a steering direction and a steering distance, and the response to the touch operation on the second mobile control determines the steering parameter of the virtual object according to the touch parameter of the touch operation, and controls the virtual object to perform steering movement in the game scene according to the steering parameter, including:

[0234] In response to a click touch operation on the left turn control, determining a left turn direction and a first turn radius corresponding to the click touch operation, and controlling the virtual object to execute the left turn direction with the first turn radius during movement in the game scene;

[0235] or, in response to a sliding touch operation on the left turn control, determining a left turn direction and a second turning radius corresponding to the sliding touch operation, and controlling the virtual object to execute the left turn direction with the second turning radius during the movement of the virtual object in the game scene;

[0236] Wherein, the second turning radius is greater than the first turning radius.

[0237] In an optional embodiment, responding to the touch operation on the second mobile control, determining the steering parameter of the virtual object according to the touch parameter of the touch operation, and controlling the virtual object to perform steering movement in the game scene according to the steering parameter, includes:

[0238] In response to a click touch operation on the right turn control, determining a right turn direction and a first turn radius corresponding to the click touch operation, and controlling the virtual object to execute the right turn direction with the first turn radius during movement in the game scene;

[0239] or, in response to a sliding touch operation on the right turn control, determining a right turn direction and a second turning radius corresponding to the sliding touch operation, and controlling the virtual object to execute the right turn direction with the second turning radius during the movement of the virtual object in the game scene;

[0240] Wherein, the second turning radius is greater than the first turning radius.

[0241] In an optional embodiment, the steering parameter includes a target moving speed, and the method further includes:

[0242] In response to a touch operation on the movement speed control, a target movement speed corresponding to the touch operation is determined, and the virtual object is controlled to move in the game scene at the target movement speed.

[0243] In an optional embodiment, it also includes:

[0244] In response to the movement control being configured as the second control mode, the virtual object is controlled to move in the game scene at a preset constant speed.

[0245] In an optional embodiment, the content displayed by the graphical user interface further includes an attack selection control corresponding to the virtual object, and the step of responding to the perspective switching instruction, determining a target sub-virtual model corresponding to the perspective switching instruction, and acquiring target position information corresponding to the target sub-virtual model includes:

[0246] In response to a touch operation on the attack selection control, an attack function area corresponding to the virtual object is displayed in the graphical user interface, wherein the attack function area includes a plurality of attack viewing angles;

[0247] In response to a perspective selection operation for the attack function area, a target attack perspective corresponding to the perspective selection operation is obtained, a target sub-virtual model corresponding to the target attack perspective is determined, and target orientation information corresponding to the target sub-virtual model is obtained.

[0248] In an optional embodiment, the displaying of the attack function area associated with the virtual object in the graphical user interface in response to the touch operation on the attack selection control includes:

[0249] In response to a sliding operation on the attack selection control, an attack function area corresponding to the virtual object is displayed in the graphical user interface.

[0250] In an optional embodiment, the attack perspective includes at least one of a front attack perspective, a side attack perspective, and a rear attack perspective.

[0251] In an optional embodiment, the content displayed by the graphical user interface further includes an attack control, and the method further includes:

[0252] In response to a touch operation on the attack control, the virtual object is controlled to perform an attack operation under the target attack viewing angle.

[0253] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0254] The communication interface is used for communication between the above terminal and other devices.

[0255] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0256] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0257] like Fig.10As shown, in another embodiment provided by the present invention, a computer-readable storage medium 1001 is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the control method of the virtual object described in the above embodiment.

[0258] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the method for controlling a virtual object described in the above embodiment.

[0259] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0260] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0261] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0262] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for controlling a virtual object, characterized in that: Providing a graphical user interface by an electronic terminal, wherein the content displayed by the graphical user interface includes at least a part of a game scene and a virtual object located in the game scene, the method comprising: In the mobile perspective, a first presentation field of view formed by the virtual camera capturing the game scene at the current position of the virtual object is displayed in the graphical user interface, and a first mobile control corresponding to the current position is displayed; wherein the first mobile control is configured with a first control mode; In response to a touch operation on the first mobile control, determining a direction parameter of the virtual object according to a touch parameter of the touch operation, and controlling the virtual object to move in the game scene according to the direction parameter; In response to a perspective switching instruction, the mobile perspective is switched to an attack perspective, the virtual camera is controlled to switch from the current position to the target position of the virtual object, and the game scene is captured at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and the first mobile control is switched to a second mobile control, the second mobile control is different from the first mobile control; the second mobile control is configured with a second control mode; wherein the first control mode is different from the second control mode; In response to a touch operation on the second mobile control, a steering parameter of the virtual object is determined according to a touch parameter of the touch operation, and the virtual object is controlled to perform steering movement in the game scene according to the steering parameter.

2. The method according to claim 1, characterized in that The virtual object includes at least one sub-virtual model, the sub-virtual model is configured with corresponding orientation information, and in response to a perspective switching instruction, the virtual camera is controlled to switch from the current position to the target position of the virtual object, including: In response to a perspective switching instruction, determining a target sub-virtual model corresponding to the perspective switching instruction, and acquiring target orientation information corresponding to the target sub-virtual model; The virtual camera is controlled to switch from the current position to a target position corresponding to the target orientation information of the target sub-virtual model.

3. The method according to claim 1 or 2, characterized in that: The mobile control is configured with different control modes, and the virtual camera is located at different positions of the virtual object in different control modes, and the control mode includes at least one of a first control mode and a second control mode; wherein, in the first control mode, the mobile control is configured to control the moving direction and moving speed of the virtual object; and in the second control mode, the mobile control is configured to control the turning direction and moving speed of the virtual object.

4. The method according to claim 3, characterized in that: The step of acquiring the game scene at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and switching the first mobile control to the second mobile control, comprises: Determining a current control mode corresponding to the first mobile control, and determining a target control mode corresponding to the perspective switching instruction; The game scene is captured at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and the first mobile control is switched to a second mobile control corresponding to the target control mode.

5. The method according to claim 4, characterized in that In the first control mode, the virtual camera is located at a position facing the virtual object, the game scene is captured at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and the first mobile control is switched to a second mobile control corresponding to the target control mode, including: If the target control mode is the first control mode, the game scene is captured at the positive facing position of the virtual object to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the positive facing position, and the first mobile control is switched to a second mobile control corresponding to the target control mode; The second movement control includes at least one or more of a forward control, a deceleration control, a left direction control, and a right direction control.

6. The method according to claim 5, characterized in that The steering parameter includes a target direction, the response to the touch operation on the second mobile control, determining the steering parameter of the virtual object according to the touch parameter of the touch operation, and controlling the virtual object to perform steering movement in the game scene according to the steering parameter, including: In response to a click operation on the left-facing control or the right-facing control, a target direction corresponding to the click operation is determined, and the virtual object is controlled to move along the target direction in the game scene.

7. The method according to claim 5, characterized in that The steering parameter includes a target speed and a target direction, the response to the touch operation on the second mobile control, determining the steering parameter of the virtual object according to the touch parameter of the touch operation, and controlling the virtual object to perform steering movement in the game scene according to the steering parameter, including: In response to touch operations on the forward control and the left-facing control, determine a target movement speed corresponding to the forward control and a target direction corresponding to the left-facing control, and control the virtual object to move in the game scene along the target direction at the target movement speed; Or, in response to touch operations on the forward control and the right control, determine the movement speed information corresponding to the forward control and the target direction corresponding to the right control, and control the virtual object to move along the target direction in the game scene according to the movement speed information.

8. The method according to claim 5, characterized in that Also includes: In response to a click operation on the forward control, controlling the virtual object to move forward in the game scene, or increasing the moving speed of the virtual object in the game scene; In response to a click operation on the deceleration control, the virtual object is controlled to move backward in the game scene, or the moving speed of the virtual object in the game scene is reduced.

9. The method according to claim 4, characterized in that In the second control mode, the virtual camera is located at a target side facing position of the virtual object, the game scene is captured at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and the first mobile control is switched to a second mobile control corresponding to the target control mode, including: If the target control mode is the second control mode, the game scene is captured at the target side orientation position of the virtual object to switch the first presentation field of view picture displayed in the graphical user interface to a second presentation field of view picture corresponding to the target side orientation position, and the first mobile control is switched to a second mobile control corresponding to the target control mode; The target side facing position includes a left-side facing position or a right-side facing position in the direction of travel of the virtual object, and the second movement control includes at least one of a movement speed control, a left steering control, and a right steering control.

10. The method according to claim 9, characterized in that The steering parameter includes a steering direction and a steering distance, and the response to the touch operation of the second mobile control determines the steering parameter of the virtual object according to the touch parameter of the touch operation, and controls the virtual object to perform steering movement in the game scene according to the steering parameter, including: In response to a click touch operation on the left turn control, determining a left turn direction and a first turn radius corresponding to the click touch operation, and controlling the virtual object to execute the left turn direction with the first turn radius during movement in the game scene; or, in response to a sliding touch operation on the left turn control, determining a left turn direction and a second turning radius corresponding to the sliding touch operation, and controlling the virtual object to execute the left turn direction with the second turning radius during the movement of the virtual object in the game scene; Wherein, the second turning radius is greater than the first turning radius.

11. The method according to claim 9, characterized in that The step of responding to the touch operation on the second mobile control, determining a steering parameter of the virtual object according to a touch parameter of the touch operation, and controlling the virtual object to perform steering movement in the game scene according to the steering parameter, includes: In response to a click touch operation on the right turn control, determining a right turn direction and a first turn radius corresponding to the click touch operation, and controlling the virtual object to execute the right turn direction with the first turn radius during movement in the game scene; or, in response to a sliding touch operation on the right turn control, determining a right turn direction and a second turning radius corresponding to the sliding touch operation, and controlling the virtual object to execute the right turn direction with the second turning radius during the movement of the virtual object in the game scene; Wherein, the second turning radius is greater than the first turning radius.

12. The method according to claim 9, characterized in that The steering parameter includes a target speed, and the method further includes: In response to a touch operation on the movement speed control, a target movement speed corresponding to the touch operation is determined, and the virtual object is controlled to move in the game scene at the target movement speed.

13. The method according to claim 9, characterized in that Also includes: In response to the movement control being configured as the second control mode, the virtual object is controlled to move in the game scene at a preset constant speed.

14. The method according to claim 2, characterized in that The content displayed by the graphical user interface also includes an attack selection control corresponding to the virtual object, and the responding to the perspective switching instruction, determining the target sub-virtual model corresponding to the perspective switching instruction, and obtaining the target orientation information corresponding to the target sub-virtual model, includes: In response to a touch operation on the attack selection control, displaying an attack function area corresponding to the virtual object in the graphical user interface, the attack function area including a plurality of attack viewing angles; In response to a perspective selection operation for the attack function area, a target attack perspective corresponding to the perspective selection operation is obtained, a target sub-virtual model corresponding to the target attack perspective is determined, and target orientation information corresponding to the target sub-virtual model is obtained.

15. The method according to claim 14, characterized in that The step of responding to the touch operation on the attack selection control and displaying the attack function area of ​​the virtual object in the graphical user interface includes: In response to a sliding operation on the attack selection control, an attack function area corresponding to the virtual object is displayed in the graphical user interface.

16. The method according to claim 14, characterized in that The attack perspective includes at least one of a front attack perspective, a side attack perspective, and a rear attack perspective.

17. The method according to claim 14, 15 or 16, characterized in that: The content displayed by the graphical user interface also includes attack controls, and the method further includes: In response to a touch operation on the attack control, the virtual object is controlled to perform an attack operation under the target attack viewing angle.

18. A control device for a virtual object, characterized in that: A graphical user interface is provided by an electronic terminal, wherein the content displayed by the graphical user interface includes at least a part of a game scene and a virtual object located in the game scene, and the device includes: A content display module, configured to display, in the graphical user interface, a first presentation field of view formed by a virtual camera capturing the game scene at the current position of the virtual object under a mobile viewing angle, and to display a first mobile control corresponding to the current position; wherein the first mobile control is configured with a first control mode; a direction parameter determination module, configured to respond to a touch operation on the first mobile control, determine a direction parameter of the virtual object according to a touch parameter of the touch operation, and control the virtual object to move in the game scene according to the direction parameter; a mobile control switching module, configured to, in response to a perspective switching instruction, switch the mobile perspective to an attack perspective, control the virtual camera to switch from the current position to a target position of the virtual object, capture the game scene at the target position to switch the first presentation field of view displayed in the graphical user interface to a second presentation field of view corresponding to the target position, and switch the first mobile control to a second mobile control, the second mobile control being different from the first mobile control; the second mobile control being configured with a second control mode; wherein the first control mode is different from the second control mode; A mobile control response module is used to respond to a touch operation on the second mobile control, determine a steering parameter of the virtual object according to touch parameters of the touch operation, and control the virtual object to turn and move in the game scene according to the steering parameters, wherein the touch parameters include a first touch parameter and a second touch parameter different from the first touch parameter.

19. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 18 when executing the program stored in the memory.

20. One or more computer readable media having instructions stored thereon, which when executed by one or more processors cause the processors to perform the method of any one of claims 1-18.

Citation Information

Patent Citations

  • Information processing method and device, terminal and storage medium

    CN108355354A

  • Interaction method and device in game scene

    CN111773705A