Virtual character control

By allowing users to ride virtual pets and consume character attributes, the method enhances strategic interaction and realism in virtual scenes, addressing the monotony of existing control methods.

US20260373606A1Pending Publication Date: 2026-11-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/746210
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2024-08-19
Filing Date
2026-07-17
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

The existing methods for controlling virtual characters to ride mounts in virtual scenes are monotonous, affecting the interaction effect between users and the virtual scene.

Method used

A method and apparatus for controlling virtual characters that allow users to select a virtual pet to ride, consuming a specified attribute value of the character while moving, with adjustments based on pet attributes and environmental conditions.

Benefits of technology

Enhances the strategic nature and realism of virtual character control by incorporating pet attributes and environmental interactions, improving the interaction effect and control properness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260373606A1-D00000_ABST
    Figure US20260373606A1-D00000_ABST
Patent Text Reader

Abstract

In method for controlling a virtual character, a controlled virtual character in a virtual scene is output for display. The controlled virtual character has at least one virtual pet. A user interface including a riding control element and an option control element for each of the at least one virtual pet is output for display. A first operation to select, from the at least one virtual pet, a first virtual pet to ride is received through the user interface. The controlled virtual character is controlled, based on the first operation, to ride the first virtual pet. A second operation to move the controlled virtual character is received. The controlled virtual character is controlled, based on the second operation, to move in the virtual scene while riding the first virtual pet and while a specified attribute value of the controlled virtual character is consumed.
Need to check novelty before this filing date? Find Prior Art

Description

RELATED APPLICATIONS

[0001] The present application is a continuation of International Application No. PCT / CN2025 / 107266, filed on Jul. 7, 2025, which claims priority to Chinese Patent Application No. 202411142152.5, filed on Aug. 19, 2024. The entire disclosures of the prior applications are hereby incorporated by reference.FIELD OF THE TECHNOLOGY

[0002] This disclosure relates to the field of virtual scenes, including a virtual character control method.BACKGROUND OF THE DISCLOSURE

[0003] Some game application programs provide playing methods allowing virtual characters to ride mounts, thereby improving movement efficiency of user-controlled virtual characters in virtual scenes.

[0004] In related art, when controlling the virtual character in the virtual scene, the user may control the virtual character to summon and ride the mount by triggering a riding control or a riding prop. Then, the user may control the virtual character to ride the mount and move in the virtual scene by using a movement control or a movement key.

[0005] However, in related art, a manner for the user to control the virtual character to ride the mount is relatively monotonous, which affects an interaction effect between the user and the virtual scene.SUMMARY

[0006] Aspects of this disclosure include a virtual character control method, a virtual character control apparatus, and a non-transitory computer-readable storage medium. Examples of technical solutions of this disclosure may be implemented as follows:

[0007] An aspect of this disclosure provides a method for controlling a virtual character. In the method, a controlled virtual character in a virtual scene is output for display. The controlled virtual character has at least one virtual pet. A user interface including a riding control element and an option control element for each of the at least one virtual pet is output for display. A first operation to select, from the at least one virtual pet, a first virtual pet to ride is received through the user interface. The controlled virtual character is controlled, based on the first operation, to ride the first virtual pet. A second operation to move the controlled virtual character is received. The controlled virtual character is controlled, based on the second operation, to move in the virtual scene while riding the first virtual pet and while a specified attribute value of the controlled virtual character is consumed.

[0008] An aspect of this disclosure provides an apparatus for controlling a virtual character. The apparatus includes processing circuitry configured to output for display a controlled virtual character in a virtual scene. The controlled virtual character has at least one virtual pet. The processing circuitry is configured to output for display a user interface including a riding control element and an option control element for each of the at least one virtual pet. The processing circuitry is configured to receive, through the user interface, a first operation to select, from the at least one virtual pet, a first virtual pet to ride. The processing circuitry is configured to control, based on the first operation, the controlled virtual character to ride the first virtual pet. The processing circuitry is configured to receive a second operation to move the controlled virtual character. The processing circuitry is configured to control, based on the second operation, the controlled virtual character to move in the virtual scene while riding the first virtual pet and while consuming a specified attribute value of the controlled virtual character.

[0009] An aspect of this disclosure provides a virtual character control method, the method being performed by a computer device, and the method including: displaying a main control virtual character in a virtual scene, the main control virtual character having at least one virtual pet; controlling, in response to a first operation for choosing to ride the first virtual pet, the main control virtual character to ride a first virtual pet, the first virtual pet being one of the at least one virtual pet; and controlling, in response to a second operation for moving the main control virtual character, the main control virtual character to ride the first virtual pet and move in the virtual scene in a manner of consuming a specified attribute value of the main control virtual character.

[0010] An aspect of this disclosure provides a virtual character control apparatus, including: a display module, configured to display a main control virtual character in a virtual scene, the main control virtual character having at least one virtual pet; a riding control module, configured to control, in response to a first operation for choosing to ride the first virtual pet, the main control virtual character to ride a first virtual pet, the first virtual pet being one of the at least one virtual pet; and a movement control module, configured to control, in response to a second operation for moving the main control virtual character, the main control virtual character to ride the first virtual pet and move in the virtual scene in a manner of consuming a specified attribute value of the main control virtual character.

[0011] In an example implementation, the movement control module is configured to: control the first virtual pet to move in a basic movement state in the virtual scene in a case that the second operation is a basic movement operation, the basic movement state being a movement state that is not adjusted; and deduct a first numerical value per unit time from the specified attribute value in a case that the first virtual pet moves in the basic movement state in the virtual scene.

[0012] In an example implementation, the first numerical value is determined by first information, and the first information includes at least one type of the following information: an identifier of the first virtual pet, a level of the first virtual pet, a type of the basic movement state, a movement speed of the first virtual pet, a terrain buff of the first virtual pet, a terrain debuff of the first virtual pet, a remaining specified attribute value of the main control virtual character, and a weather condition.

[0013] In an example implementation, in a case that the first information includes the remaining specified attribute value of the main control virtual character, the first numerical value is in a positive correlation with the remaining specified attribute value of the main control virtual character.

[0014] In an example implementation, the apparatus further includes: a numerical value adjustment module, configured to decrease the first numerical value by a second percentage in a case that a percentage of the remaining specified attribute value of the main control virtual character relative to a maximum limit of the specified attribute value of the main control virtual character is less than or equal to a first percentage.

[0015] In an example implementation, the movement control module is configured to: control the first virtual pet to release a displacement skill corresponding to a movement skill release operation in a case that the second operation is the movement skill release operation; and deduct a third numerical value from the specified attribute value, the third numerical value being a numerical value corresponding to the displacement skill.

[0016] In an example implementation, the movement control module is configured to: deduct the third numerical value from the specified attribute value at a single time; or deduct, within duration of the displacement skill, the third numerical value from the specified attribute value in a manner of deducting a specific numerical value per unit time, the third numerical value being in a positive correlation with the duration of the displacement skill; or deduct, within duration of the movement skill release operation, the third numerical value from the specified attribute value in a manner of deducting a specific numerical value per unit time, the third numerical value being in a positive correlation with the duration of the movement skill release operation.

[0017] In an example implementation, the displacement skill corresponds to a maximum deduction numerical value; in a case that the third numerical value is deducted from the specified attribute value at a single time and the remaining specified attribute value of the main control virtual character before the deduction is greater than or equal to the maximum deduction numerical value, the third numerical value is the maximum deduction numerical value; and in a case that the third numerical value is deducted from the specified attribute value at a single time and the remaining specified attribute value of the main control virtual character is less than the maximum deduction numerical value, the third numerical value is the remaining specified attribute value of the main control virtual character.

[0018] In an example implementation, the apparatus further includes: an element display module, configured to display an attribute indication element, the attribute indication element indicating the remaining specified attribute value of the main control virtual character.

[0019] In an example implementation, the attribute indication element includes a progress bar element, and the progress bar element indicates a proportional relationship between the remaining specified attribute value of the main control virtual character and a maximum limit of the specified attribute value of the main control virtual character.

[0020] In an example implementation, the apparatus further includes: an attribute value recovery module, configured to recover the specified attribute value by a second numerical value per unit time in a case that the main control virtual character rides the first virtual pet and stops moving, or in a case that the main control virtual character does not ride a virtual pet and consumes no specified attribute value.

[0021] In an example implementation, the second numerical value includes: a specified numerical value; or a specified percentage of the maximum limit of the specified attribute value of the main control virtual character; or the specified numerical value plus the specified percentage of the maximum limit of the specified attribute value of the main control virtual character.

[0022] In an example implementation, the movement control module is configured to: acquire movement configuration information of the first virtual pet; and control, in response to the second operation and based on the movement configuration information, the main control virtual character to ride the first virtual pet and move in the virtual scene in a manner of consuming the specified attribute value of the main control virtual character, where the movement configuration information includes at least one type of the following information: a maximum movement speed; an acceleration; a deceleration; an angular speed; and a relationship between a gradient and at least one of the maximum movement speed, the acceleration, and the angular speed.

[0023] In an example implementation, the apparatus further includes: a configuration correction module, configured to correct the movement configuration information based on environmental information, the environmental information including at least one type of the following information: a terrain type and a weather condition.

[0024] In an example implementation, the apparatus further includes: a weather modification module, configured to modify, in a case that the first virtual pet is a first specified pet or a pet of a first specified type, the weather condition around the first virtual pet to be a weather condition corresponding to the first virtual pet.

[0025] In some example implementations, the weather condition corresponding to the first virtual pet eliminates or suppresses a debuff, on the main control virtual character, of the weather condition before modification.

[0026] In an example implementation, the weather condition includes at least one of the following: a weather type and an ambient temperature.

[0027] In an example implementation, the apparatus further includes: a terrain modification module, configured to modify a terrain around the first virtual pet into a terrain corresponding to the first virtual pet in a case that the first virtual pet is a second specified pet or a pet of a second specified type.

[0028] In an example implementation, the riding control module is configured to: display an option control of the at least one virtual pet; display a first option control as a chosen state in response to a first-phase operation for choosing the first option control from the at least one option control, a virtual pet corresponding to the first option control being the first virtual pet; and control, in response to a second-phase operation for triggering a riding control, the main control virtual character to ride the first virtual pet, the first operation including the first-phase operation and the second-phase operation.

[0029] An aspect of this disclosure provides a computer device, including a processor and a memory, the memory having a computer program stored therein, the computer program being loaded and executed by the processor to implement the method for controlling the virtual character in the aspects of this disclosure.

[0030] An aspect of this disclosure provides a non-transitory computer-readable storage medium storing instructions which, when executed by a processor, cause the processor to implement the virtual character control method in any of the aspects of this disclosure.

[0031] An aspect of this disclosure provides a computer program product, the computer program product including computer instructions, the computer instructions being stored in a computer-readable storage medium, a processor acquiring the computer instructions from the computer-readable storage medium, and the processor loading and executing the computer instructions to implement the method for controlling the virtual character in any of the aspects of this disclosure.

[0032] Aspects of this disclosure include the following beneficial effects:

[0033] The user is supported to choose the virtual pet owned by the main control virtual character for the main control virtual character to ride, and the specified attribute value (such as a stamina point) of the main control virtual character may be consumed during the process of the main control virtual character riding the virtual pet, so that combining an attribute of the user-controlled virtual character and a movement behavior of the virtual character riding the virtual pet increases factors affecting the virtual character riding the virtual pet, and further increases the manner for the user to control the virtual character to ride the virtual pet, to improve strategic nature of the user controlling the virtual character to ride the virtual pet, and further improve an interaction effect when the user controls the virtual character to ride the virtual pet. Moreover, increasing the factors affecting the virtual character riding the virtual pet is conducive to enhancing realism when the user controls the virtual character to ride the virtual pet, thereby improving control properness of the virtual character.BRIEF DESCRIPTION OF THE DRAWINGS

[0034] FIG. 1 is a structural block diagram of a computer system according to an aspect of this disclosure.

[0035] FIG. 2 is a flowchart of a method for controlling a virtual character according to an aspect of this disclosure.

[0036] FIG. 3 is a flowchart of a method for controlling a virtual character according to another aspect of this disclosure.

[0037] FIG. 4 is a schematic diagram of a scene interface of a virtual scene according to an aspect of this disclosure.

[0038] FIG. 5 is a state diagram of a riding button according to an aspect of this disclosure.

[0039] FIG. 6 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure.

[0040] FIG. 7 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure.

[0041] FIG. 8 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure.

[0042] FIG. 9 is a flowchart of a method for controlling a virtual character according to another aspect of this disclosure.

[0043] FIG. 10 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure.

[0044] FIG. 11 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure.

[0045] FIG. 12 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure.

[0046] FIG. 13 is a flowchart of a method for controlling a virtual character according to another aspect of this disclosure.

[0047] FIG. 14 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure.

[0048] FIG. 15 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure.

[0049] FIG. 16 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure.

[0050] FIG. 17 is a schematic diagram of a progress bar element according to an aspect of this disclosure.

[0051] FIG. 18 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure.

[0052] FIG. 19 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure.

[0053] FIG. 20 is a diagram of a configuration flow relationship according to an aspect of this disclosure.

[0054] FIG. 21 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure.

[0055] FIG. 22 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure.

[0056] FIG. 23 is a structural block diagram of an apparatus for controlling a virtual character according to an aspect of this disclosure.

[0057] FIG. 24 is a structural block diagram of a computer device according to an aspect of this disclosure.DETAILED DESCRIPTION

[0058] To make objectives, technical solutions, and advantages of this disclosure clearer, implementations of this disclosure will be described in further detail with reference to drawings.

[0059] One or more modules, submodules, and / or units of the apparatus can be implemented by processing circuitry, software, or a combination thereof, for example. The term module (and other similar terms such as unit, submodule, etc.) in this disclosure may refer to a software module, a hardware module, or a combination thereof. A software module (for example, computer program) may be developed using a computer programming language and stored in memory or non-transitory computer-readable medium. The software module stored in the memory or medium is executable by a processor to thereby cause the processor to perform the operations of the module. A hardware module may be implemented using processing circuitry, including at least one processor and / or memory. Each hardware module can be implemented using one or more processors (or processors and memory). Likewise, a processor (or processors and memory) can be used to implement one or more hardware modules. Moreover, each module can be part of an overall module that includes the functionalities of the module. Modules can be combined, integrated, separated, and / or duplicated to support various applications. Also, a function being performed at a particular module can be performed at one or more other modules and / or by one or more other devices instead of or in addition to the function performed at the particular module. Further, modules can be implemented across multiple devices and / or other components local or remote to one another. Additionally, modules can be moved from one device and added to another device, and / or can be included in both devices.

[0060] The use of “at least one of” or “one of” in the disclosure is intended to include any one or a combination of the recited elements. For example, references to at least one of A, B, or C; at least one of A, B, and C; at least one of A, B, and / or C; and at least one of A to C are intended to include only A, only B, only C or any combination thereof. References to one of A or B and one of A and B are intended to include A or B or (A and B). The use of “one of” does not preclude any combination of the recited elements when applicable, such as when the elements are not mutually exclusive.

[0061] Examples of terms involved in the aspects of the disclosure are briefly introduced. The descriptions of the terms are provided as examples only and are not intended to limit the scope of the disclosure.

[0062] (1) Virtual scene: A virtual scene may be displayed (or provided) when an application program is run on a terminal. The virtual scene may be a simulated environmental scene of a real world, may be a semi-simulated semi-fictional three-dimensional environmental scene, or may be an entirely-fictional three-dimensional environmental scene. The virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, and a three-dimensional virtual scene. The following aspects are described by using an example in which the virtual scene is a three-dimensional virtual scene, but no limitation is imposed. In some aspects, the virtual scene may further be configured for a battle or an arena between at least two virtual characters. In some aspects, the virtual scene may further be configured for at least two virtual characters to battle by using virtual props in a target area range.

[0063] The virtual scene is usually generated by the application program in a computer device such as a terminal and displayed based on hardware (such as a screen) in the terminal. The terminal may be a mobile terminal such as a smartphone, a tablet computer, or an e-book reader. In some aspects, the terminal device may further be a personal computer device such as a notebook computer or a stationary computer. This is not limited in the aspects of this disclosure. The terminal in the aspects of this disclosure may further be referred to as a terminal device.

[0064] (2) Virtual object: A virtual object may be a movable object in the virtual scene. The movable object may be at least one of a virtual figure, a virtual character, a virtual pet, a virtual animal, and a virtual carrier. In some aspects, when the virtual scene is a three-dimensional virtual scene, the virtual object is a three-dimensional model created based on a skeletal animation technology. Each virtual object has an own shape, size, and orientation in the three-dimensional virtual scene, and occupies a part of space in the three-dimensional virtual scene.

[0065] FIG. 1 is a structural block diagram of a computer system according to an aspect of this disclosure. A computer system 100 includes a first terminal 110, a server 120, and a second terminal 130.

[0066] A client 111 supporting the virtual scene is installed and run on the first terminal 110. The client 111 may be a client of a game application program. When the first terminal runs the client 111, a user interface of the client 111 is displayed on a screen of the first terminal 110. The first terminal 110 is a terminal used by a first user 112. In some aspects, the game application program may be implemented as at least one of the following: a role-playing game (RPG) program, a first-person shooting game (FPS), a third-person shooting game (TPS), a multiplayer online battle arena game (MOBA), a simulation game (SLG), a party recreation game, a construction game, an open world game, and a survival role-playing game. In addition, a form of the game application program is not limited in the aspects of this disclosure. For example, the form of the game application program includes, but is not limited to, an application (App), a mini program, a web page, and the like installed on the first terminal 110.

[0067] A client 131 supporting the virtual scene is installed and run on the second terminal 130. The client 131 may further be a client of the game application program. When the second terminal 130 runs the client 131, a user interface of the client 131 is displayed on a screen of the second terminal 130. The second terminal 130 is a terminal used by a second user 132.

[0068] In some aspects, the client installed on the first terminal 110 is the same as the client installed on the second terminal 130, or the clients installed on the two terminals are clients of the same type on different operating system platforms. The first terminal 110 may refer to one of a plurality of terminals, and the second terminal 130 may refer to another one of the plurality of terminals. In the aspects of this disclosure, the first terminal 110 and the second terminal 130 are only used as an example for description. Device types of the first terminal 110 and the second terminal 130 are the same or different. The device types include at least one of a smartphone, a tablet computer, an e-book reader, a moving picture experts group audio layer III (MP3) player, a moving picture experts group audio layer IV (MP4) player, a laptop portable computer, a smart robot, an in-vehicle computer, and a desktop computer. In the following aspect, an example in which a terminal includes a smartphone is used for description.

[0069] It is noted that a count of the above terminals may be more or less. For example, the count of the terminal may be only one, or the count of the terminals may be 6, 8, or more. The aspects of this disclosure do not limit the count and device type of the terminal.

[0070] Only two terminals are shown in FIG. 1, but multiple other terminals 140 may access the server 120 in different aspects. In some aspects, there are alternatively one or more terminals 140 that correspond to a developer. A development and editing platform for a client that supports a virtual scene is installed on the terminal 140. The developer may edit and update the client on the terminal 140 and transmit an updated client installation package to the server 120 over a wired or wireless network. The first terminal 110 and the second terminal 130 may download the client installation package from the server 120 to update the client.

[0071] The first terminal 110, the second terminal 130, and another terminal 140 are connected to the server 120 over a wireless network or a wired network.

[0072] The server 120 includes at least one of one server, a plurality of servers, a cloud computing platform, and a virtualization center. The server 120 is configured to provide background service for the client (such as the client of RPG) supporting the virtual scene (such as the three-dimensional virtual scene). In some aspects, the server 120 takes on primary computing work, and the terminal takes on secondary computing work; or the server 120 takes on the secondary computing work, and the terminal takes on the primary computing work; or a distributed computing architecture is employed between the server 120 and the terminal for collaborative computing.

[0073] In one example, the server 120 includes a processor 122, a user account database 123, a scene service module 124, and a user-oriented input / output (I / O) interface 125. The processor 122 is configured to load instructions stored in the server 120, and process data in the user account database 123 and the scene service module 124. The user account database 123 is configured to store data of user accounts used by the first terminal 110, the second terminal 130, and another terminal 140, such as avatars of the user accounts, nicknames of the user accounts, battle effectiveness indexes of the user accounts, and service areas of the user accounts. The scene service module 124 is configured to provide a background service of the virtual scene. The user-oriented I / O interface 125 is configured to establish communication with the first terminal 110 or the second terminal 130 over a wireless or wired network for data exchange.

[0074] FIG. 2 is a flowchart of a method for controlling a virtual character according to an aspect of this disclosure. The method is performed by a computer device. An execution body of operations of the method may be the first terminal 110 shown in FIG. 1, a client installed on the first terminal 110, the second terminal 130, or a client installed on the second terminal 130.

[0075] The method may include the following operations.

[0076] Operation 210: Display a main control virtual character in a virtual scene, the main control virtual character having at least one virtual pet. For example, a controlled virtual character in a virtual scene is output for display. The controlled virtual character has at least one virtual pet.

[0077] The main control virtual character is a user-controlled virtual object, for example, the main control virtual character may be a virtual character currently controlled by a user. The main control virtual character may also be referred to as a “controlled virtual character.” For example, the virtual scene is a game scene provided by the game application program, the main control virtual character is a game character provided by the game application program, and the user may control the main control virtual character to perform activities in the virtual scene, such as walking, running, virtual pet catching, and virtual building construction.

[0078] In this aspect of this disclosure, the main control virtual character in the virtual scene may have at least one virtual pet. The virtual pet is different from the main control virtual character, and may be a fictional pet, or may be a simulated pet obtained by simulating a real pet. The user may control the virtual pet by using the main control virtual character. For example, the main control virtual character may perform activities in the virtual scene by summoning the virtual pet, such as participating in battles, collecting resources, processing, and constructing. In this aspect of this disclosure, the main control virtual character may further summon the virtual pet and ride the virtual pet. In some aspects, the at least one virtual pet includes at least one of the following: a virtual pet allocated by the client to the main control virtual character, a virtual pet caught by the main control virtual character from the virtual scene, and a virtual pet acquired by the user by participating in a game activity provided by the client. This is not limited in this aspect of this disclosure.

[0079] In this aspect of this disclosure, the computer device (such as the client of the game application program) may display a scene interface of the virtual scene, and the scene interface displays the main control virtual character currently controlled by the user. In some aspects, an option control corresponding to each of the at least one virtual pet is displayed on an upper layer of the scene interface, for example, a control of an avatar of the virtual pet is displayed. The option control of the virtual pet is configured to choose the virtual pet, for example, is configured to choose the virtual pet for the main control virtual character to ride.

[0080] The option control corresponding to each of the at least one virtual pet may be displayed in a form of a list. For example, the option control corresponding to each of the at least one virtual pet may be displayed on a left side or a right side of the scene interface in a form of a vertical list, or the option control corresponding to each of the at least one virtual pet may be displayed on an upper side or a lower side of the scene interface in a form of a horizontal list. This is not limited in this aspect of this disclosure. In the aspects of this disclosure, at least one is to be one or more, and the plurality is to be at least two.

[0081] Operation 220: Control, in response to a first operation for choosing to ride the first virtual pet, the main control virtual character to ride a first virtual pet, the first virtual pet being one of the at least one virtual pet. For example, the controlled virtual character is controlled, based on the first operation, to ride the first virtual pet.

[0082] The first virtual pet may be any virtual pet of the at least one virtual pet, and is configured for indicating the chosen virtual pet. The first virtual pet has a riding function for the main control virtual character to ride. An example implementation of the first operation is not limited in the aspects of this disclosure.

[0083] In one example, the user may choose to ride the first virtual pet by using the first option control corresponding to the first virtual pet. In this case, the first operation may be implemented as an operation for the option control. For example, in response to a riding choosing operation for the first option control, the main control virtual character is controlled to ride the first virtual pet. The first option control is one of the option controls for the at least one virtual pet, and the first virtual pet is a virtual pet corresponding to the first option control.

[0084] The riding choosing operation is the foregoing first operation. The riding choosing operation for the first option control may be an operation for choosing the corresponding first virtual pet by using the first option control, and for triggering summoning and riding of the first virtual pet by the main control virtual character.

[0085] In some aspects, the first operation includes a multi-step operation (i.e., a multi-phase operation). For example, the riding choosing operation may include an operation (corresponding to the first-phase operation) for choosing the corresponding first virtual pet by using the first option control, and an operation (corresponding to the second-phase operation) for triggering summoning and riding of the currently chosen virtual pet by the main control virtual character.

[0086] Alternatively, the first operation may further be a single-step operation. In an example, when the user performs a single-step operation on the first option control, the main control virtual character may be triggered to summon and ride the first virtual pet.

[0087] In some aspects, the first operation may be a touch operation performed by the user on a screen of a computer device, such as a click / tap operation, a pressing operation, or a double-click / double-tap operation; or the first operation may further be an operation performed by the user on a physical key, such as an operation performed on a key in a keyboard or a mouse. This is not limited in this aspect of this disclosure.

[0088] Operation 230: Control, in response to a second operation for moving the main control virtual character, the main control virtual character to ride the first virtual pet and move in the virtual scene in a manner of consuming a specified attribute value of the main control virtual character. For example, the controlled virtual character is controlled, based on the second operation, to move in the virtual scene while riding the first virtual pet and while a specified attribute value of the controlled virtual character is consumed.

[0089] The second operation is an operation for moving the main control virtual character and may further be referred to as a movement control operation. During a process of the main control virtual character riding the first virtual pet, the main control virtual character and the first virtual pet may be regarded as a whole, and moving the main control virtual character is equivalent to moving the first virtual pet. For example, a control (including a virtual control and a physical control) for controlling the main control virtual character to move may be configured to control the main control virtual character to ride the first virtual pet and move in the virtual scene.

[0090] In some aspects, the main control virtual character has at least one attribute value, such as at least one of a health point, a magic point, a stamina point, and energy point. The specified attribute value may be a specified attribute value of the at least one attribute value of the main control virtual character. For example, the specified attribute value may be the stamina point, the energy point, or the like. The specified attribute value is not limited in this aspect of this disclosure, and may be set and chosen based on an actual usage requirement.

[0091] Consuming the specified attribute value of the main control virtual character may refer to a process of deducting the specified attribute value. In this aspect of this disclosure, when the main control virtual character riding the first virtual pet moves in the virtual scene, the computer device may deduct the specified attribute value of the main control virtual character, so that a behavior of the main control virtual character riding the first virtual pet is associated with or bond to the specified attribute value of the main control virtual character. In this way, when the user controls the main control virtual character to ride the first virtual pet and move in the virtual scene, a policy for controlling the main control virtual character to ride the first virtual pet and move in the virtual scene needs to be considered in combination with the specified attribute value of the main control virtual character. For example, the user needs to consider the specified attribute value of the main control virtual character to decide when to control the main control virtual character to ride the first virtual pet and move, and when to control the main control virtual character to ride the first virtual pet and stop moving.

[0092] According to the method for controlling the virtual character provided in the aspects of this disclosure, the user is supported to choose the virtual pet owned by the main control virtual character for the main control virtual character to ride, and the specified attribute value (such as the stamina point) of the main control virtual character may be consumed during the process of the main control virtual character riding the virtual pet, so that combining the attribute of the user-controlled virtual character and the movement behavior of the virtual character riding the virtual pet increases factors affecting the virtual character riding the virtual pet, and further increases the manner for the user to control the virtual character to ride the virtual pet, to improve strategic nature of the user controlling the virtual character to ride the virtual pet, and improve an interaction effect when the user controls the virtual character to ride the virtual pet. Moreover, increasing the factors affecting the virtual character riding the virtual pet is conducive to enhancing realism when the user controls the virtual character to ride the virtual pet, thereby improving control properness of the virtual character.

[0093] Based on the method shown in the aspect of FIG. 2, FIG. 3 is a flowchart of a method for controlling a virtual character according to another aspect of this disclosure. Operation 230 may be implemented as the following operation 230a and operation 230b.

[0094] Operation 230a: Display the first option control as a chosen state in response to the first-phase operation for choosing the first option control from the at least one option control, a virtual pet corresponding to the first option control being the first virtual pet. For example, through the user interface, the first stage operation to select a first option control element is received. The first option control element is the option control element corresponding to the first virtual pet. Based on the first stage operation, the first option control element in a selected state is output for display.

[0095] The at least one option control corresponds to each of the at least one virtual pet. In some aspects, when displaying the main control virtual character, the client displays the option control of the at least one virtual pet for the user to choose the virtual pet to ride.

[0096] The first-phase operation may be implemented as a choosing operation for the first option control, and the choosing operation is configured to choose the first option control. For example, in response to the choosing operation for the first option control, the first option control is displayed as the chosen state. An implementation of the first-phase operation is not limited in this aspect of this disclosure, and any operation that may be configured to choose the first option control may be used as the first-phase operation.

[0097] In some aspects, the first operation may include multiple phases of operations. For example, the first operation includes two phases of operations. The first-phase operation may be an operation in a first phase of the first operation. The following second-phase operation may be an operation in a second phase of the first operation. Namely, the first operation includes the first-phase operation and the second-phase operation.

[0098] For example, the computer device may display the scene interface of the virtual scene by using a touchscreen (such as a screen of a mobile phone or a tablet computer), and the first-phase operation may be a touch click / tap operation or a pressing operation for the first option control.

[0099] In this aspect of this disclosure, the computer device may receive the first-phase operation of the user for the option control of the virtual pet, so that the user chooses the virtual pet corresponding to a specific option control. In a case that the user performs the first-phase operation on the first option control, the computer device displays the first option control as a chosen state, so that the user can know the currently chosen virtual pet. The chosen state is configured for indicating that the first option control is chosen.

[0100] In one example, the displaying the first option control as a chosen state may include at least one of the following:

[0101] (1) Highlight the first option control. For example, when the first option control is in the chosen state, brightness of the first option control may be higher than brightness of another unchosen option control. In some aspects, the foregoing brightness may be brightness of an icon of the option control, brightness of a background of the icon of the option control, or the like.

[0102] (2) Display the first option control in an enlarged mode. For example, when the first option control is in the chosen state, a size of the first option control may be larger than a size of another unchosen option control

[0103] (3) Add a frame to the first option control. For example, when the first option control is in the chosen state, a circular frame may be added to the first option control, to highlight the first option control.

[0104] (4) Switch a display mode of the first option control from a two-dimensional mode to a three-dimensional mode. For example, the icon of each option control is displayed as a two-dimensional avatar of the corresponding virtual pet in a case that the option control is unchosen, and if the first option control is chosen, the icon of the first option control is switched from the two-dimensional avatar of the virtual pet to a three-dimensional avatar of the virtual pet.

[0105] (5) Switch the display mode of the first option control from a static mode to a dynamic mode. For example, the icon of each option control is displayed as a static avatar of the corresponding virtual pet in a case that the option control is unchosen, and if the first option control is chosen, the icon of the first option control is switched from the static avatar of the virtual pet to a dynamic avatar of the virtual pet (such as an avatar presenting nodding, head turning, or the like).

[0106] Operation 230b: Control, in response to the second-phase operation for triggering the riding control, the main control virtual character to ride the first virtual pet, the first operation including the first-phase operation and the second-phase operation. For example, through the user interface, the second stage operation is received to trigger the riding control element.

[0107] The second-phase operation may be implemented as a triggering operation for the riding control, and the triggering operation is configured to trigger a function of the riding control. For example, in response to the triggering operation for a displayed riding control, the main control virtual character is controlled to ride the first virtual pet. An implementation of the second-phase operation is not limited in this aspect of this disclosure, and any operation that may be configured to trigger the function of the riding control may be used as the second-phase operation. In some aspects, the first-phase operation is performed prior to the second-phase operation.

[0108] In this aspect of this disclosure, the computer device may further display the riding control in the scene interface of the virtual scene. In some aspects, the riding control may be a control displayed when any one of the virtual pet option controls is chosen, or may be a permanent control in the scene interface, to switch the function to trigger riding of the virtual pet when any one of the virtual pet option controls is chosen. When receiving a triggering operation (such as a touch click / tap operation or a long-pressing operation) of the user for the riding control, the computer device may control the main control virtual character to ride the first virtual pet.

[0109] In addition to the solution shown in FIG. 3, the user may further perform the riding choosing operation in another manner. For example, the first operation may alternatively be a long-pressing operation for the first option control, and the first operation may alternatively be an operation for dragging the first option control to the virtual character. This is not limited in this aspect of this disclosure.

[0110] For example, an example in which the foregoing virtual scene is a virtual big world (such as a game world scene) displayed in a mobile terminal, and a virtual pet is a virtual creature in the virtual big world is used. FIG. 4 is a schematic diagram of a scene interface of a virtual scene according to an aspect of this disclosure. As shown in FIG. 4, the scene interface of the virtual scene includes a creature choosing area, and the creature choosing area may be implemented as a list area 401 for a player to choose a virtual creature. For example, avatars of six battling virtual creatures of the player may be displayed in the list area 401 on the left side, and levels of the virtual creatures are displayed below the avatars. The user clicks / taps any avatar, and then clicks / taps a riding button 402 (i.e., the foregoing riding control), to control the main control virtual character to enter a riding state. The chosen creature avatar may have a special frame (indicating the chosen state). A picture of the virtual scene interface is a picture of the foregoing scene interface.

[0111] As shown in FIG. 4, the foregoing riding button 402 may display a basic movement state of the chosen virtual creature for a surface type. For example, when the virtual creature having a swimming capability is chosen in water, the riding button 402 may display a water-surface riding icon to indicate that the virtual creature may be ridden in the water. In this way, the player knows a suitable surface and type of the creature. FIG. 5 is a state diagram of a riding button according to an aspect of this disclosure. As shown in FIG. 5, a first row shows a clicked / tapped state (a clicked / tapped display state). For example, when the riding button 501 is clicked / tapped, the avatar in the riding button 501 is filled. A second row shows a default state (a default available display state). For example, when the riding button 501 is in the default state, the avatar of the riding button 501 is not filled. A third row shows a disabled state (indicating that the currently chosen riding creature is on a terrain unsuitable for riding and therefore may not be ridden). When the riding button 501 is in the disabled state, a function of the riding button 501 may not be triggered.

[0112] In some aspects, the scene interface of the virtual scene further includes an active skill button. For example, after the virtual creature is ridden, a control corresponding to a riding skill possessed by the virtual creature may be displayed in the scene interface. The user may activate the riding skill by pressing the control. Different creatures possess different riding skills. The riding skill is a skill set for a riding state and may be related to the first virtual pet. For example, the riding skill may be configured to produce a buff on the main control virtual character, such as increasing a movement speed and a movement distance. This is not limited in this aspect of this disclosure.

[0113] In some aspects, the scene interface of the virtual scene further includes a riding cancellation button, and the user may cancel the riding by clicking / tapping the button. For example, the riding cancellation button may be obtained by transforming the riding button, or the riding cancellation button may be independently deployed. For example, after the riding button is triggered, the client cancels displaying of the riding button, and additionally displays the riding cancellation button.

[0114] FIG. 6 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure. As shown in FIG. 6, an active skill button 601 and a riding cancellation button 602 are displayed at a lower right corner of the scene interface of the virtual scene. When the active skill button 601 is triggered, the computer device may control the virtual pet to release an active skill (such as the foregoing riding skill). When the riding cancellation button 602 is triggered, the computer device may control the virtual character to cancel riding the virtual pet.

[0115] Referring to FIG. 7, which is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure, if the chosen virtual creature has the same basic movement type (namely, summoning and movement may be performed on this surface) as the currently ridden virtual creature, the player may choose another virtual creature from the left list to ride. For example, in FIG. 7, during a process of the main control virtual character riding the virtual creature, the player may choose an option control 701 of another virtual creature, and click / tap a riding button 702 to control the main control virtual character to switch the virtual creature corresponding to the riding option control 701. The basic movement type indicates a surface compatible with the virtual creature. When the main control virtual character is located on the surface compatible with the virtual creature, the virtual creature may be ridden. When the main control virtual character is located on the surface incompatible with the virtual creature, the virtual creature may not be ridden.

[0116] FIG. 8 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure. As shown in FIG. 8, if the chosen virtual creature and the currently ridden virtual creature have different basic movement types, a riding button 801 may be displayed as a disabled state, namely, a main control virtual character may not switch the chosen virtual creature for riding.

[0117] In some aspects, icons of different controls as described above may be configured in advance and invoked by the computer device during display. For example, configurations of the icons may be shown in Table 1.TABLE 1BasicmovementActiveDisabledPressedNametypetypeIcon pathicon pathicon pathGroundType 1Path 1-1Path 2-1Path 3-1summoningSwimmingType 2Path 1-2Path 2-2Path 3-2summoningAirType 3Path 1-3Path 2-3Path 3-3summoningSprinting skillType 4Path 1-4Path 2-4Path 3-4Jumping skillType 5Path 1-5Path 2-5Path 3-5

[0118] The active type may be a type of the riding skill capable of being actively triggered by the user, such as a sprinting skill for sprinting or a jumping skill for jumping. An icon path is an invoking path of the riding button in a default state, the pressed icon path is an invoking path of the riding button in a clicked / tapped state, and the disabled icon path is an invoking path of the riding button in a disabled state. The ground summoning indicates that the virtual creature can be ridden on the ground. The swimming summoning indicates that the virtual creature can be ridden in the water. The air summoning indicates that the virtual creature can be ridden in the air.

[0119] In the solution shown in this aspect of this disclosure, the display state (i.e., a chosen state) of the option control may prompt the user of the chosen option control of the virtual pet. Meanwhile, the riding control is further displayed in addition to the option control of the virtual pet, and in response to the user triggering the riding control, the virtual character is caused to ride the chosen virtual pet. This solution may reduce a probability of misoperation during the process of the user triggering the riding of the virtual pet by the virtual character, to improve interaction efficiency and an interaction success rate during the process of the user triggering the riding of the virtual pet by the virtual character.

[0120] Based on the method shown in the foregoing aspects, FIG. 9 is a flowchart of a method for controlling a virtual character according to an aspect of this disclosure. Operation 230 may be implemented as the following operation 230c and operation 230d.

[0121] Operation 230c: Control the first virtual pet to move in a basic movement state in the virtual scene in a case that the second operation is a basic movement operation, the basic movement state being a movement state that is not adjusted. For example, when the second operation is a normal movement operation, the first virtual pet is controlled to move in a basic movement state in the virtual scene. The basic movement state is an unadjusted movement state.

[0122] The basic movement operation may be an operation for a control configured to control the main control virtual character to move. For example, the basic movement operation may be a movement operation performed by using a direction control or a key, for example, may be a touch operation for a virtual joystick, or may be a pressing operation for a keyboard key. The movement operation is configured to move the control or the key, and the touch operation is configured to trigger a function of the virtual joystick.

[0123] The basic movement state indicates a movement mode corresponding to the basic movement operation. For example, the basic movement state may be a movement state in a case that a displacement skill is not released, or a movement special effect is not obtained, such as moving forward, moving backward, and turning.

[0124] For example, an example in which the virtual pet is a virtual creature in a game scene is used. The virtual creature may enter a riding state on a specific terrain in the virtual big world and move and use skills on the terrain. In some aspects, different terrains may correspond to different basic movement states.

[0125] As shown in Table 2, a configuration mode of the basic movement state and the active and passive skills may enumerate corresponding parameters, and each enumeration corresponds to a specific parameter (for example, a parameter 1 enumerated by Ground (on the ground) is a maximum speed, and a parameter 1 enumerated by Fly (in the air) is a maximum acceleration), where a configuration mode of each parameter is in a form of key: value, namely, parameter name (such as English name): parameter value, for ease of reading and configuration by a developer. The foregoing riding skills may be divided into active skills and passive skills. The active skills support user-initiated triggering, and the passive skills are passively triggered, such as triggered by the terrain on which the virtual pet is located.TABLE 2Basic movementNamestate (type)Parameter 1Parameter 2Utility type 3Type 1Key: valueUtility type 4Type 1Key: valueNovelty type 1Type 2Key: valueKey: valueNovelty type 2Type 2Key: valueKey: valueHigh-speed type 1Type 3Key: valueKey: value

[0126] As shown in Table 2, the basic movement state corresponding to a utility type is classified as type 1, the basic movement state corresponding to a novelty type is classified as type 2, and the basic movement state corresponding to a high-speed type is classified as type 3. A parameter 1 or a parameter 2 corresponding to each enumeration is stored in a form of key: value.

[0127] In some aspects, the terrain may be divided into at least one of the following:(A) Ground

[0128] The virtual creatures that can be ridden on the ground may be classified into three types based on functionalities (i.e., the basic movement state):

[0129] Utility type: The virtual creature of the utility type has a relatively high basic movement capability and abundant active skills and passive skills, and is applicable to most of riding scenes;

[0130] Novelty type: The virtual creature of the novelty type has strange riding performance due to its own setting and shape, has relatively low basic movement capability and abundant active skills and passive skills, and is applicable to some specific riding scenes; and

[0131] High-speed type: The virtual creature of the high-speed type has relatively high basic movement capability, may use the active skills to improve the movement capability, and is mostly used for movement on a flat terrain.

[0132] For example, movement configuration parameters of a virtual creature that can be ridden on the ground (which belongs to the basic movement type compatible with the ground) may be shown in Table 3.TABLE 3SRAT—Movement parameter 1Maximum basic movement speedGROUNDMovement parameter 2Gradient-maximum movement speedrelationshipMovement parameter 3Acceleration curveMovement parameter 4Deceleration curveMovement parameter 5Angular speed curve

[0133] As shown in Table 3, for a virtual creature that can be ridden on the ground, five corresponding movement parameters may be set for the foregoing three basic movement types to perform distinguishing.(B) Wall

[0134] The virtual creature of ridable climbing type (i.e., a wall-ridable type, which belongs to a basic movement type compatible with walls) may be classified into multiple types (such as three types) or multiple ranks based on a rank of the creature. The higher rank of the virtual creature has higher wall climbing capability.

[0135] For example, movement configuration parameters of the wall-ridable virtual creature may be shown in Table 4.TABLE 4SRAT—Movement parameter 1Maximum basic movement speedCLIMBMovement parameter 2Maximum accelerationMovement parameter 3Climbing braking deceleration

[0136] As shown in Table 4, for the wall-ridable virtual creature, three corresponding movement parameters may be set for each of the foregoing multiple basic movement types to perform distinguishing.(C) Sky

[0137] The virtual creature that can be ridden in the air (which belongs to the basic movement type compatible with the sky) may be classified into three types based on a riding posture (i.e., a basic movement state):

[0138] Hanging foot-grasp type: The virtual creature of the hanging foot-grasp type has a slightly strong movement capability along a Z-axis (i.e., a direction of gravity), but weak horizontal movement capability. The virtual creature of this type is mainly used for large-scale purely vertical displacement, like a hot air balloon. For example, FIG. 10 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure. A first virtual pet 1001 moves in the air in a manner of grasping a main control virtual character 1002, to implement the movement of the main control virtual character 1002 riding the first virtual pet 1001 in the air.

[0139] Hanging packsack-grasp type: The virtual pet of the hanging packsack-grasp type has moderate vertical movement capability and horizontal movement capability. For example, FIG. 11 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure. A first virtual pet 1101 grasps a packsack of a main control virtual character 1102 to implement the movement of the main control virtual character 1102 riding the first virtual pet 1101 in the air.

[0140] Normal riding type: The virtual creature of the normal riding type is amphibious (that can be ridden both on the ground and in the air), has slightly weak vertical movement capability, and focuses more on small-scale horizontal movement, like gliding experience. For example, FIG. 12 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure. A main control virtual character 1202 sits on a first virtual pet 1201, thereby implementing the movement of the main control virtual character 1202 riding the first virtual pet 1201 in the air.

[0141] For example, movement configuration parameters of the virtual creature that can be ridden in the air may be shown in Table 5.TABLE 5SRAT_FLYMovement parameter 1Maximum accelerationMovement parameter 2Reference maximum speedMovement parameter 3Angular speed loss rateMovement parameter 4Linear angular speed curveMovement parameter 5Maximum descending speedMovement parameter 6Maximum descending speed in ano-strength stateMovement parameter 7Hanging activation speed

[0142] As shown in Table 5, for the virtual creature that can be ridden in the air, seven corresponding movement parameters may be set for each of the foregoing three basic movement types to perform distinguishing.(D) Water Surface

[0143] The virtual creature that can be ridden in the water (which belongs to the basic movement type compatible with the water) may be classified as follows based on settings and forms of the virtual creatures:

[0144] Realistic type: The virtual creature of the realistic type has a hand feel more like swimming of the character, with moderate speed.

[0145] Fish type: The fish-type virtual creature has powerful mobility in water, good hand feel, and strong capability.

[0146] Amphibious type: The amphibious creatures such as ducks and seals, with slightly stronger mobility in water.

[0147] Multi-environment movement: The virtual creature of this type can simultaneously possess multiple basic movement types mentioned above.

[0148] For example, movement configuration parameters of the virtual creature that can be ridden in the water may be shown in Table 6.TABLE 6SRAT_SWIMMovement parameter 1Maximum accelerationMovement parameter 2Reference maximum speedMovement parameter 3Acceleration curveMovement parameter 4Deceleration curveMovement parameter 5Linear angular speed curve

[0149] As shown in Table 6, for the virtual creatures that can be ridden in the water, five corresponding movement parameters may be set for each of the foregoing four basic movement types to perform distinguishing.

[0150] In some aspects, the evolution of the virtual creatures leads to an improvement in capabilities of the virtual creatures (providing a sense of meta-progression). For example, each time the virtual creature evolves or promotes to a higher tier, the riding capability and effects of the riding skills of the virtual creature are significantly enhanced. This enables riding, as a meta-gameplay element, to coordinate in-game combat loops, leveling up of virtual creatures, and other game playing methods, thereby providing the users with a rich sense of meta-progression.

[0151] Operation 230d: Deduct a first numerical value per unit time from a specified attribute value of the main control virtual character in a case that the first virtual pet moves in the basic movement state in the virtual scene. For example, when the first virtual pet moves in the basic movement state in the virtual scene, a first value per unit time is deducted from the specified attribute value.

[0152] In this aspect of this disclosure, during a process of the user controlling the main control virtual character to ride the first virtual pet and move in the basic movement state in the virtual scene, the computer device may continuously deduct the specified attribute value of the main control virtual character. The foregoing unit time and first numerical value may be set and adjusted based on an actual usage requirement. This is not limited in the aspects of this disclosure.

[0153] For example, during the process of the user controlling the main control virtual character to ride the first virtual pet and move in the basic movement state in the virtual scene, the computer device may deduct a specific numerical value of stamina points of the main control virtual character per second until the stamina point of the main control virtual character is 0, or until the main control virtual character riding the first virtual pet stops moving, or until the main control virtual character cancels riding the first virtual pet.

[0154] In the solution shown in this aspect of this disclosure, in a case that the main control virtual character riding the first virtual pet moves in the basic movement state, the client continuously deducts the specified attribute value of the main control virtual character, so that when controlling the virtual character to ride the virtual pet, the user needs to consider impact of the specified attribute value of the main control virtual character on a riding behavior. This is beneficial to improving strategic nature of the user controlling the virtual character to ride the virtual pet.

[0155] Based on the aspect shown in FIG. 9, in some possible implementations, the first numerical value is determined by first information, and the first information includes at least one type of the following information:

[0156] (1) An identifier of the first virtual pet: The identifier of the first virtual pet may be an identity document (ID), a name, or the like of the first virtual pet; and in this aspect of this disclosure, for each virtual pet, a basic numerical value that is continuously deducted from the specified attribute value may be set for the basic movement state of the virtual pet.

[0157] (2) A level of the first virtual pet: In this aspect of this disclosure, for the same virtual pet at different levels, the numerical value that is continuously deducted from the specified attribute value may be different when the virtual pet is in the basic movement state; and for example, a higher level of the first virtual pet indicates a lower numerical value (i.e., the first numerical value) that is continuously deducted from the specified attribute value when the first virtual pet is in the basic movement state.

[0158] (3) A type of the basic movement state of the first virtual pet: In this aspect of this disclosure, for different types of basic movement states, the numerical value (i.e., the first numerical value) that is continuously deducted from the specified attribute value may further be different; and for example, when the virtual pet is in the basic movement state of flying or swimming, the numerical value that is continuously deducted from the specified attribute value is relatively high; and otherwise, when the virtual pet is in the basic movement state of the ground, the numerical value that is continuously deducted from the specified attribute value is relatively low.

[0159] (4) A movement speed of the first virtual pet: In this aspect of this disclosure, when the virtual pet is in the basic movement state, the numerical value that is continuously deducted from the specified attribute value may further be different when the virtual pet moves at different movement speeds; and for example, when the virtual pet is in the basic movement state, a higher movement speed of the virtual pet indicates a higher numerical value that is continuously deducted from the specified attribute value.

[0160] (5) A terrain buff of the first virtual pet: In this aspect of this disclosure, different virtual pets may be applicable to different terrains; in a case that the virtual pet is in the terrain suitable for the virtual pet, the virtual pet may have a terrain buff, and the terrain buff improves a riding effect, such as a movement speed, a movement distance, and riding duration. For example, if a specific virtual pet is applicable to glacier terrain, when the main control virtual character riding the virtual pet moves on the glacier terrain in the basic movement state, the virtual pet acquires the terrain buff, and a numerical value that is deducted per unit time from the specified attribute value is relatively low. In some aspects, the foregoing terrain buff may be a current terrain buff of the first virtual pet.

[0161] (6) A terrain debuff of the first virtual pet: In a case that the virtual pet is on an unsuitable terrain, the virtual pet may have a terrain debuff. For example, if a specific virtual pet is unsuitable for the glacier terrain, when the main control virtual character riding the virtual pet moves on the glacier terrain in the basic movement state, the virtual pet acquires the terrain debuff, and a numerical value that is deducted per unit time from the specified attribute value is relatively high. In some aspects, the foregoing terrain debuff may be a current terrain debuff of the first virtual pet.

[0162] (7) A remaining specified attribute value of the main control virtual character: In this aspect of this disclosure, a numerical value of the remaining specified attribute value of the main control virtual character, or a ratio (i.e., the percentage) of the remaining specified attribute value of the main control virtual character relative to a maximum limit of the specified attribute value of the main control virtual character may further affect the numerical value (i.e., the first numerical value) that is deducted per unit time from the specified attribute value when the main control virtual character riding the virtual pet moves in the basic movement state. In some aspects, the foregoing remaining specified attribute value may be a current remaining specified attribute value of the first virtual pet.

[0163] (8) Weather condition: In this aspect of this disclosure, different weather conditions may have different impacts on consumption of the specified attribute value when the virtual character riding the virtual pet moves in the basic movement state. For example, under rainy, snowy, or headwind conditions, the specified attribute value when the virtual character riding the virtual pet moves in the basic movement state is consumed faster (namely, the numerical value that is deducted per unit time from the specified attribute value is higher). For another example, under sunny or tailwind conditions, the specified attribute value when the virtual character riding the virtual pet moves in the basic movement state is consumed more slowly (i.e., the numerical value that is deducted per unit time from the specified attribute value is lower).

[0164] In the solution shown in this aspect of this disclosure, multiple influencing factors of the first numerical value may be set, so that when the user controls the virtual character to ride the virtual pet, the virtual pet to be ridden is strategically chosen. This is beneficial to improving the strategic nature of the user controlling the virtual character to ride the virtual pet.

[0165] In some possible implementations, in a case that the first information includes the remaining specified attribute value of the main control virtual character, the first numerical value is in a positive correlation with the remaining specified attribute value of the main control virtual character. For example, a larger remaining specified attribute value of the main control virtual character indicates a larger first numerical value, and a smaller remaining specified attribute value of the main control virtual character indicates a smaller first numerical value.

[0166] In some aspects, a numerical value or a percentage of the remaining specified attribute value of the main control virtual character is in a linear positive correlation with a consumption speed of the specified attribute value when the main control virtual character riding the virtual pet moves in the basic movement state.

[0167] Alternatively, a numerical value or a percentage of the remaining specified attribute value of the main control virtual character is in a nonlinear positive correlation with the consumption speed of the specified attribute value when the main control virtual character riding the virtual pet moves in the basic movement state. For example, when the numerical value or percentage of the remaining specified attribute value of the main control virtual character is within different preset range intervals, the specified attribute value of the main control virtual character riding the virtual pet when moving in the basic movement state has different consumption speeds. In some aspects, when the numerical value or percentage of the remaining specified attribute value of the main control virtual character is within the same preset range interval, the specified attribute value of the main control virtual character riding the virtual pet when moving in the basic movement state has the same consumption speed.

[0168] In the solution shown in this aspect of this disclosure, a larger remaining specified attribute value of the main control virtual character indicates a higher consumption speed of the specified attribute value when the main control virtual character riding the virtual pet moves in the basic movement state, a smaller remaining specified attribute value of the main control virtual character indicates a lower consumption speed of the specified attribute value when the main control virtual character riding the virtual pet moves in the basic movement state, so that the user chooses an appropriate occasion to consume or recover the stamina point, thereby improving strategic nature and interestingness of the user controlling the virtual character to ride the virtual pet.

[0169] In some possible implementations, the method for controlling the virtual character provided in this disclosure further includes: decreasing the first numerical value by a second percentage in a case that a percentage of the remaining specified attribute value of the main control virtual character relative to the maximum limit of the specified attribute value of the main control virtual character is less than or equal to the first percentage.

[0170] The maximum limit of the specified attribute value, the first percentage, and the second percentage may be set and adjusted based on an actual usage requirement. This is not limited in this aspect of this disclosure. The first percentage may be a percentage for the maximum limit of the specified attribute value, and the second percentage may be a percentage for the first numerical value.

[0171] In this aspect of this disclosure, in a case that the remaining specified attribute value of the main control virtual character is greater than the first percentage (such as 50%) of the maximum limit of the specified attribute value of the main control virtual character, the consumption speed of the specified attribute value when the main control virtual character riding the virtual pet moves in the basic movement state is relatively high. When the remaining specified attribute value of the main control virtual character decreases to be less than 50% of the maximum limit of the specified attribute value of the main control virtual character, the consumption speed of the specified attribute value when the main control virtual character riding the virtual pet moves in the basic movement state decreases.

[0172] Based on the foregoing solution, two levels of consumption speeds of the specified attribute value are set for the percentage of the remaining specified attribute value of the main control virtual character to the maximum limit of the specified attribute value, so that the user can choose an appropriate occasion to consume or recover the stamina point, thereby improving the strategic nature and interestingness of the user controlling the virtual character to ride the virtual pet.

[0173] Based on the method shown in the foregoing aspects, FIG. 13 is a flowchart of a method for controlling a virtual character according to another aspect of this disclosure. Operation 230 may be implemented as the following operation 230e and operation 230f.

[0174] Operation 230e: Control the first virtual pet to release a displacement skill corresponding to a movement skill release operation in a case that the second operation is the movement skill release operation. For example, when the second operation is a movement-skill activation operation, the first virtual pet is controlled to activate a displacement skill corresponding to the movement-skill activation operation.

[0175] Operation 230f: Deduct a third numerical value from the specified attribute value of the main control virtual character, the third numerical value being a numerical value corresponding to the displacement skill. For example, a third value is deducted from the specified attribute value. The third value corresponds to the displacement skill.

[0176] The movement skill release operation is an operation for releasing a movement skill. For example, the movement skill release operation may be a triggering operation performed by the user on an active skill button in the scene interface. The movement skill belongs to the foregoing active skill, and may be configured to optimize a movement effect of the main control virtual character, such as a movement speed and a movement distance.

[0177] In this aspect of this disclosure, releasing the displacement skill consumes the specified attribute value of the main control virtual character, and the third numerical value may be set and adjusted based on an actual usage requirement. For example, different displacement skills may be configured with different third numerical values, or with different methods or logic for calculating the third numerical value.

[0178] In this aspect of this disclosure, the main control virtual character in a state of riding the virtual pet may control the virtual pet to actively release the displacement skill. In some aspects, the virtual pet that is applicable to different surfaces or terrains may have different displacement skills. Different virtual pets that are applicable to the same surface or terrain may have the same or different displacement skills.

[0179] Using an example in which the virtual pet is a virtual creature in a game scene, the virtual creature that can be ridden in a virtual big world may have active skills (including the foregoing displacement skill) in a riding state. For example, the foregoing displacement skill is a big world skill related to the movement that may be used by the ridden virtual creature after the main control virtual character enters a riding state.

[0180] For example, for the following different surfaces, the virtual creature may have different displacement skills:(1) Ground

[0181] Sprinting: After being activated, the virtual creature enters a sprinting state, a movement speed of the virtual creature increases, and after the sprinting state is ended, the virtual pet exits the sprinting state;

[0182] Jumping or double jumping: When activated, the virtual pet moves upward, during which the direction may be controlled; and some virtual creatures can release this skill again during jumping to activate double jumping;

[0183] Charged dash: The charging process is maintained during a long-press operation, and the movement is initiated upon the termination of the long-press operation; and the movement speed and the displacement distance of the virtual pet are determined according to charging duration.

[0184] FIG. 14 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure. As shown in FIG. 14, a lower right corner of the scene interface includes a control 1401 of a land active skill (sprinting). In response to a triggering operation performed by the user on the control 1401, the client controls the virtual creature to release the land active skill (sprinting) and enter a sprinting state.(2) Wall

[0185] Climbing and jumping: When activated, the virtual creature moves in a current direction, and may not exit a climbing state.(3) Sky

[0186] Flying: When activated, the virtual creature increases its vertical height (focusing on vertical flight). In some aspects, this skill may further increase a flight speed of the virtual creature.(4) Water Surface

[0187] Fast swimming: When activated, the virtual creature increases its swimming speed.

[0188] FIG. 15 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure. As shown in FIG. 15, a lower right corner of the scene interface includes a control 1501 of a water active skill (swimming sprinting). In response to a triggering operation performed by the user on the control 1501, the client controls the virtual creature to release the water active skill (sprinting) and enter a swimming sprinting state.

[0189] In some aspects, for the virtual creatures capable of moving in multiple environments, a correspondence between different basic movement states and active skills may be achieved in a manner of configuring them in a one-to-one correspondence by using an array, reference can be made to Table 7.TABLE 7NameBasic movement statePassive skillActive skillWater xx10006; 30101400470001; 80003

[0190] As shown in Table 7, a specific amphibious virtual creature has a land movement state and a swimming movement state, an active skill 70001 corresponds to a basic movement state 10006 (such as the land movement state), and an active skill 80003 corresponds to a basic movement state 30101 (such as the swimming movement state).

[0191] In some aspects, the virtual creature that can be ridden in the virtual big world and is in the riding state may further possess other active skills than the displacement skill, for example:

[0192] Telescope: When activated, a far field of view can be shortened. When the active skill of the telescope is triggered, the computer device may modify a current field of view (FOV), to zoom in or zoom out a far field of view, thereby zooming in or zooming out a picture.

[0193] Perception: When this skill is activated, a special object, element, virtual object, collectable prop, or the like in the virtual scene may be highlighted.

[0194] FIG. 16 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure. As shown in FIG. 16, when a player activates the perception skill of a virtual pet, an outline of a collectable prop 1601 is highlighted in the scene interface. The collectable prop 1601 may be any virtual prop that can be collected by a main control virtual character. A correspondence between the active skills and parameters of the virtual creature may be shown in Table 8.TABLE 8TypeParameterDescriptionJumpingMovement parameter 1Air accelerationMovement parameter 2Air friction forceMovement parameter 3Air speed limitFast swimmingMovement parameter 4Movement speed buffAscending flightMovement parameter 5Maximum rising speedMovement parameter 6Stop static decelerationMovement parameter 7Flying duration

[0195] As shown in Table 8, the parameter represents an active skill, and the client may invoke the corresponding active skill by using the parameter. The term “Description” describes a buff of a corresponding active skill.

[0196] In this aspect of this disclosure, when the user performs the movement skill release operation (such as a touch control or a mouse click / tap operation on a skill control, or a pressing operation on a keyboard key corresponding to the displacement skill), the computer device may control the virtual pet (i.e., the first virtual pet) currently ridden by the main control virtual character to release the corresponding displacement skill, and meanwhile, needs to consume the specified attribute value corresponding to the displacement skill. The foregoing solution enables the user to control the virtual pet to perform a special displacement behavior by using the displacement skill when controlling the virtual character to ride the virtual pet, and needs to consider the impact of the specified attribute value of the main control virtual character on the displacement skill, thereby improving the strategic nature of the user controlling the virtual character to ride the virtual pet.

[0197] In some possible implementations, the deducting a third numerical value from the specified attribute value of the main control virtual character includes:

[0198] (1) Deduct the third numerical value from the specified attribute value of the main control virtual character at a single time.

[0199] In this aspect of this disclosure, when the user controls the first virtual pet ridden by the main control virtual character to release the displacement skill by using the movement skill release operation, the third numerical value corresponding to the displacement skill may be deducted at a single time. The solution has simple logic and relatively low complexity, and prevents the logic for deducting the specified attribute value from occupying excessive processing resources, thereby ensuring the running efficiency and smoothness of the virtual scene.

[0200] Using an example in which the virtual pet is a virtual creature in a game scene, resources consumed during riding may be associated with physical strength management.

[0201] For example, the stamina point of the main control virtual character may be consumed when basic movement is performed through riding and the riding skill is used, and the physical strength may be recovered when riding is stopped and canceled. The maximum value of the physical strength of the main control virtual character may increase as the level of the player increases. The players derive enjoyment from managing the physical strength and receive positive feedback from physical strength growth, which is conducive to increasing the interestingness, deepening the integration of movement-related operations, and increasing the possibilities for level structure and design.

[0202] In some aspects, configurations of active skills and stamina point consumption of the virtual creature may be shown in Table 9.TABLE 9Minimum stamina pointConsumption whenSkill namefor activationactivatedSkill name 1200200Skill name 2100100Skill name 3300300

[0203] As shown in Table 9, different active skills correspond to different activation consumptions (i.e., the third numerical value). In a case that the active skill is triggered, the client deducts the specified attribute value by the third numerical value corresponding to the active skill at a single time. For example, for skill name 1, the stamina point may be deducted by 200 at a single time.

[0204] (2) Deduct, within duration of the displacement skill, the third numerical value from the specified attribute value in a manner of deducting a specific numerical value per unit time, where the third numerical value is in a positive correlation with duration of the displacement skill.

[0205] In this aspect of this disclosure, for the displacement skill having specific duration, the third numerical value may be deducted based on the duration of the displacement skill. For example, within the duration of the displacement skill, at every unit time interval (such as 1 s), a specific numerical value is deducted from the specified attribute value of the main control virtual character. A total numerical value that is deducted from the specified attribute value within the duration of the displacement skill is the third numerical value.

[0206] For example, the foregoing displacement skill includes an acceleration skill on the ground. If the acceleration skill is a skill that is continuously released during the process of the user pressing the skill control (such as the foregoing active skill button) of the sprinting skill, namely, after the user presses the skill control of the sprinting skill, the first virtual pet enters an acceleration state, and a movement speed of the first virtual pet increases. In this case, the computer device deducts a specific numerical value from the specified attribute value of the main control virtual character every second. In some aspects, the numerical value is greater than the first numerical value that is deducted per unit time when the first virtual pet is in the basic movement state. In response to the fact that the user releases the skill control of the sprinting skill, the client controls the first virtual pet to exit the acceleration state.

[0207] By employing the foregoing solution, the numerical value that is deducted from the specified attribute value caused by releasing the displacement skill is associated with the duration of the displacement skill, and the user needs to consider the impact of the specified attribute value of the main control virtual character on the duration of the displacement skill, thereby improving the strategic nature of the user controlling the virtual character to ride the virtual pet and release the displacement skill.

[0208] In a possible implementation, within the duration of the displacement skill, when the third numerical value is deducted from the specified attribute value of the main control virtual character in a manner of deducting a numerical value per unit time, a fourth numerical value that is deducted per unit time is in a positive correlation with the remaining specified attribute value of the main control virtual character.

[0209] In a possible implementation, the method for controlling the virtual character provided in this disclosure further includes: reducing the fourth numerical value by a fourth percentage in a case that the percentage of the remaining specified attribute value of the main control virtual character relative to the maximum limit of the specified attribute value of the main control virtual character is less than or equal to the third percentage.

[0210] The fourth numerical value, the third percentage, and the fourth percentage may be set and adjusted based on an actual usage requirement.

[0211] With reference to the foregoing solution, when the percentage of the remaining specified attribute value of the main control virtual character relative to the maximum limit of the specified attribute value of the main control virtual character decreases to be less than a fifth percentage (such as 50%), consumption of the specified attribute value for continuously releasing the displacement skill may be reduced. Therefore, the user may choose an appropriate skill release occasion and release mode. For example, when the displacement skill is continuously released in a case that the remaining specified attribute value of the main control virtual character is less than 50%, the user may choose relatively long skill duration, to achieve a relatively long skill effect by consuming relatively small specified attribute value. When the displacement skill is continuously released in a case that the remaining specified attribute value of the main control virtual character is not less than 50%, the user may choose relatively short skill duration, to save the specified attribute value.

[0212] A relationship between the fourth numerical value and the remaining specified attribute value of the main control virtual character is like a relationship between the first numerical value and the remaining specified attribute value of the main control virtual character, and details are not described herein again. The foregoing third percentage may be the same as or different from the first percentage, and the foregoing fourth percentage may be the same as or different from the second percentage.

[0213] Using an example in which the virtual pet is a virtual creature in a game scene, a physical strength consumption form of the main control virtual character in a state of riding the virtual creature may include: a stamina point consumed per second during continuous release of the skill.

[0214] For example, for a persistent displacement skill, when the current stamina point reaches a continuous attenuation threshold (i.e., the aforementioned third percentage), a consumption speed of the stamina point may decrease, allowing the player to find a suitable occasion to recover and consume the physical strength, thereby achieving the purpose of managing the stamina point.

[0215] In some aspects, a continuous physical strength attenuation threshold is a percentage of an initial maximum stamina point of the player. For example, an attenuation threshold of physical strength consumption is equal to 50%, and an attenuation amplitude of the physical strength consumption (i.e., the foregoing fourth percentage) is equal to 30%. When the stamina point of the player is less than 50% of the initial maximum physical strength (such as 800), the physical strength consumption for continuously releasing the displacement skill is reduced by 30%.

[0216] (3) Deduct, within duration of the movement skill release operation, the third numerical value from the specified attribute value in a manner of deducting a specific numerical value per unit time, where the third numerical value is in a positive correlation with the duration of the movement skill release operation.

[0217] In this aspect of this disclosure, for the displacement skill that needs to be released by means of a strength accumulation, a third numerical value may be deducted based on strength accumulation time of the displacement skill. For example, during the strength accumulation of the displacement skill, at every unit time interval (such as 1 s), a specific numerical value is deducted from the specified attribute value of the main control virtual character. A total numerical value that is deducted from the specified attribute value within the strength accumulation duration of the displacement skill is the aforementioned third numerical value.

[0218] For example, using an example in which the foregoing displacement skill includes a strength accumulation sprinting skill on the ground, the user long presses the skill control of the strength accumulation sprinting skill to accumulate the strength, and releases the skill control to release the strength accumulation sprinting skill. When the user long presses the skill control for strength accumulation, the computer device deducts a specific numerical value from the specified attribute value of the main control virtual character every second. In some aspects, the numerical value is greater than the first numerical value that is deducted per unit time when the first virtual pet is in the basic movement state. When the user releases the skill control of the strength accumulation sprinting skill, the first virtual pet is accelerated for sprinting. A longer strength accumulation time indicates a higher displacement speed and longer distance of the accelerated sprinting.

[0219] By employing the foregoing solution, the numerical value that is deducted from the specified attribute value for releasing the displacement skill is associated with the strength accumulation time of the displacement skill, and the user needs to consider the impact of the specified attribute value of the main control virtual character on the strength accumulation time of the displacement skill, thereby improving the strategic nature of the user controlling the virtual character to ride the virtual pet and release the displacement skill.

[0220] In a possible implementation, within the strength accumulation time of the displacement skill, when the third numerical value is deducted from the specified attribute value of the main control virtual character in a manner of deducting a numerical value per unit time, a fifth numerical value deducted per unit time is in a positive correlation with the remaining specified attribute value of the main control virtual character.

[0221] In a possible implementation, the method for controlling the virtual character provided in this disclosure further includes: decreasing the fifth numerical value by a sixth percentage in a case that the percentage of the remaining specified attribute value of the main control virtual character relative to the maximum limit of the specified attribute value of the main control virtual character is less than or equal to the fifth percentage.

[0222] The fifth numerical value, the fifth percentage, and the sixth percentage may be set and adjusted based on an actual usage requirement.

[0223] Based on the foregoing solution, when the percentage of the remaining specified attribute value of the main control virtual character relative to the maximum limit of the specified attribute value of the main control virtual character decreases to be less than the fifth percentage (such as 50%), consumption of the specified attribute value of the displacement skill that is released in a strength accumulation manner may be reduced. Therefore, the user may choose a suitable skill release occasion and release manner. For example, when the displacement skill of the strength accumulation is released in a case that the remaining specified attribute value of the main control virtual character is less than 50%, the user may choose the long-time strength accumulation, to achieve a relatively high skill effect by consuming a relatively small specified attribute value. When the displacement skill of the strength accumulation is released in a case that the remaining specified attribute value of the main control virtual character is not less than 50%, the user may choose relatively short-time strength accumulation, to save the specified attribute value.

[0224] A relationship between the fifth numerical value and the remaining specified attribute value of the main control virtual character is like a relationship between the first numerical value and the current remaining specified attribute value of the main control virtual character, and details are not described herein again. The foregoing fifth percentage may be the same as or different from the first percentage, and the foregoing sixth percentage may be the same as or different from the second percentage.

[0225] The first percentage, the second percentage, the third percentage, the fourth percentage, the fifth percentage, and the sixth percentage may be set by a developer or operation and maintenance personnel of the virtual scene.

[0226] In some possible implementations, the displacement skill corresponds to a maximum deduction numerical value. In a case that the third numerical value is deducted from the specified attribute value at a single time and the remaining specified attribute value of the main control virtual character before the deduction is greater than or equal to the maximum deduction numerical value, the third numerical value is the maximum deduction numerical value. In a case that the third numerical value is deducted from the specified attribute value at a single time and the remaining specified attribute value of the main control virtual character is less than the maximum deduction numerical value, the third numerical value is the remaining specified attribute value of the main control virtual character.

[0227] In an example, in a case that the specified attribute value of the main control virtual character is sufficient for deducting the maximum deduction numerical value at a single time, the maximum deduction numerical value is deducted at a single time, and in a case that the specified attribute value of the main control virtual character is insufficient for deducting the maximum deduction numerical value at a single time, the current remaining specified attribute value of the main control virtual character is deducted, so that the main control virtual character can still release the displacement skill once.

[0228] Using an example in which the virtual pet is a virtual creature in a game scene, for the displacement skill of single release, when the current specified attribute value (such as the stamina point) of the main control virtual character is insufficient, the player may still release the displacement skill once, and the physical strength is set to 0 after the displacement skill is released. This solution provides operation possibility for the player, reduces frustration caused incapability of releasing the skill when the physical strength is sufficient, and offers strategic possibility for acquiring additional physical strength.

[0229] Based on the foregoing aspects, in some possible implementations, the method for controlling the virtual character provided in this disclosure further includes: displaying an attribute indication element, the attribute indication element indicating the remaining specified attribute value of the main control virtual character.

[0230] In this aspect of this disclosure, during the process of the main control virtual character riding the first virtual pet, the computer device may further display the remaining specified attribute value of the main control virtual character by using the attribute indication element.

[0231] For example, during the process of the main control virtual character riding the first virtual pet, in a case that the specified attribute value of the main control virtual character fails to reach the maximum value, the computer device may display the foregoing attribute indication element.

[0232] In some aspects, when the main control virtual character does not ride the virtual pet, the computer device may further display the remaining specified attribute value of the main control virtual character by using the attribute indication element. For example, in a case that the main control virtual character does not ride the virtual pet and the specified attribute value of the main control virtual character fails to reach the maximum value, the computer device displays the foregoing attribute indication element.

[0233] In the solution shown in this aspect of this disclosure, information related to the remaining specified attribute value of the main control virtual character is displayed in the scene interface of the virtual scene, so that the user more appropriately controls the main control virtual character to ride the first virtual pet and move, thereby improving the interaction efficiency and strategic nature of the user controlling the virtual character to ride the virtual pet.

[0234] A display position of the attribute indication element may be set by the developer. For example, the attribute indication element may be fixedly displayed at an upper middle position or a lower middle position in the scene interface. Alternatively, the display position of the attribute indication element may further be determined by a position and posture of a main control virtual object in the scene interface. For example, the attribute indication element may be displayed following the head of the main control virtual object.

[0235] In some possible implementations, the attribute indication element includes a progress bar element, and the progress bar element indicates a proportional relationship between the remaining specified attribute value of the main control virtual character and a maximum limit of the specified attribute value of the main control virtual character.

[0236] In some aspects, a progress of the progress bar element indicates the remaining specified attribute value of the main control virtual character. For example, the progress of the progress bar element is in a positive correlation with the remaining specified attribute value of the main control virtual character.

[0237] FIG. 17 is a schematic diagram of a progress bar element according to an aspect of this disclosure. As shown in FIG. 17, the attribute indication element includes a progress bar element 1701. The progress bar element 1701 is a circular progress bar. The progress bar element 1701 indicates a remaining specified attribute value of a main control virtual character.

[0238] In this aspect of this disclosure, the computer device may display, in a form of the progress bar, a percentage of the remaining specified attribute value of the main control virtual character, so that the user may more intuitively learn the current remaining specified attribute value, thereby ensuring a display effect of the remaining specified attribute value of the main control virtual character.

[0239] Based on the foregoing aspect, in some possible implementations, the method for controlling the virtual character provided in this disclosure further includes: recovering the specified attribute value of the main control virtual character by a second numerical value per unit time in a case that the main control virtual character rides the first virtual pet and stops moving, or in a case that the main control virtual character does not ride the virtual pet and consumes no specified attribute value.

[0240] The second numerical value is configured for indicating a recovery speed of the specified attribute value, and may be set and adjusted based on an actual usage requirement. This is not limited in this aspect of this disclosure.

[0241] For example, when the main control virtual character rides the first virtual pet and stops moving, or the main control virtual character does not ride the virtual pet and consumes no specified attribute value, the client may automatically recover the specified attribute value of the main control virtual character. For example, the client recovers a specified attribute value per unit time, so that the user can alternatively control the main control virtual character to perform behaviors such as riding the virtual pet and moving, stopping moving or canceling riding the virtual pet, thereby improving the strategic nature of the user controlling the virtual character to ride the virtual pet.

[0242] In some possible implementations, the second numerical value includes:

[0243] a specified numerical value, namely, the second numerical value is a set value; or

[0244] a specified percentage of a maximum limit of the specified attribute value of the main control virtual character, namely, the second numerical value is determined based on the maximum limit of the specified attribute value; or

[0245] the specified numerical value plus the specified percentage of the maximum limit of the specified attribute value of the main control virtual character.

[0246] The specified numerical value and the specified percentage may be set and adjusted based on a usage requirement.

[0247] Using an example in which the virtual pet is a virtual creature in a game scene and the specified attribute value is a stamina point, a form of recovering the stamina point of the virtual character may be as follows:

[0248] (1) Basic recovery: A specified numerical value is recovered every second; and

[0249] (2) A specified percentage of the maximum stamina point is recovered per second.

[0250] The foregoing two forms for recovering the stamina points may be used alone, or

[0251] may be used in combination.

[0252] For example, the maximum stamina point of the player may increase along with a progress of a game. If the stamina point increases by a fixed value in some embodiments, time for recovering the physical strength increases as the maximum stamina point increases. Therefore, in the solution shown in this aspect of this disclosure, a solution in which the foregoing two stamina point recovery forms are used in combination is introduced. For example, the virtual character recovers the stamina point by a fixed numerical value plus a fixed percentage, so that the time for recovering the stamina point of the virtual character may not significantly increase as the maximum stamina point increases.

[0253] In some aspects, a state in which the main control virtual object stands on land, or the main control virtual object rides the virtual pet and stands on land without any additional operations may be referred to as a standby state. In the standby state, the main control virtual character may obtain an additional recovery buff of the specified attribute value, such as the recovery buff in a form of a numerical value or a percentage. For example, when the main control virtual character is in the standby state, the stamina point of the main control virtual character may obtain an additional recovery speed, and the player may determine an appropriate stamina point management policy based on the mechanism.

[0254] Multiple modes are set for the second numerical value, which is conducive to improving the recovery flexibility of the specified attribute value, thereby improving the user experience.

[0255] Based on the foregoing aspects of this disclosure, in some possible implementations, the method for controlling the virtual character provided in this disclosure further includes: modifying, in a case that the first virtual pet is a first specified pet or a pet of a first specified type, a weather condition around the first virtual pet to be a weather condition corresponding to the first virtual pet.

[0256] The first specified pet is a virtual pet specified as having a capability to affect the weather condition, and the first specified type is a type of virtual pet specified as having the capability to affect the weather condition. The first specified pet and the first specified type may be set and adjusted based on actual usage requirements. The weather condition corresponding to the first virtual pet may match an attribute of the first virtual pet. For example, a rainy day matches a water attribute, and a high temperature matches a fire attribute.

[0257] In some aspects, the weather condition corresponding to the first virtual pet eliminates or suppresses a debuff, on the main control virtual character, of the weather condition before modification. The debuff has a negative impact on the state of the main control virtual character.

[0258] In some aspects, the weather condition includes at least one of the following: a weather type and an ambient temperature.

[0259] In this aspect of this disclosure, some specified virtual pets or virtual pets of specified types may have a characteristic affecting the surrounding weather condition. When controlling the main control virtual character to ride the first virtual pet, the user may consider the characteristic affecting the weather condition, and choose an appropriate virtual pet to ride, thereby improving the strategic nature of the user controlling the virtual character to ride the virtual pet.

[0260] For example, in a case that the main control virtual character is in a relatively harsh environment, the user may improve the current environment by controlling the virtual character to ride the specified virtual pet or the virtual pet of the specified type.

[0261] For example, when the main control virtual character is in a cold and extremely frigid environment, the cold and extremely frigid environment may have a negative impact on the main control virtual character, such as reducing the movement speed, continuously consuming the stamina point or accelerating the consumption of the stamina point, and continuously consuming health points. In this case, the user may control the main control virtual character to ride the specified virtual pet or the virtual pet of the specified type (such as a fire-type virtual pet). This specified virtual pet or virtual pet of the specified type may modify the surrounding weather type to a sunny weather type and increase the surrounding temperature to a suitable temperature, thereby reducing or offsetting the negative impact caused by the cold and extremely frigid environment on the main control virtual character.

[0262] For another example, when the main control virtual character is in a burning hot environment, the burning hot environment may have a negative impact on the main control virtual character, such as reducing the movement speed, continuously consuming the stamina point or accelerating the consumption of the stamina point, and continuously consuming health points. In this case, the user may control the main control virtual character to ride the specified virtual pet or the virtual pet of the specified type (such as a water-type virtual pet). This specified virtual pet or virtual pet of the specified type may modify the surrounding weather type to a rainy weather type and decrease the surrounding temperature to a suitable temperature, thereby reducing or offsetting the negative impact caused by the burning hot environment on the main control virtual character.

[0263] For example, when controlling the main control virtual character to ride a first pet character, the player may choose an appropriate first pet character to ride. For example, the player may increase the ambient temperature by riding the first virtual pet character, to avoid a reduction in a health point caused by the cold weather. For another example, the player may reduce the ambient temperature by riding the first virtual pet character, to avoid the reduction in the health point caused by the hot weather, thereby improving the strategic nature of the user controlling the main control virtual character to ride the pet character.

[0264] In some possible implementations, in a case that the first virtual pet is a second specified pet or a pet of a second specified type, a terrain around the first virtual pet is modified into a terrain corresponding to the first virtual pet.

[0265] The first specified pet is a virtual pet specified as having a capability to affect the terrain, and the first specified type is a type of the virtual pet specified as having the capability to affect the terrain. The second specified pet and the second specified type may be set and adjusted based on actual usage requirements. The terrain corresponding to the second virtual pet matches an attribute of the first virtual pet. For example, a water surface is compatible with a water attribute, and a volcano is compatible with a fire attribute.

[0266] In this aspect of this disclosure, some specified virtual pets or virtual pets of the specified type may have a characteristic affecting the surrounding terrain. When controlling the main control virtual character to ride the first virtual pet, the user may consider the characteristic affecting the terrain, and choose a suitable virtual pet to ride, thereby improving the strategic nature of the user controlling the virtual character to ride the virtual pet.

[0267] For example, in a case that the main control virtual character is on a relatively harsh terrain, the user may improve the current terrain by controlling the virtual character to ride the specified virtual pet or the virtual pet of the specified type.

[0268] For another example, when the main control virtual character is on a glacier terrain, the glacier terrain may have a negative impact on the main control virtual character, such as reducing the movement speed, continuously consuming the stamina point or accelerating the consumption of the stamina point, and continuously consuming health points. In this case, the user may control the main control virtual character to ride the specified virtual pet or the virtual pet of the specified type (such as a fire-type virtual pet). This specified virtual pet or virtual pet of the specified type may modify the surrounding terrain to a lava terrain or a plain terrain, thereby reducing or offsetting the negative impact caused by the glacier terrain on the main control virtual character.

[0269] For another example, when the main control virtual character is on the lava terrain, the lava terrain may have a negative impact on the main control virtual character, such as reducing the movement speed, continuously consuming the stamina point or accelerating the consumption of the stamina point, and continuously consuming health points. In this case, the user may control the main control virtual character to ride the specified virtual pet or the virtual pet of the specified type (such as an ice-type virtual pet). This specified virtual pet or virtual pet of the specified type may modify the surrounding lava terrain to the glacier terrain or the plain terrain, thereby reducing or offsetting the negative impact caused by the lava terrain on the main control virtual character.

[0270] Using an example in which the virtual pet is a virtual creature in a game scene, the virtual creature may further have a passive skill, and the passive skill may be a skill that is passively triggered to change the weather condition or the terrain. For example, the passive skill of the virtual creature may include at least one of the following:

[0271] (1) Passive perception: Passive perception perceives a virtual creature of a restrained type, the virtual creature is marked and displayed in the scene interface, for example, an outline of the virtual creature is displayed in the picture.

[0272] FIG. 18 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure. As shown in FIG. 18, in the scene interface, a virtual pet currently ridden by the main control virtual character perceives a virtual creature 1801 of a restrained type, and an outline of the virtual creature 1801 of the restrained type is highlighted.

[0273] (2) Temperature modification: A ridden virtual creature may increase or decrease an ambient temperature.

[0274] FIG. 19 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure. As shown in FIG. 19, in a scene interface, when a player controls a main control virtual character to summon and ride a fire-type virtual creature, an ambient temperature rises. For example, in FIG. 19, the scene interface includes an icon 1901 at an upper left corner, and the heart-shaped icon 1901 is a life bar of the main control virtual character. A color or a state of the life bar may represent the temperature around the current main control virtual character. The player may learn the temperature of an environment in which the main control virtual character is currently located from the color and state of the life bar, and after the ambient temperature rises, a negative impact of the low-temperature environment on the virtual character may be offset or reduced.

[0275] (3) Weather type modification: The ridden virtual creature may modify the surrounding weather type, such as modifying the weather type to be a sunny type, a rainy type, and a snowy type.

[0276] (4) Terrain modification: The ridden virtual creature may modify the surrounding terrain to be a terrain corresponding to the virtual creature. For example, if the main control virtual character rides an ice-type virtual creature, the surrounding terrain may be modified to the glacier terrain. If the main control virtual character rides the fire-type virtual creature, the surrounding terrain may be modified to the lava terrain, and the like.

[0277] Based on the foregoing aspect, in some possible implementations, the controlling, in response to a second operation for moving the main control virtual character, the main control virtual character to ride the first virtual pet and move in the virtual scene in a manner of consuming a specified attribute value of the main control virtual character includes:

[0278] acquiring movement configuration information of the first virtual pet; and

[0279] controlling, in response to the second operation and based on the movement configuration information, the main control virtual character to ride the first virtual pet and move in the virtual scene in a manner of consuming the specified attribute value of the main control virtual character,

[0280] where the movement configuration information includes at least one type of the following information: a maximum movement speed; an acceleration; a deceleration; an angular speed; and a relationship between a gradient and at least one of the maximum movement speed, the acceleration, and the angular speed.

[0281] The movement configuration information is information obtained by configuring a movement state of the first virtual pet. The movement configuration information may be configured in advance for the client to invoke. For example, at different gradients, the maximum movement speed, the acceleration, the angular speed, and the like may be changed. The maximum movement speed is a maximum movement speed of the first virtual pet, the acceleration is an acceleration when the first virtual pet moves, and the angular speed is a speed when the first virtual pet turns.

[0282] In some aspects, the first virtual pet moves in the movement state indicated by the movement configuration information.

[0283] In this aspect of this disclosure, different movement configuration information is set for different virtual pets, to provide different experience for riding different virtual pets, so that the user chooses the appropriate virtual pet to ride based on a requirement of the user, thereby improving an interaction effect when the user controls the virtual character to ride the virtual pet, and enriching the gaming experience of the user.

[0284] Using an example in which the virtual pet is a virtual creature in a game scene, different virtual pets may have different riding performance and different hand feels (i.e., operation experience).

[0285] (1) The virtual creatures of the same type in different colors or different forms may all be ridden.

[0286] In some aspects, the virtual creatures of the same type may correspond to different colors, or may be compatible with different terrains. The setting includes a collection element, which matches basic cognitive expectation of the player, helps stimulate the collection desire of the player, and increases the willingness of the player to share in a community.

[0287] For example, different virtual creatures may have the same appearance and different colors and materials (namely, the different virtual creatures may be distinguished based on different colors and materials), and the virtual creatures having the same appearance and different colors and materials may all be ridden.

[0288] (2) Multiple movement parameters bring a slight difference to a hand feel of the basic movement state.

[0289] Configuration terms for the basic movement state include:

[0290] Acceleration: A speed variation in a process from the start of input to reaching a maximum speed;

[0291] Deceleration: A speed variation in a process from stopping the input to reaching the speed of 0;

[0292] Angular speed: A turning speed, where a higher angular speed indicates higher difficulty for the virtual creature to turn, and a lower angular speed indicates easier turning of the virtual creature; and

[0293] Relationship between a gradient and a speed: At different gradients, the riding speed may be changed.

[0294] By matching and combining the foregoing four movement parameters, different hand feels may be obtained, thereby enhancing the immersion of riding in combination with the setting and form application of the virtual creature. Settings and forms of the virtual creature may include:

[0295] Swift type: high acceleration, low deceleration, difficult to stop and turn;

[0296] Heavy type: low acceleration and deceleration, slightly difficult to turn; and

[0297] Control type: slightly low speed, but easy to turn.

[0298] Using the foregoing game scene as an example, FIG. 20 is a diagram of a configuration flow relationship according to an aspect of this disclosure. As shown in FIG. 20, in a running process of a game scene, a computer device may read movement and skill configurations of a virtual creature from a basic movement and skill configuration table 2002 (such as Table 2 to Table 9 described above) by using an ID of a virtual creature in a creature configuration table 2001 (such as Table 1 described above), and control movement and consumption of a stamina point of the virtual creature based on the movement and skill configuration of the virtual creature.

[0299] In some possible implementations, prior to the controlling, in response to a second operation for moving the main control virtual character, the main control virtual character to ride the first virtual pet and move in the virtual scene in a manner of consuming a specified attribute value of the main control virtual character, the method further includes:

[0300] modifying the movement configuration information based on environmental information, the environmental information including at least one type of the following information: a terrain type and a weather condition. The environmental information is configured for describing a virtual environment in which a main control virtual character is located.

[0301] In some aspects, the movement configuration information is corrected based on an adaptation relationship between the environmental information and the first virtual pet. For example, after acquiring the movement configuration information, the computer device may further acquire a correction coefficient corresponding to the environmental information. The correction coefficient corresponding to the virtual pet under different environmental information may be configured in advance by the developer. The computer device multiplies the correction coefficient by at least one parameter (such as the maximum movement speed, the acceleration, the deceleration, and a consumption speed of the specified attribute value) specified in the movement configuration information, to obtain the corrected movement configuration information. Subsequently, the computer device controls the main control virtual character to ride the first virtual pet and move in the virtual scene by using the corrected movement configuration information.

[0302] Using an example in which the virtual pet is a virtual creature in a game scene, passive skills of the virtual creature in a riding state may further include the following skills:

[0303] (1) Weather passive: Identify the current weather condition, so that when the player controls a virtual character to ride a virtual creature and move under the corresponding weather condition, a buff or debuff may be obtained. Namely, the movement configuration information is corrected based on the weather condition.

[0304] FIG. 21 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure. As shown in FIG. 21, in the scene interface, when the weather passive skill is activated, a prompting light wave 2101 is displayed to indicate that the virtual creature obtains a buff or debuff due to the weather condition. This buff or debuff is determined based on the corrected movement configuration information.

[0305] For example, the buff brought by the weather condition may include at least one of the following: increasing a movement speed and reducing stamina point consumption. The debuff brought by the weather may include at least one of the following: increasing the movement speed and reducing stamina point consumption.

[0306] For example, when the player controls the main control virtual character to ride an ice-type virtual creature in cold weather, the client may increase the movement speed of the main control virtual character and reduce the consumption speed of the stamina point. When the player controls the virtual character to ride a fire-type virtual creature in cold weather, the client may reduce the movement speed of the main control virtual character and increase the consumption speed of the stamina point.

[0307] (2) Terrain passive: Identify the current terrain type, so that when the player controls the virtual character to ride the virtual creature and move on the corresponding terrain, a buff or debuff may be obtained.

[0308] FIG. 22 is a schematic diagram of a scene interface of a virtual scene according to another aspect of this disclosure. As shown in FIG. 22, in the scene interface, when the terrain passive skill is activated, a prompting light effect 2201 is displayed to indicate that the virtual creature obtains a buff or debuff due to the terrain. This buff or debuff is determined based on the corrected movement configuration information.

[0309] For example, the buff brought by the terrain may include at least one of the following: increasing the movement speed and reducing stamina point consumption. The debuff brought by the terrain may include at least one of the following: decreasing the movement speed and increasing stamina point consumption.

[0310] For example, when the player controls the main control virtual character to ride an ice-type virtual creature on the glacier terrain, the client may increase the movement speed of the main control virtual character and reduce the consumption speed of the stamina point. When the player controls the virtual character to ride a fire-type virtual creature on the glacier terrain, the client may reduce the movement speed of the main control virtual character and increase the consumption speed of the stamina point.

[0311] In some aspects, the passive skills and configuration modes of the virtual creature may be shown in Table 10.TABLE 10AttributenameNoteTerrain buff / terrainAttributePhysical strength consumptiondebuff / temperaturename 1coefficientbuff / temperature debuffAttributeAdditional maximum movementname 2speed

[0312] As shown in Table 10, the attribute name represents the passive skill, and the note describes the buff or a suggested effect (i.e., an effect formed by the movement configuration information corrected by the environmental information) corresponding to the passive skill.

[0313] The movement configuration information is corrected based on the environmental information, so that the main control virtual character acquires the buff or debuff. In this way, the player needs to consider the environmental information to choose the virtual pet to ride, thereby improving strategic nature and realism of the user controlling the virtual character to ride the virtual pet.

[0314] FIG. 23 is a structural block diagram of an apparatus for controlling a virtual character according to an aspect of this disclosure. The apparatus includes:

[0315] a display module 2301, configured to display a main control virtual character in a virtual scene, the main control virtual character having at least one virtual pet;

[0316] a riding control module 2302, configured to control, in response to a first operation for choosing to ride the first virtual pet, the main control virtual character to ride a first virtual pet, the first virtual pet being one of the at least one virtual pet; and

[0317] a movement control module 2303, configured to control, in response to a second operation for moving the main control virtual character, the main control virtual character to ride the first virtual pet and move in the virtual scene in a manner of consuming a specified attribute value of the main control virtual character.

[0318] In a possible implementation, the movement control module 2303 is configured to:

[0319] control the first virtual pet to move in a basic movement state in the virtual scene in a case that the second operation is a basic movement operation, the basic movement state being a movement state that is not adjusted; and

[0320] deduct a first numerical value per unit time from the specified attribute value in a case that the first virtual pet moves in the basic movement state in the virtual scene.

[0321] In a possible implementation, the first numerical value is determined by first information, and the first information includes at least one type of the following information: an identifier of the first virtual pet, a level of the first virtual pet, a type of the basic movement state, a movement speed of the first virtual pet, a terrain buff of the first virtual pet, a terrain debuff of the first virtual pet, a remaining specified attribute value of the main control virtual character, and a weather condition.

[0322] In a possible implementation, in a case that the first information includes the remaining specified attribute value of the main control virtual character, the first numerical value is in a positive correlation with the remaining specified attribute value of the main control virtual character.

[0323] In a possible implementation, the apparatus further includes:

[0324] a numerical value adjustment module (not shown in the drawings), configured to decrease the first numerical value by a second percentage in a case that a percentage of the remaining specified attribute value of the main control virtual character relative to a maximum limit of the specified attribute value of the main control virtual character is less than or equal to a first percentage.

[0325] In a possible implementation, the movement control module 2303 is configured to:

[0326] control the first virtual pet to release a displacement skill corresponding to a movement skill release operation in a case that the second operation is the movement skill release operation; and

[0327] deduct a third numerical value from the specified attribute value, the third numerical value being a numerical value corresponding to the displacement skill.

[0328] In a possible implementation, the movement control module 2303 is configured to:

[0329] deduct the third numerical value from the specified attribute value at a single time; or deduct, within duration of the displacement skill, the third numerical value from the specified attribute value in a manner of deducting a specific numerical value per unit time, the third numerical value being in a positive correlation with the duration of the displacement skill; or deduct, within duration of the movement skill release operation, the third numerical value from the specified attribute value in a manner of deducting a specific numerical value per unit time, the third numerical value being in a positive correlation with the duration of the movement skill release operation.

[0330] In a possible implementation, the displacement skill corresponds to a maximum deduction numerical value;

[0331] in a case that the third numerical value is deducted from the specified attribute value at a single time and the remaining specified attribute value of the main control virtual character before the deduction is greater than or equal to the maximum deduction numerical value, the third numerical value is the maximum deduction numerical value; and

[0332] in a case that the third numerical value is deducted from the specified attribute value at a single time and the remaining specified attribute value of the main control virtual character is less than the maximum deduction numerical value, the third numerical value is the remaining specified attribute value of the main control virtual character.

[0333] In a possible implementation, the apparatus further includes:

[0334] an element display module (not shown in the drawings), configured to display an attribute indication element, the attribute indication element indicating the remaining specified attribute value of the main control virtual character.

[0335] In a possible implementation, the attribute indication element includes a progress bar element, and the progress bar element indicates a proportional relationship between the remaining specified attribute value of the main control virtual character and a maximum limit of the specified attribute value of the main control virtual character.

[0336] In a possible implementation, the apparatus further includes:

[0337] an attribute value recovery module (not shown in the drawings), configured to recover the specified attribute value by a second numerical value per unit time in a case that the main control virtual character rides the first virtual pet and stops moving, or in a case that the main control virtual character does not ride a virtual pet and consumes no specified attribute value.

[0338] In a possible implementation, the second numerical value includes a specified numerical value; or a specified percentage of the maximum limit of the specified attribute value of the main control virtual character; or the specified numerical value plus the specified percentage of the maximum limit of the specified attribute value of the main control virtual character.

[0339] In a possible implementation, the movement control module 2303 is configured to:

[0340] acquire movement configuration information of the first virtual pet;

[0341] control, in response to the second operation and based on the movement

[0342] configuration information, the main control virtual character to ride the first virtual pet and move in the virtual scene in a manner of consuming the specified attribute value of the main control virtual character,

[0343] where the movement configuration information includes at least one type of the following information: a maximum movement speed; an acceleration; a deceleration; an angular speed; and a relationship between a gradient and at least one of the maximum movement speed, the acceleration, and the angular speed.

[0344] In a possible implementation, the apparatus further includes:

[0345] a configuration correction module (not shown in the drawings), configured to correct the movement configuration information based on environmental information, the environmental information including at least one type of the following information: a terrain type and a weather condition.

[0346] In a possible implementation, the apparatus further includes:

[0347] a weather modification module (not shown in the drawings), configured to, modify, in a case that the first virtual pet is a first specified pet or a pet of a first specified type, the weather condition around the first virtual pet to be a weather condition corresponding to the first virtual pet.

[0348] In some possible implementations, the weather condition corresponding to the first virtual pet eliminates or suppresses a debuff, on the main control virtual character, of the weather condition before modification.

[0349] In a possible implementation, the weather condition includes at least one of the following: a weather type and an ambient temperature.

[0350] In a possible implementation, the apparatus further includes:

[0351] a terrain modification module (not shown in the drawings), configured to modify a terrain around the first virtual pet into a terrain corresponding to the first virtual pet in a case that the first virtual pet is a second specified pet or a pet of a second specified type.

[0352] In a possible implementation, the riding control module 2302 is configured to:

[0353] display an option control of the at least one virtual pet;

[0354] display a first option control as a chosen state in response to a first-phase

[0355] operation for choosing the first option control from the at least one option control, a virtual pet corresponding to the first option control being the first virtual pet; and

[0356] control, in response to a second-phase operation for triggering a riding control, the main control virtual character to ride the first virtual pet, the first operation including the first-phase operation and the second-phase operation.

[0357] According to the method for controlling the virtual character provided in the aspects of this disclosure, the user is supported to choose the virtual pet owned by the main control virtual character for the main control virtual character to ride, and the specified attribute value (such as the stamina point) of the main control virtual character may be consumed during the process of the main control virtual character riding the virtual pet, so that combining the attribute of the user-controlled virtual character and the movement behavior of the virtual character riding the virtual pet increases factors affecting the virtual character riding the virtual pet, and further increases the manner for the user to control the virtual character to ride the virtual pet, to improve strategic nature of the user controlling the virtual character to ride the virtual pet, and further improve an interaction effect when the user controls the virtual character to ride the virtual pet. Moreover, increasing the factors affecting the virtual character riding the virtual pet is conducive to enhancing realism when the user controls the virtual character to ride the virtual pet, thereby improving control properness of the virtual character.

[0358] When the apparatus provided in the foregoing aspects implements functions of the apparatus, it is illustrated with an example of division of each functional module. In actual applications, the function distribution may be accomplished by different functional modules based on actual requirements. For example, an internal structure of a device is divided into different functional modules, to implement all or some of the functions described above.

[0359] With regard to the apparatus in the foregoing aspects, the specific way in which each module performs operations is already described in detail in the method aspects; and the technical effect obtained by each module performing the operations are the same as the technical effect in the method aspects, which is not described in detail herein again.

[0360] FIG. 24 is a structural block diagram of a computer device according to an aspect of this disclosure.

[0361] A computer device 2400 may be a portable mobile terminal, such as a smartphone, a tablet computer, a moving picture experts group audio layer III (MP3) player, or a moving picture experts group audio layer IV (MP4) player. The computer device 2400 may further be referred to as another name such as user equipment, a portable terminal, and a terminal device.

[0362] The computer device 2400 includes processing circuitry (for example, a processor 2401) and a memory 2402.

[0363] Processing circuitry, such as the processor 2401 may include one or more processing cores, such as a 4-core processor or an 8-core processor.

[0364] The memory 2402 may include one or more computer-readable storage media, such as a non-transitory computer-readable storage medium. The computer-readable storage medium may be tangible and non-transient. The memory 2402 may further include a high-speed random access memory, a non-volatile memory, such as one or more disk storage devices and flash storage devices. In some aspects, the non-transient computer-readable storage medium in the memory 2402 is configured to store at least one instruction, and the at least one instruction is executed by the processor 2401 to implement the method for controlling the virtual character provided in the aspects of this disclosure.

[0365] In some aspects, the computer device 2400 further includes: a peripheral device interface 2403 and at least one peripheral device. The peripheral device includes: at least one of a radio frequency circuit 2404, a touch display screen 2405, a camera 2406, an audio circuit 2407, and a power supply 2408.

[0366] In some aspects, the computer device 2400 further includes one or more sensors 2409. The one or more sensors 2409 include, but are not limited to an acceleration sensor 2410, a gyroscope sensor 2411, a pressure sensor 2412, an optical sensor 2413, and a proximity sensor 2414.

[0367] It is noted that the structure shown in FIG. 24 constitutes no limitation to the computer device 2400, and the computer device may include more or fewer components than those shown in the figure, or some components may be combined, or a different component deployment may be used.

[0368] In an example aspect, an aspect of this disclosure further provides a chip, including a programmable logic circuit or program instructions, the chip, when run on a computer device, being configured to implement the method for controlling the virtual character provided in the foregoing method aspects.

[0369] An aspect of this disclosure provides a computer-readable storage medium, the computer-readable storage medium having a computer program stored therein, the computer program being loaded and executed by a processor to implement the method for controlling the virtual character provided in the foregoing method aspects.

[0370] An aspect of this disclosure provides a computer program product or a computer program, the computer program product or the computer program including a computer instruction, the computer instruction being stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, so that the processor loads and executes the computer instruction to implement the method for controlling the virtual character provided in the foregoing method aspects.

[0371] The sequence numbers of the foregoing aspects of this disclosure are merely for description purpose but do not imply the preference among the aspects.

[0372] It is noted that all or some of the operations of the foregoing aspects may be implemented by hardware, or may be implemented by a program instructing relevant hardware. The program may be stored in a computer-readable storage medium. The computer-readable storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like.

[0373] It is noted that in the foregoing one or more examples, functions described in the aspects of this disclosure may be implemented by hardware, software, firmware, or any combination thereof. When implemented by using software, the functions can be stored in a computer-readable medium or can be used as one or more instructions or code in a computer-readable medium for transmission. The computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that enables a computer program to be transmitted from one place to another. The storage medium may be any available medium accessible to a general-purpose or dedicated computer.

Claims

1. A method for controlling a virtual character, the method comprising:outputting for display, by processing circuitry, a controlled virtual character in a virtual scene, the controlled virtual character having at least one virtual pet;outputting for display a user interface including a riding control element and an option control element for each of the at least one virtual pet;receiving, by the processing circuitry and through the user interface, a first operation to select, from the at least one virtual pet, a first virtual pet to ride;controlling, based on the first operation, the controlled virtual character to ride the first virtual pet;receiving a second operation to move the controlled virtual character; andcontrolling, based on the second operation, the controlled virtual character to move in the virtual scene while riding the first virtual pet and while consuming a specified attribute value of the controlled virtual character.

2. The method according to claim 1, wherein the controlling the controlled virtual character to move in the virtual scene while riding the first virtual pet and while consuming the specified attribute value comprises:when the second operation is a normal movement operation, controlling the first virtual pet to move in a basic movement state in the virtual scene, the basic movement state being an unadjusted movement state; andwhen the first virtual pet moves in the basic movement state in the virtual scene, deducting a first value per unit time from the specified attribute value.

3. The method according to claim 2, wherein the first value is determined based on first information, and the first information includes at least one of:an identifier of the first virtual pet,a level of the first virtual pet,a type of the basic movement state,a movement speed of the first virtual pet,a terrain-based benefit of the first virtual pet,a terrain-based penalty of the first virtual pet,a remaining value of the specified attribute value of the controlled virtual character, ora weather state in the virtual scene.

4. The method according to claim 3, wherein, when the first information includes the remaining value of the specified attribute value of the controlled virtual character, the first value is positively correlated with the remaining value of the specified attribute value of the controlled virtual character.

5. The method according to claim 4, further comprising:decreasing the first value by a second percentage when a percentage of the remaining value of the specified attribute value of the controlled virtual character relative to an upper limit of the specified attribute value of the controlled virtual character is less than or equal to a first percentage.

6. The method according to claim 1, wherein the controlling the controlled virtual character to move in the virtual scene while riding the first virtual pet and while consuming the specified attribute value comprises:when the second operation is a movement-skill activation operation, controlling the first virtual pet to activate a displacement skill corresponding to the movement-skill activation operation; anddeducting a third value from the specified attribute value, the third value corresponding to the displacement skill.

7. The method according to claim 6, wherein the deducting the third value from the specified attribute value comprises:deducting the third value from the specified attribute value in a single deduction;deducting, during a duration of the displacement skill, the third value from the specified attribute value by deducting a fixed value per unit time, the third value being positively correlated with the duration of the displacement skill; ordeducting, during a duration of the movement-skill activation operation, the third value from the specified attribute value by deducting a fixed value per unit time, the third value being positively correlated with the duration of the movement-skill activation operation.

8. The method according to claim 7, wherein the displacement skill corresponds to a maximum deduction value, the specified attribute value has a remaining value before the single deduction,when the third value is deducted from the specified attribute value in the single deduction and the remaining value is greater than or equal to the maximum deduction value, the third value is the maximum deduction value; andwhen the third value is deducted from the specified attribute value in the single deduction and the remaining value is less than the maximum deduction value, the third value is the remaining value.

9. The method according to claim 1, further comprising:outputting for display an attribute indicator element, the attribute indicator element indicating a remaining value of the specified attribute value of the controlled virtual character.

10. The method according to claim 9, wherein the attribute indicator element includes a progress bar element, and the progress bar element indicates a relationship between the remaining value of the specified attribute value of the controlled virtual character and an upper limit of the specified attribute value of the controlled virtual character.

11. The method according to claim 1, further comprising:restoring the specified attribute value by a second value per unit time when the controlled virtual character rides the first virtual pet and stops moving, or when the controlled virtual character does not ride a virtual pet and does not consume the specified attribute value.

12. The method according to claim 11, wherein the second value comprises:a designated value;a designated percentage of an upper limit of the specified attribute value of the controlled virtual character; ora sum of the designated value and the designated percentage of the upper limit of the specified attribute value of the controlled virtual character.

13. The method according to claim 1, wherein the controlling the controlled virtual character to move in the virtual scene while riding the first virtual pet and while consuming the specified attribute value comprises:obtaining movement configuration information of the first virtual pet; andcontrolling, based on the second operation and the movement configuration information, the controlled virtual character to move in the virtual scene while riding the first virtual pet and while consuming the specified attribute value, whereinthe movement configuration information includes at least one of: a maximum movement speed, an acceleration, a deceleration, an angular speed, or a relationship between a slope of terrain in the virtual scene and at least one of the maximum movement speed, the acceleration, or the angular speed.

14. The method according to claim 13, further comprising:correcting the movement configuration information based on environmental information to obtain corrected movement configuration information, whereinthe environmental information includes at least one of a terrain type of the virtual scene or a weather state of the virtual scene, andthe controlling the controlled virtual character to move in the virtual scene while riding the first virtual pet and while consuming the specified attribute value is performed based on the second operation and the corrected movement configuration information.

15. The method according to claim 1, further comprising:when the first virtual pet is a first specified pet or a pet of a first specified type, modifying a weather state around the first virtual pet to a weather state corresponding to the first virtual pet.

16. The method according to claim 15, wherein the weather state corresponding to the first virtual pet reduces a debuff on the controlled virtual character caused by the weather state around the first virtual pet before the weather state around the first virtual pet is modified.

17. The method according to claim 1, further comprising:modifying a terrain type of terrain around the first virtual pet to a terrain type corresponding to the first virtual pet when the first virtual pet is a second specified pet or a pet of a second specified type.

18. The method according to claim 1, wherein the first operation includes a first stage operation and a second stage operation, the method further comprising:receiving, through the user interface, the first stage operation to select a first option control element, the first option control element being the option control element corresponding to the first virtual pet;outputting for display, based on the first stage operation, the first option control element in a selected state; andreceiving, through the user interface, the second stage operation to trigger the riding control element.

19. An apparatus for controlling a virtual character, the apparatus comprising:processing circuitry configured tooutput for display a controlled virtual character in a virtual scene, the controlled virtual character having at least one virtual pet;output for display a user interface including a riding control element and an option control element for each of the at least one virtual pet;receive, through the user interface, a first operation to select, from the at least one virtual pet, a first virtual pet to ride;control, based on the first operation, the controlled virtual character to ride the first virtual pet;receive a second operation to move the controlled virtual character; andcontrol, based on the second operation, the controlled virtual character to move in the virtual scene while riding the first virtual pet and while consuming a specified attribute value of the controlled virtual character.

20. A non-transitory computer-readable storage medium storing instructions which, when executed by a processor, cause the processor to perform:outputting for display a controlled virtual character in a virtual scene, the controlled virtual character having at least one virtual pet;outputting for display a user interface including a riding control element and an option control element for each of the at least one virtual pet;receiving, through the user interface, a first operation to select, from the at least one virtual pet, a first virtual pet to ride;controlling, based on the first operation, the controlled virtual character to ride the first virtual pet;receiving a second operation to move the controlled virtual character; andcontrolling, based on the second operation, the controlled virtual character to move in the virtual scene while riding the first virtual pet and while consuming a specified attribute value of the controlled virtual character.