Companion object control
The method allows a companion object in a virtual scene to switch between states, enhancing user interaction efficiency and gaming experience by assisting the primary object, addressing the complexity of controlling multiple objects in virtual scenes.
Patent Information
- Application Number
- US18/740451
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2022-04-07
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-03
AI Technical Summary
In virtual scenes, controlling multiple virtual objects and companion objects simultaneously is complex, leading to difficulties in maintaining focus on one object while interacting with others, resulting in poor user experience and increased operation costs.
A method and apparatus that allow a companion object to switch between an attached state and an independent state, enabling it to assist the primary virtual object by performing tasks such as scouting and patrol, while reducing visual obstruction and operation burden, by using a skill chip to summon and control the companion object's form changes.
This solution enhances user interaction efficiency and diversity by allowing the companion object to adapt to different user requirements, improving the overall gaming experience by reducing operation costs and maintaining focus on the primary object.
Smart Images

Figure US20240325913A1-D00000_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is a continuation of International Application No. PCT / CN2023 / 071526, filed on Jan. 10, 2023, and which claims priority to Chinese Patent Application No. 202210028158.4, filed on Jan. 11, 2022 and entitled “METHOD AND APPARATUS FOR CONTROLLING COMPANION OBJECT, DEVICE, AND STORAGE MEDIUM IN VIRTUAL SCENE”; Chinese Patent Application No. 202210363870.X, filed on Apr. 7, 2022 and entitled “METHOD AND APPARATUS FOR PROCESSING SPECIAL EFFECTS PROP, DEVICE, AND COMPUTER-READABLE STORAGE MEDIUM”; Chinese Patent Application No. 202210365169.1, filed on Apr. 7, 2022 and entitled “METHOD AND APPARATUS FOR CONTROLLING VIRTUAL OBJECT, DEVICE, STORAGE MEDIUM, AND PROGRAM PRODUCT”; Chinese Patent Application No. 202210364186.3, filed on Apr. 7, 2022 and entitled “METHOD AND APPARATUS FOR USING VIRTUAL SHIELD, DEVICE, AND STORAGE MEDIUM”; Chinese Patent Application No. 202210364179.3, filed on Apr. 7, 2022 and entitled “EXPLORATION METHOD AND APPARATUS, DEVICE, MEDIUM, AND PROGRAM PRODUCT IN VIRTUAL WORLD”; Chinese Patent Application No. 202210364187.8, filed on Apr. 7, 2022 and entitled “METHOD AND APPARATUS FOR CONTROLLING VIRTUAL OBJECT, DEVICE, STORAGE MEDIUM, AND PROGRAM PRODUCT”; Chinese Patent Application No. 202210365549.5, filed on Apr. 7, 2022 and entitled “METHOD AND APPARATUS FOR CONTROLLING VIRTUAL OBJECT, DEVICE, STORAGE MEDIUM, AND PROGRAM PRODUCT”; Chinese Patent Application No. 202210365548.0, filed on Apr. 7, 2022 and entitled “METHOD AND APPARATUS FOR MANAGING VIRTUAL OBJECT, DEVICE, AND COMPUTER-READABLE STORAGE MEDIUM”; and Chinese Patent Application No. 202210365550.8, filed on Apr. 7, 2022 and entitled “METHOD AND APPARATUS FOR DISPLAYING VIRTUAL OBJECT, ELECTRONIC DEVICE, AND STORAGE MEDIUM”, which are incorporated herein by reference in their entirety.FIELD OF THE TECHNOLOGY
[0002] This disclosure relates to the technical field of human-computer interaction, and including to a method and an apparatus for controlling a companion object, a terminal device, a computer-readable storage medium, and a computer program product.BACKGROUND OF THE DISCLOSURE
[0003] In a virtual scene of a game, a battle process between different virtual objects can be simulated.
[0004] In the related art, in a case that a user-controlled virtual object has a summoning skill, an additional companion object may be summoned to participate in the interaction, thereby creating a combat synergy effect to expand more possibilities and experiences.
[0005] In a case that the user needs to control a plurality of objects (virtual object+at least one companion object) simultaneously, the human-computer interaction scheme provided in the related art is relatively complicated, which leads to a case that the user cannot take in to account the plurality of objects simultaneously, and may cause a case of attending to one thing while losing attention of another.SUMMARY
[0006] Embodiments of this disclosure provide a method and an apparatus for controlling a companion object, a terminal device, a non-transitory computer-readable storage medium, and a computer program product.
[0007] According to an aspect of the embodiments of this disclosure, a method for controlling a companion object is provided. In the method for controlling a companion object, a virtual scene is displayed. The virtual scene includes a first virtual object and a companion object of the first virtual object. The companion object is configured to switch between a first state and a second state. The companion object is controlled to switch between the first state and the second state. When the companion object is in the first state, the companion object is in a first form that is attached to the first virtual object. When the companion object is in the second state, the companion object is (i) in a second form that is not attached to the first virtual object and (ii) configured to move separately from the first virtual object, the first form of the companion object being different from the second form of the companion object.
[0008] According to another aspect of the embodiments of this disclosure, an apparatus for controlling a companion object is provided. The apparatus includes processing circuitry that is configured to display a virtual scene. The virtual scene includes a first virtual object and a companion object of the first virtual object. The companion object is configured to switch between a first state and a second state. The processing circuitry is configured to control the companion object to switch between the first state and the second state. When the companion object is in the first state, the companion object is in a first form that is attached to the first virtual object. When the companion object is in the second state, the companion object is (i) in a second form that is not attached to the first virtual object and (ii) configured to move separately from the first virtual object, the first form of the companion object being different from the second form of the companion object.
[0009] According to another aspect of the embodiments of this disclosure, a non-transitory computer-readable storage medium is provided, including instructions which when executed by a processor cause the processor to perform the method for controlling the companion object.
[0010] According to another aspect of the embodiments of this disclosure, a computer device is provided, including a processor and a memory, the memory storing a computer program, the processor being configured to perform the foregoing method by invoking the computer program stored in the memory.
[0011] According to another aspect of the embodiments of this disclosure, a computer program product is provided, including a computer program, the computer program, when executed by a processor, implementing the foregoing method.
[0012] The embodiments of this disclosure can have the following beneficial effects:
[0013] The companion object of the first virtual object is controlled to switch between the first state and the second state, so that at least one companion object can adapt to different requirements of users in various states, and personalized functions can be provided to the users. For example, in a manner of being attached to the first virtual object in the first form, the companion object can be prevented from exposing the field of view of the first virtual object when following the first virtual object, or prevented from blocking a movement path of the first virtual object in a case that a user controls movement of the first virtual object, and in the second state, can assist the first virtual object in performing tasks such as scouting and patrol, thereby improving efficiency of human-computer interaction and increasing the diversity of interaction.BRIEF DESCRIPTION OF THE DRAWINGS
[0014] FIG. 1 is a schematic diagram of an application mode of a method for controlling a companion object according to an embodiment of this disclosure.
[0015] FIG. 2 is a schematic diagram of an application mode of a method for controlling a companion object according to an embodiment of this disclosure.
[0016] FIG. 3 is a schematic structural diagram of a terminal device according to an embodiment of this disclosure.
[0017] FIG. 4 is a schematic flowchart of a method for controlling a companion object according to an embodiment of this disclosure.
[0018] FIG. 5 is a schematic flowchart of a method for controlling a companion object according to an embodiment of this disclosure.
[0019] FIG. 6 is a schematic flowchart of a method for controlling a companion object according to an embodiment of this disclosure.
[0020] FIG. 7 is a schematic diagram of an application scene of a method for controlling a companion object according to an embodiment of this disclosure.
[0021] FIG. 8 is a schematic diagram of an application scene of a method for controlling a companion object according to an embodiment of this disclosure.
[0022] FIG. 9 is a schematic diagram of an application scene of a method for controlling a companion object according to an embodiment of this disclosure.
[0023] FIG. 10 is a schematic diagram of an application scene of a method for controlling a companion object according to an embodiment of this disclosure.
[0024] FIG. 11 is a schematic diagram of an application scene of a method for controlling a companion object according to an embodiment of this disclosure.
[0025] FIG. 12 is a schematic flowchart of a method for controlling a companion object according to an embodiment of this disclosure.
[0026] FIG. 13 is a schematic diagram of an application scene of a method for controlling a companion object according to an embodiment of this disclosure.
[0027] FIG. 14 is a schematic diagram of summoning a companion object according to an embodiment of this disclosure.
[0028] FIG. 15 is a schematic diagram of an application scene of summoning a companion object according to an embodiment of this disclosure.
[0029] FIG. 16 is a schematic diagram of an application scene of a method for controlling a companion object according to an embodiment of this disclosure.
[0030] FIG. 17 is a schematic diagram of an application scene of a method for controlling a companion object according to an embodiment of this disclosure.
[0031] FIG. 18 is a schematic diagram of an application scene of a method for controlling a companion object according to an embodiment of this disclosure.
[0032] FIG. 19 is a schematic diagram of an application scene of a method for controlling a companion object according to an embodiment of this disclosure.
[0033] FIG. 20 is a schematic diagram of an application scene of a method for controlling a companion object according to an embodiment of this disclosure.
[0034] FIG. 21 is a schematic flowchart of summoning a companion object according to an embodiment of this disclosure.
[0035] FIG. 22 is a schematic flowchart of controlling conversion of a companion object from a first state to a second state according to an embodiment of this disclosure.
[0036] FIG. 23 is a schematic diagram of an application scene of a scouting method according to an embodiment of this disclosure.
[0037] FIG. 24 is a schematic flowchart of a scouting method according to an embodiment of this disclosure.
[0038] FIG. 25 is a schematic flowchart of a scouting method according to an embodiment of this disclosure.
[0039] FIG. 26 is a schematic diagram of an application scene of a scouting method according to an embodiment of this disclosure.
[0040] FIG. 27 is a schematic diagram of an application scene of a scouting method according to an embodiment of this disclosure.
[0041] FIG. 28 is a schematic diagram of a map display control according to an embodiment of this disclosure.
[0042] FIG. 29 is a schematic diagram of an application scene of a scouting method according to an embodiment of this disclosure.
[0043] FIG. 30 is a schematic flowchart of a scouting method according to an embodiment of this disclosure.
[0044] FIG. 31 is a schematic flowchart of a scouting method according to an embodiment of this disclosure.
[0045] FIG. 32 is a schematic diagram of an application scene of a scouting method according to an embodiment of this disclosure.
[0046] FIG. 33 is a schematic diagram of an application scene of a scouting method according to an embodiment of this disclosure.
[0047] FIG. 34 is a schematic flowchart of a scouting method according to an embodiment of this disclosure.
[0048] FIG. 35 is a schematic diagram of a form change of a companion object according to an embodiment of this disclosure.
[0049] FIG. 36 is a schematic diagram of an application scene of a scouting method according to an embodiment of this disclosure.
[0050] FIG. 37 is a schematic diagram of a form change of a companion object according to an embodiment of this disclosure.
[0051] FIG. 38 is a schematic diagram of an application scene of a scouting method according to an embodiment of this disclosure.
[0052] FIG. 39 is a schematic diagram of an application scene of a scouting method according to an embodiment of this disclosure.
[0053] FIG. 40 is a schematic diagram of detection according to an embodiment of this disclosure.
[0054] FIG. 41 is a schematic diagram of detection according to an embodiment of this disclosure.
[0055] FIG. 42 is a schematic flowchart of a method for controlling a companion object according to an embodiment of this disclosure.
[0056] FIG. 43 is an interface diagram of using a virtual shield monster according to an embodiment of this disclosure.
[0057] FIG. 44 is a flowchart of a method for using a virtual shield according to an embodiment of this disclosure.
[0058] FIG. 45 is a flowchart of a method for using a virtual shield according to an embodiment of this disclosure.
[0059] FIG. 46 is an interface diagram of using a virtual shield according to an embodiment of this disclosure.
[0060] FIG. 47 is an interface diagram of using a virtual shield according to an embodiment of this disclosure.
[0061] FIG. 48 is a flowchart of a method for using a virtual shield according to an embodiment of this disclosure.
[0062] FIG. 49 is a flowchart of a method for using a virtual shield according to an embodiment of this disclosure.
[0063] FIG. 50 is an interface diagram of using a virtual shield according to an embodiment of this disclosure.
[0064] FIG. 51 is a flowchart of a method for using a virtual shield according to an embodiment of this disclosure.
[0065] FIG. 52 is an interface diagram of using a virtual shield according to an embodiment of this disclosure.
[0066] FIG. 53 is an interface diagram of using a virtual shield according to an embodiment of this disclosure.
[0067] FIG. 54 is a flowchart of a method for using a virtual shield according to an embodiment of this disclosure.
[0068] FIG. 55 is a flowchart of a method for using a virtual shield according to an embodiment of this disclosure.
[0069] FIG. 56 is a flowchart of using a virtual shield monster according to an embodiment of this disclosure.
[0070] FIG. 57 is a flowchart of a method for controlling a virtual object according to an embodiment of this disclosure.
[0071] FIG. 58 is a schematic diagram of a display picture according to an embodiment of this disclosure.
[0072] FIG. 59 is a schematic diagram of a display picture according to an embodiment of this disclosure.
[0073] FIG. 60 is a flowchart of a method for controlling a virtual object according to an embodiment of this disclosure.
[0074] FIG. 61 is a schematic diagram of a display picture according to an embodiment of this disclosure.
[0075] FIG. 62 is a schematic diagram of a display picture according to an embodiment of this disclosure.
[0076] FIG. 63 is a flowchart of a method for controlling a virtual object according to an embodiment of this disclosure.
[0077] FIG. 64 is a flowchart of a method for controlling a virtual object according to an embodiment of this disclosure.
[0078] FIG. 65 is a flowchart of a method for managing a virtual object according to an embodiment of this disclosure.
[0079] FIG. 66 is a schematic display diagram of a display page of an application according to an embodiment of this disclosure.
[0080] FIG. 67 is a schematic display diagram of a game picture according to an embodiment of this disclosure.
[0081] FIG. 68 is a schematic display diagram of a target page according to an embodiment of this disclosure.
[0082] FIG. 69 is a schematic display diagram of a companion object in a second form according to an embodiment of this disclosure.
[0083] FIG. 70 is a schematic display diagram of a companion object in a first form according to an embodiment of this disclosure.
[0084] FIG. 71 is a schematic display diagram of a third virtual object according to an embodiment of this disclosure.
[0085] FIG. 72 is a schematic display diagram of a companion object in a third form according to an embodiment of this disclosure.
[0086] FIG. 73 is a schematic display diagram of a fourth virtual object according to an embodiment of this application after being attacked.
[0087] FIG. 74 is a schematic display diagram of displaying special effects corresponding to a companion object in a third region of the companion object in a third form according to an embodiment of this disclosure.
[0088] FIG. 75 is a schematic display diagram of a target region according to an embodiment of this disclosure.
[0089] FIG. 76 is a flowchart of a method for managing a virtual object according to an embodiment of this disclosure.
[0090] FIG. 77 is a flowchart of a method for controlling a virtual object according to an embodiment of this disclosure.
[0091] FIG. 78 is a flowchart of a method for controlling a virtual object according to an embodiment of this disclosure.
[0092] FIG. 79 is a schematic diagram of a state change of a companion object according to an embodiment of this disclosure.
[0093] FIG. 80 is a schematic diagram of energy accumulation according to an embodiment of this disclosure.
[0094] FIG. 81 is a schematic diagram of energy storage prompt information in a second display form according to an embodiment of this disclosure.
[0095] FIG. 82 is a schematic diagram of a first buff according to an embodiment of this disclosure.
[0096] FIG. 83 is a schematic diagram of a long-range buff according to an embodiment of this disclosure.
[0097] FIG. 84 is a flowchart of a method for controlling a virtual object according to an embodiment of this disclosure.
[0098] FIG. 85 is a flowchart of a method for displaying a virtual object according to an embodiment of this disclosure.
[0099] FIG. 86 is an interaction flowchart of a method for displaying a virtual object according to an embodiment of this disclosure.
[0100] FIG. 87 is an interaction flowchart of a method for controlling a marked prop according to an embodiment of this disclosure.
[0101] FIG. 88 is an interaction flowchart of a method for displaying a virtual object according to an embodiment of this disclosure.
[0102] FIG. 89 is an interaction flowchart of a method for displaying a virtual object according to an embodiment of this disclosure.
[0103] FIG. 90 is an interaction flowchart of a method for displaying a virtual object according to an embodiment of this disclosure.
[0104] FIG. 91 is a schematic diagram of an interface of a switching animation according to an embodiment of this disclosure.
[0105] FIG. 92 is a schematic diagram of an interface of an invisible summoned creature according to an embodiment of this disclosure.
[0106] FIG. 93 is a schematic diagram of an effect of DOT having an electric shock effect according to an embodiment of this disclosure.
[0107] FIG. 94 is a schematic diagram of an interface for controlling firing of a marking cartridge according to an embodiment of this disclosure.
[0108] FIG. 95 is a schematic diagram of an interface of successful marking of a marking cartridge according to an embodiment of this disclosure.
[0109] FIG. 96 is a schematic diagram of an interface where a marking cartridge is destroyed according to an embodiment of this disclosure.
[0110] FIG. 97 is a schematic flowchart of a method for processing a special effects prop according to an embodiment of this disclosure.
[0111] FIG. 98 is a schematic flowchart of a method for displaying a movement trajectory of a special effects prop according to an embodiment of this disclosure.
[0112] FIG. 99 is a schematic flowchart of a method for processing a special effects prop according to an embodiment of this disclosure.
[0113] FIG. 100 is a schematic flowchart of a method for processing a special effects prop according to an embodiment of this disclosure.
[0114] FIG. 101 is a schematic diagram of an application scene of a method for processing a special effects prop according to an embodiment of this disclosure.
[0115] FIG. 102 is a schematic diagram of an application scene of a method for processing a special effects prop according to an embodiment of this disclosure.
[0116] FIG. 103 is a schematic diagram of an application scene of a method for processing a special effects prop according to an embodiment of this disclosure.
[0117] FIG. 104 is a schematic diagram of an application scene of a method for processing a special effects prop according to an embodiment of this disclosure.
[0118] FIG. 105 is a schematic flowchart of a method for processing a special effects prop according to an embodiment of this disclosure.DESCRIPTION OF EMBODIMENTS
[0119] To make the objectives, technical solutions, and advantages of this disclosure clearer, the following describes this disclosure in further detail with reference to the accompanying drawings. The described embodiments are not to be considered as a limitation to this disclosure. Other embodiments shall fall within the scope of this disclosure.
[0120] In the following description, the involved term “some embodiments” describes subsets of all possible embodiments, but it may be understood that “some embodiments” may be the same subset or different subsets of all the possible embodiments, and can be combined with each other without conflict.
[0121] In the following description, the involved terms “first\second\ . . . ” are merely intended to distinguish between similar objects rather than describe specific orders. It may be understood that, “first\second\ . . . ” may interchange specific order or sequential order if allowed, so that the embodiments of this disclosure described herein can be implemented in an order other than those illustrated or described herein.
[0122] In the following description, the involved term “plurality of” means at least two.
[0123] Unless otherwise defined, meanings of all technical and scientific terms used in this specification are the same as those usually understood by a person skilled in the art to which this disclosure belongs. The terms used in this specification are merely intended to describe objectives of the embodiments of this disclosure, but are not intended to limit this disclosure.
[0124] Before the embodiments of this disclosure are further described in detail, a description is made on nouns and terms in the embodiments of this disclosure, and the nouns and terms in the embodiments of this disclosure are applicable to the following explanations.
[0125] 1) The expression “in response to” may be used for indicating a condition or a status on which one or more to-be-performed operations depend. In a case that the condition or the status is satisfied, the one or more operations may be performed in real time or have a set delay. Unless otherwise specified, an order in which a plurality of operations are performed is not limited.
[0126] 2) A virtual scene may include a scene displayed (or provided) in a case that a game program is run on a terminal device. The scene may be a simulation environment for the real world, or may be a semi-simulation and semi-fiction environment, and may further be a purely fictional virtual scene. The virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene, and the dimensions of the virtual scene are not limited in this embodiment of this disclosure. For example, the virtual scene may include sky, land, ocean, and the like. The land may include environmental elements such as desert and city, and a user may control a virtual object to move in the virtual scene.
[0127] 3) Virtual objects may include images of various people and things that can be controlled by a player or interact with the player in the virtual scene, or movable objects in the virtual scene. The movable objects may be a virtual character, a virtual animal, a cartoon character, and the like, for example, a character and an animal displayed in a virtual scene. The virtual object may be a virtual image for representing a user in a virtual scene. The virtual scene may include a plurality of virtual objects, and each virtual object has a shape and a volume in the virtual scene, and occupies some space in the virtual scene.
[0128] 4) Companion objects may include images of various people and things in a virtual scene that can assist a virtual object to interact with other virtual objects. The images may be a virtual character, a virtual animal, a cartoon character, and the like. For example, a companion object may be an object controlled by artificial intelligence (AI) in a virtual scene, or a non-player character (NPC) in a virtual scene. The AI may be any one or at least one of control logics with different intelligence capabilities such as an AI model, a decision tree, a logic tree, and a behavior tree. In some embodiments, the AI is controlled based on a condition-triggered control logic.
[0129] (5) Scene data may represent characteristic data of a virtual scene. For example, the scene data may be an area of a construction region in the virtual scene and a current architectural style of the virtual scene. The scene data may also include a location of a virtual building in the virtual scene, a floor area of the virtual building, and the like.
[0130] 6) A client may be an application running in a terminal device to provide various services, for example, a game client and a metaverse client.
[0131] 7) An unresponsive state may include a state in which a control target cannot respond to a user instruction due to external factors. For example, for a companion object that can be switched between an independent state and an attached state, the state may represent that the companion object is currently not switchable from the independent state to the attached state in response to an instruction, or not switchable from the attached state to the independent state in response to an instruction. The external factors may be that the companion object is disturbed by a control skill of another object (for example, in a dizzy state), a status value (for example, a health point) of the companion object is less than a status threshold, and the like. In addition, in a case that the external factors are eliminated (for example, the status value of the companion object is restored to be higher than a status threshold or the dizzy state is ended), the state of the companion object is to be switched from the unresponsive state to a responsive state, and in this case, the companion object may be switched from the independent state to the attached state.
[0132] 8) A first state may include a first state of the companion object. For example, a first form may present a state of being attached to a first virtual object to become a part of the first virtual object, which is also referred to as an attached state, a merged state, and an incomplete state.
[0133] 9) A second state may include a second state of the companion object, which may be different from the first state. For example, the second form may present a state of acting independently of the first virtual object, which is also referred to as an independent state, a separated state, a split state, and a complete state.
[0134] Embodiments of this disclosure include a method and an apparatus for controlling a companion object, an electronic device, a computer-readable storage medium, and a computer program product, so as to control a companion object in a virtual scene in a flexible and concise manner, thereby improving efficiency of human-computer interaction and user experience. In order to make it easier to understand the method for controlling a companion object in a virtual scene provided in this embodiment of this disclosure, an exemplary implementation scenario of the method for controlling a companion object in the virtual scene provided in this embodiment of this disclosure is first described. The virtual scene in the method for controlling a companion object in the virtual scene provided in this embodiment of this disclosure may be outputted based on a terminal device or collaboratively outputted based on the terminal device and a server.
[0135] In some embodiments, the virtual scene may be an environment for virtual objects (such as game characters) to interact, for example, for game characters to fight in a virtual scene. By controlling actions of game characters, both parties can interact in the virtual scene, so that users can relieve the pressure of life during the game.
[0136] FIG. 1 is a schematic diagram of an application mode of a method for controlling a companion object in a virtual scene according to an embodiment of this disclosure, which is applicable to some application modes of relying on computing power of graphics processing hardware of a terminal device 400 to complete calculation of related data of a virtual scene 100. For example, a game in a stand-alone / an off-line mode, outputting of a virtual scene is completed through various types of terminal devices 400 such as a smart phone, a tablet computer, and a virtual reality / augmented reality device.
[0137] As an example, types of graphics processing hardware include processing circuitry, such as a central processing unit (CPU) and a graphics processing unit (GPU).
[0138] In a case that visual perception of the virtual scene 100 is formed, the terminal device 400 calculates data required for display through the graphics computing hardware, and completes loading, parsing, and rendering of the displayed data, and outputs a video frame capable of forming visual perception of the virtual scene on the graphics output hardware. For example, a two-dimensional video frame is presented on a display screen of a smart phone, or a video frame with a three-dimensional display effect is projected onto lenses of augmented reality / virtual reality glasses. In addition, in order to enrich the perception effect, the terminal device 400 may further form one or more of auditory perception, tactile perception, motion perception, and taste perception through different hardware.
[0139] As an example, a client 410 (for example, a stand-alone game application) is run on the terminal device 400, and a virtual scene including role play is outputted during the running of the client 410. The virtual scene may be an environment for game characters to interact, which may be a plain, a street, a valley, or the like for game characters to fight, for example. The virtual scene 100 being displayed from a third-person perspective is used as an example. A first virtual object 101 is displayed in the virtual scene 100. The first virtual object 101 may be a user-controlled game character, that is, the first virtual object 101 is controlled by a real user and to move in the virtual scene 100 in response to an operation of the real user performed on a controller (such as a touch screen, a voice-operated switch, a keyboard, a mouse, and a joystick). For example, in a case that the real user moves the joystick (including a virtual joystick and a real joystick) to the right, the first virtual object 101 is to move to the right in the virtual scene 100, or may keep still, jump, and control the first virtual object 101 to perform a shooting operation.
[0140] For example, a first virtual object 101 and a companion object 102 in an attached state are displayed in a virtual scene 100. The companion object 102 is attached to the first virtual object 101 in a first form (for example, the companion object 102 may be attached to an arm of the first virtual object 101 in the shape of an arm guard, thereby becoming a part of the first virtual object 101). Then the client 410 controls the companion object 102 in the first form to switch from the attached state to the independent state in response to satisfying a release condition (for example, receiving a task triggering operation or satisfying a task automatic triggering condition). The independent state may be a state in which the companion object 102 acts in a second form independently of the first virtual object 101, and the companion object 102 in the second form is controlled to perform a task (for example, in a case that the release condition is satisfied, the companion object 102 may be controlled to switch from the shape of an arm guard to the shape of an independent virtual character, and the companion object 102 in the shape of a character may be controlled to a perform task). In this way, the companion objects in the virtual scene can be controlled in a flexible and concise manner, thereby improving the efficiency of human-computer interaction and user experience.
[0141] In another implementation scenario, FIG. 2 is a schematic diagram of an application mode of a method for controlling a companion object in a virtual scene according to an embodiment of this disclosure, which is applied to a terminal device 400 and a server 200, and is applicable to an application mode of relying on computing power of the server 200 to complete calculation of the virtual scene and outputting a virtual scene at the terminal device 400.
[0142] Visual perception of the virtual scene 100 being formed is used as an example. The server 200 calculates display data (such as scene data) related to the virtual scene and transmits the data to the terminal device 400 through a network 300. The terminal device 400 relies on graphics computing hardware to complete loading, parsing, and rendering of the calculated display data, and relies on the graphics output hardware to output a virtual scene to form visual perception. For example, a two-dimensional video frame may be presented on a display screen of a smart phone, or a video frame with a three-dimensional display effect is projected onto lenses of augmented reality / virtual reality glasses. For the perception in the form of the virtual scene, it may be understood that a virtual scene may be outputted by means of the corresponding hardware of the terminal device 400, for example, using a microphone to form auditory perception, and using a vibrator to form haptic perception.
[0143] As an example, a client 410 (for example, an online game application) is run on the terminal device 400, and interacts with other users through a connection server 200 (for example, a game server), and the terminal device 400 outputs the virtual scene 100 of the client 410. The virtual scene 100 being displayed from a third-person perspective is used as an example. A first virtual object 101 is displayed in the virtual scene 100. The first virtual object 101 may be a user-controlled game character, that is, the first virtual object 101 is controlled by a real user and to move in the virtual scene 100 in response to an operation of the real user performed on a controller (such as a touch screen, a voice-operated switch, a keyboard, a mouse, and a joystick). For example, in a case that the real user moves the joystick to the right, the first virtual object 101 is to move to the right in the virtual scene 100, or may keep still, jump, and control the first virtual object 101 to perform a shooting operation.
[0144] For example, a first virtual object 101 and a companion object 102 in an attached state are displayed in a virtual scene 100. The companion object 102 is attached to the first virtual object 101 in a first form (for example, the companion object 102 may be attached to an arm of the first virtual object 101 in the shape of an arm guard, thereby becoming a part of the first virtual object 101). Then the client 410 controls the companion object 102 in the first form to switch from the attached state to the independent state in response to satisfying a release condition (for example, receiving a task triggering operation or satisfying a task automatic triggering condition). The independent state may be a state in which the companion object 102 acts in a second form independently of the first virtual object 101, and the companion object 102 in the second form is controlled to perform a task (for example, in a case that the release condition is satisfied, the companion object 102 may be controlled to switch from the shape of an arm guard to the shape of an independent virtual character, and the companion object 102 in the shape of a character may be controlled to a perform task). In this way, the companion objects in the virtual scene can be controlled in a flexible and concise manner, thereby improving the efficiency of human-computer interaction and user experience.
[0145] In some embodiments, the terminal device 400 may implement the method for controlling a companion object in the virtual scene provided in this embodiment of this disclosure by running a computer program. For example, the computer program may be a native program or a software module in an operating system; may be a native application (APP), that is, a program that needs to be installed in the operating system to run, such as a shooting game APP (that is, the foregoing client 410); or may be an applet, that is, a program that only needs to be downloaded into a browser environment to run; and may further be a game applet that can be embedded in any APP. In a word, the foregoing computer program may be any form of application, module, or plug-in.
[0146] A computer program being an application program is used as an example. During actual implementation, an application program supporting a virtual scene is installed and run in the terminal device 400. The application program may be any one of a first-person shooting game (FPS), a third-person shooting game, a virtual reality application program, a three-dimensional map program, or a multiplayer shootout survival game. A user uses the terminal device 400 to operate a virtual object located in the virtual scene for an activity. The activity includes but is not limited to: at least one of adjusting a body posture, crawling, walking, running, riding, jumping, driving, pickup, shooting, attacking, throwing, and building a virtual building. Exemplarily, the virtual object may be a virtual character, such as a simulated character or a cartoon character.
[0147] In some other embodiments, this embodiment of this disclosure may further be implemented through cloud technology. The cloud technology is a hosting technology that unifies a series of resources such as hardware, software, and a network in a wide area network or a local area network to realize data computing, storage, processing, and sharing.
[0148] The cloud technology is a generic term of a network technology, an information technology, an integration technology, a management platform technology, and an application technology based on application of a cloud computing business model. The resources may form a resource pool and are used on demand, which is flexible and convenient. A cloud computing technology is to become an important support. Background services of a technology network system require a lot of computing and storage resources.
[0149] For example, the server 200 in FIG. 2 may be an independent physical server, or may be a server cluster formed by a plurality of physical servers or a distributed system, and may further be a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a content delivery network (CDN), a big data, and artificial intelligence platform. The terminal device 400 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, or the like, which is not limited thereto. The terminal device 400 and the server 200 may be directly or indirectly connected in a manner of wired or wireless communication, which is not limited in this embodiment of this disclosure.
[0150] A structure of the terminal device 400 shown in FIG. 1 is described below. FIG. 3 is a schematic structural diagram of a terminal device 400 according to an embodiment of this disclosure. The terminal device 400 shown in FIG. 3 includes: at least one processor 420, a memory 460, at least one network interface 430, and a user interface 440. Various components in the terminal device 400 are coupled together through a bus system 450. It may be understood that the bus system 450 is configured to implement connection and communication between the components. In addition to a data bus, the bus system 450 further includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, various buses are marked as the bus system 450 in FIG. 3.
[0151] The processor 420 may be processing circuitry, such as an integrated circuit chip with signal processing capability, for example, a general processor, a digital signal processor (DSP), another programmable logic device, a discrete gate or a transistor logic device, a discrete hardware component, or the like. The general processor may be a microprocessor, any conventional processor, or the like.
[0152] The user interface 440 includes one or more output apparatuses 441 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 440 further includes one or more input apparatuses 442, including user interface components that facilitate user input, such as a keyboard, a mouse, a microphone, a touch screen display, a camera, and another input button and control.
[0153] The memory 460 is removable, non-removable, or a combination thereof. An exemplary hardware device includes a solid-state memory, a hard disk drive, an optical disk drive, and the like. The memory 460 may include one or more storage devices at a physical location away from the processor 420.
[0154] The memory 460 includes a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 460 described in this embodiment of this disclosure is intended to include any suitable type of memory.
[0155] In some embodiments, the memory 460 can store data and support various operations. Examples of the data include a program, a module, and a data structure, or a subset or a superset thereof. An exemplary description is given below.
[0156] An operating system 461 includes system programs for processing various basic system services and performing hardware-related tasks, for example, a frame layer, a core library layer, and a drive layer, which is configured to implement various basic services and processing a task based on hardware.
[0157] A network communication module 462 is configured to reach another computing device through one or more (wired or wireless) network interfaces 430. Exemplary network interfaces 430 include: a Bluetooth interface, a Wi-Fi interface, a universal serial bus (USB) interface, and the like.
[0158] A presentation module 463 is configured to enable presentation of information (for example, a user interface for operation of a peripheral device and display of content and information) through one or more output apparatuses 441 (for example, a display screen and a speaker) associated with the user interface 440.
[0159] An input processing module 464 is configured to detect one or more user inputs or interactions from one of the one or more input apparatuses 442 and translate the detected inputs or interactions.
[0160] In some embodiments, an apparatus for controlling a companion object in the virtual scene provided in this embodiment of this disclosure may be implemented by software. FIG. 3 shows an apparatus 465 for controlling a companion object in the virtual scene stored in the memory 460, which may be software in the form of programs and plug-ins, including the following software modules: a display module 20, a control module 40, and an acquisition module 60, which are logical and may be arbitrarily combined or further split according to implemented functions. In FIG. 3, for convenience of expression, all the foregoing modules are shown at one time, which is not deemed that the implementation of the apparatus 465 for controlling a companion object in the virtual scene that may include only the display module 20 and the control module 40 is excluded, and functions of the modules are to be described below.
[0161] The method for controlling a companion object in the virtual scene provided in this embodiment of this disclosure is described in detail with reference to the accompanying drawings below. The method for controlling a companion object in the virtual scene provided in this embodiment of this disclosure may be performed by the terminal device 400 in FIG. 1 alone, or may be performed collaboratively by the terminal device 400 and the server 200 in FIG. 1.
[0162] A process of controlling the companion object includes at least one of the following stages:
[0163] I. summoning a companion object;
[0164] II. controlling the companion object to switch between a first state and a second state;
[0165] III. controlling the companion object in the first state to enhance a first virtual object; controlling the companion object in the second state to assist the first virtual object; and / or
[0166] IV. controlling the companion object to perform another task.
[0167] In order to facilitate understanding, the following exemplary comparison table of nouns is provided:NounsEmbodimentOther expressionsFirstVirtual object operated andMaster virtual object, targetvirtual objectcontrolled by a playervirtual object, and playervirtual objectSecondVirtual object controlled byMonster and neutral objectvirtual objectartificial intelligenceThirdVirtual object controlled byHostile virtual object andvirtual objectanother player and belonginghostile unitto a different camp from thefirst virtual objectFourthVirtual object controlled byTeammate virtual objectvirtual objectanother player and belongingand friendly unitto the same camp as the firstvirtual objectcompanionSubordinate object of the firstPet virtual object,objectvirtual objectcompanion object,summoned creature, targetsummoned creature,summoned object, pet, andthe like
[0168] In this disclosure, the terms “virtual object” and “virtual character” may be regarded as the same concept, and the terms “companion object” and “companion character” may be regarded as the same concept.Stage I: Summon a Companion Object.
[0169] FIG. 4 is a schematic flowchart of a method for controlling a companion object according to an embodiment of this disclosure. A description is to be given in combination with steps shown in FIG. 4.
[0170] The method shown in FIG. 4 may be performed by various forms of computer programs run on a terminal device 400, which is not limited to the foregoing client 410, and may further be the foregoing operating system 461, software module, and script. Therefore, the client is not to be regarded as a limitation on this embodiment of this disclosure.
[0171] Step 110: Display a virtual scene.
[0172] In some embodiments, a client supporting a virtual scene is installed on a terminal device (for example, in a case that the virtual scene is a game, the corresponding client may be a game APP, such as a shooting game APP or a multiplayer online tactical competitive game APP). In a case that a user opens a client installed on the terminal device (for example, the user clicks / taps an icon corresponding to a shooting game APP presented on a user interface of the terminal device) and the terminal device runs the client, a first virtual object (for example, a virtual object A controlled by a current user 1) and at least one second virtual object (for example, a virtual object B controlled by AI or a virtual object C controlled by another user 2) may be displayed in a virtual scene presented by a human-computer interaction interface of the client. For the second virtual object in this embodiment, the second virtual object being a monster virtual object controlled by AI is used as an example for description.
[0173] In some embodiments, in the human-computer interaction interface of the client, the virtual scene may be displayed from a first-person perspective (for example, a virtual camera plays the role of the first virtual object in the game from the perspective of the controlled virtual object); or the virtual scene may be displayed from a third-person perspective (for example, a game is played from a perspective that the virtual camera is located behind and above a virtual object, which is also referred to as an over-the-shoulder perspective); and the virtual scene may further be displayed with a bird's-eye view (for example, a virtual camera is located above the scene to overlook the whole displayed virtual scene, which may or may not include the controlled virtual object). The foregoing different perspectives may be switched at will, or switched based on user selection, or switched automatically based on the scene.
[0174] As an example, the first virtual object may be an object controlled by a current user in a game. The virtual scene may further include another virtual object, for example, a virtual object that may be controlled by another user or by a robot program. Virtual objects may be divided into any one of a plurality of camps, a hostile relationship or a cooperative relationship may exist between the camps, and one or both of the foregoing relationships may exist between the camps in the virtual scene.
[0175] A virtual scene being displayed from the first-person perspective is used as an example. Displaying the virtual scene in the human-computer interaction interface may include: determining a field of view region of the first virtual object based on a viewing location and a field of view of the first virtual object in a complete virtual scene, and presenting a part of the virtual scene in the field of view region in the complete virtual scene, that is, the displayed virtual scene may be a part of the virtual scene relative to a panoramic virtual scene. Since the first-person perspective is a viewing perspective that can give the user relatively great impact, immersive perception of the user during operation can be realized.
[0176] A virtual scene being displayed with the bird's-eye view is used as an example. Displaying the virtual scene in the human-computer interaction interface may include: presenting a part of the virtual scene corresponding to a zooming operation or a sliding operation in the human-computer interaction interface in response to the zooming operation or the sliding operation on the panoramic virtual scene, that is, the displayed virtual scene may be a part of the virtual scene relative to the panoramic virtual scene. In this way, the operability of the user in the operation process can be improved, so that the efficiency of human-computer interaction can be improved.
[0177] Step 120: Obtain a companion object.
[0178] In some embodiments, the companion object is automatically obtained by a first virtual object, that is, the companion object can be obtained without an active operation of the first virtual object. For example, at the beginning of a virtual scene, the first virtual object already has a companion object.
[0179] In some other embodiments, the first virtual object needs to obtain a companion object through an active operation. For example, the first virtual object needs to obtain the companion object by looking for an interaction mechanism in the virtual scene, or the first virtual object needs to use specific skills, props, or functions to obtain the companion object, or a user needs to control the first virtual object to convert a second virtual object in the virtual scene to the companion object. The second virtual object is displayed. The first virtual object is controlled to convert the second virtual object to the companion object in response to an operation of the user. In some embodiments, the first virtual object is controlled to convert the second virtual object to the companion object by using a summoning skill or a summoning prop or a summoning function. After the second virtual object is converted to a companion object, the companion object may be in an attached state or an independent state by default, or may be in an initial state selected by the user after conversion. In this embodiment, after the second virtual object is converted to the companion object, the companion object being in the attached state by default is used as an example.
[0180] Exemplarily, the companion object is a subordinate object of the first virtual object, and the companion object is in the attached state by default. The attached state is a state in which the companion object is attached to the first virtual object in a first form to become a part of the first virtual object. In some embodiments, the first form is a state in which the companion object shrinks and is transformed into one or several pieces or a pair of body armor attached to body parts of the first virtual object. In some other embodiments, the first form may also be a state in which the companion object replaces the body part of the first virtual object after transformation. The first virtual object attached by the companion object may have a physical appearance change or have no visible appearance change.
[0181] For example, the first virtual object being a virtual object A is used as an example. A companion object (for example, a companion object B) may be attached to an arm of the virtual object A in the form of an arm guard, thereby becoming a part of the virtual object A and moving with the action of the virtual object A. In this way, the user does not need to be distracted to control a companion object B in the attached state, which reduces the operation burden of the user and improves the efficiency of human-computer interaction.
[0182] In some embodiments, the first virtual object is controlled to convert the second virtual object to the companion object by using a summoning skill or a summoning prop or a summoning function. The summoning skill, the summoning prop, or the summoning function may be implemented in the form of skill chip, and the skill chip may be obtained actively or automatically by the first virtual object in the virtual scene.
[0183] In some embodiments, the first virtual object is controlled to convert the second virtual object to the companion object in response to satisfying a summoning condition. The summoning condition includes at least one of the following:
[0184] The first virtual object obtains or uses a virtual prop for summoning, such as the foregoing skill chip;
[0185] At least one second virtual object is selected, for example, the second virtual object may be selected from a plurality of virtual objects; and
[0186] An attribute value of the first virtual object satisfies a set condition, and the attribute value may be an energy value.
[0187] In some embodiments, the summoning condition includes: the second virtual object is in a weak state. Whether the second virtual object is in a weak state may depend on a plurality of measurement standards, such as an absolute value of a health point is less than a status threshold, a percentage of the health point is less than a status threshold, an absolute value of magic is less than a status threshold, a percentage of magic is less than a status threshold, an absolute value or a percentage of a movement speed is less than a status threshold, in a coma or hypnotic state, a combination of the plurality of measurement standards, or the like.
[0188] In some embodiments, step 120 may be implemented in the following manner: controlling the first virtual object to obtain a skill chip; and controlling the first virtual object to interact with at least one second virtual object in a weak state in the virtual scene in a case that an energy value of the first virtual object is greater than an energy threshold, and to perform, in response to a set interaction result being achieved, one of the following processes:
[0189] switching the at least one second virtual object from a third form to a fourth form by using the skill chip, playing a special effects animation in which the at least one second virtual object in the fourth form moves to a location of a first virtual object, and converting the at least one second virtual object in the fourth form to at least one companion object in an attached state, the third form being an original form of the at least one second virtual object, and the fourth form being a temporary movement form of the second virtual object, such as a form of granulation (also referred to as fragments), or a form of flowing energy, or a flight form, as shown by flying fragments 102 in FIG. 7; or converting the at least one second virtual object to at least one companion object in an independent state by using the skill chip, controlling the at least one companion object to perform a show-up action in an independent state (for example, the show-up action may be close to the first virtual object, or at least one companion object may move to the location of the first virtual object after performing the show-up action), and switching the at least one companion object from the independent state to an attached state.
[0190] Exemplarily, the first virtual object being the first virtual object A controlled by user 1 is used as an example. A skill chip for summoning the foregoing companion object may be pre-configured in a virtual scene. For example, the skill chip may exist at a specific location in the virtual scene (for example, a location of a supply box), that is, a user 1 may assemble the skill chip by controlling the first virtual object A to move to the location of the supply box and by controlling the first virtual object A to perform a picking operation. The skill chip is a virtual prop for summoning. After the user 1 controls the first virtual object A to obtain the skill chip, the client may further obtain a current energy value of the virtual object A (the energy value may be used for transforming the second virtual object, that is, the energy value of the first virtual object needs to be consumed during summoning of the companion object based on the second virtual object), and then determine whether the current energy value of the first virtual object A is greater than the energy threshold (for example, an energy value of 500 points). In a case that the current energy value of the first virtual object A is greater than the energy threshold, the user 1 may control the first virtual object A to interact with at least one second virtual object (for example, the second virtual object C, the second virtual object C being an object included in a neutral camp in the virtual scene or an object included in a hostile camp of a first camp to which the first virtual object belongs) in a weak state in the virtual scene (for example, the user 1 may control the first virtual object A to fight with the second virtual object C in a neutral state), and may transform the second virtual object C based on the obtained skill chip after achieving the set interactive result (such as defeating the virtual object C). For example, the second virtual object C may be first converted from the original form to a fragment form by using the skill chip, and the second virtual object C in the fragment form is controlled to move to the location of the first virtual object A, to be switched from the fragment form to the first form (for example, a form such as an arm guard, an armor, a helmet, or combat boots), and to be attached to an arm of the first virtual object A controlled by the user 1, so as to obtain a companion object corresponding to the virtual object A (for example, the companion object B that converts the virtual object C to the virtual object A).
[0191] In some other embodiments, the user 1 may also control the virtual object A to directly summon at least one companion object by using the skill chip, that is, the companion object may also be a brand-new virtual object in the virtual scene, instead of being converted from the second virtual object.
[0192] The skill chip may also be pre-assembled for the first virtual object before entering the virtual scene, or exist in a scene setting interface or a store interface of the virtual scene. For example, the user may obtain the skill chip based on a setting operation in the scene setting interface, or obtain the skill chip based on a purchasing operation in the store interface.
[0193] In addition, companion objects obtained by using different types of skill chips may be different, attachment parts of different companion objects on the first virtual object may be different, and different skills or attributes of the first virtual object can be promoted. For example, types of the skill chips may include a shield chip, a scouting chip, and an attack chip. The companion object I obtained by using the shield chip may be attached to the chest of the first virtual object, and a defensive power of the first virtual object can be increased. A companion object 2 obtained using the scouting chip may be attached to an arm of the first virtual object, and the first virtual object may be enabled to sense surrounding enemies. A companion object 3 obtained using the attack chip may be attached to a leg of the first virtual object, and attack power of the first virtual object can be increased. In some embodiments, the attack chip may be further divided into a melee attack chip and a long-range attack chip. The melee attack chip can summon the companion object for enhancing a melee attribute, and the long-range attack chip can summon the companion object for enhancing a long-range attribute. That is to say, at least two types of virtual props correspond to different companion objects. The at least two types of companion objects provide different attribute promotion and / or skill assistance for the first virtual object.Stage II: Control the Companion Object to Switch Between a First State and a Second State.
[0194] FIG. 5 is a schematic flowchart of a method for controlling a companion object to switch between different states / forms according to an embodiment of this disclosure. A description is to be given in combination with steps shown in FIG. 5.
[0195] Step 130: Display a virtual scene, the virtual scene including a first virtual object and a companion object. In an example, a virtual scene is displayed. The virtual scene includes a first virtual object and a companion object of the first virtual object. The companion object is configured to switch between a first state and a second state.
[0196] The virtual scene includes the first virtual object and the companion object. The companion object is a subordinate object of the first virtual object and is configured to enhance or assist the first virtual object. A virtual object may act in the virtual scene, for example, may move in the virtual scene, or interact with the virtual scene and contents therein, such as attacking another hostile virtual object.
[0197] The first virtual object may own one or a plurality of companion objects. The plurality of companion objects may be the same type of companion object, or may be different types of companion objects.
[0198] Step 140: Control the companion object to switch between a first state and a second state. In an example, when the companion object is in the first state, the companion object is in a first form that is attached to the first virtual object. In an example, when the companion object is in the second state, the companion object is (i) in a second form that is not attached to the first virtual object and (ii) configured to move separately from the first virtual object, the first form of the companion object being different from the second form of the companion object.
[0199] In some embodiments, different types of companion objects in the first state are attached to the same part of the first virtual object. In some embodiments, different types of companion objects in the first state are attached to different parts of the first virtual object. In some embodiments, some types of companion objects in the first state are attached to the same part of the first virtual object, and other types of companion objects in the first state are attached to different parts of the first virtual object. That is to say, at least two types of companion objects are attached to different parts of the first virtual object.
[0200] In some embodiments, different types of companion objects in the first state correspond to the same first form. In some embodiments, different types of companion objects in the first state correspond to different first forms. In some embodiments, some types of companion objects in the first state correspond to the same first form, and other types of companion objects in the first state correspond to different first forms. That is to say, at least two types of companion objects correspond to different first forms. The first form may be a form such as an arm guard, a helmet, a waist protector, glasses, or a bracelet. That is to say, at least two types of companion objects correspond to different first forms.
[0201] The second state is a state in which the companion object acts in a second form independently of the first virtual object. The second state is also referred to as an independent state. The type of the companion object may include at least one of a shield object, a scouting object, and an attack object. In a case that the companion object is the shield object, the shield object is configured to resist an attack performed by another virtual object in the virtual scene on the first virtual object. In a case that the companion object is the scouting object, the scouting object is configured to release a scouting signal in a second region to sense a virtual object existing in the second region. In a case that the companion object is the attack object, the attack object is configured to assist the first virtual object in attacking a virtual object in a hostile camp. The attack object may be a melee attack object or a long-range attack object.
[0202] In some embodiments, different types of companion objects in the second state correspond to the same second form. In some embodiments, different types of companion objects in the second state correspond to different second forms. In some embodiments, some types of companion objects in the second state correspond to the same second form, and other types of companion objects in the second state correspond to different second forms. That is to say, at least two types of companion objects correspond to different second forms. The second form may be a strong and burly melee attack object form, a slender and agile long-range attack object form, a nimble scouting object form, a strong-armed shield object form, and the like. That is to say, at least two types of companion objects correspond to different second forms.
[0203] In some embodiments, switching between different states includes at least two modes: a manual switching mode and an automatic switching mode.Exemplary Manual Switching Mode:
[0204] Control the companion object to switch from the first state to the second state in response to a first switching operation on the companion object. Control the companion object to switch from the second state to the first state in response to a second switching operation on the companion object.
[0205] The first switching operation is used for triggering the companion object to switch from the first state to the second state. The second switching operation is used for triggering the companion object to switch from the second state to the first state.
[0206] The first switching operation and the second switching operation may be received operations from a user that controls the first virtual object, or indirect operations after processing based on user operations.Exemplary Automatic Switching Mode:
[0207] The companion object is automatically controlled to switch from the first state to the second state in a case that the first virtual object and / or the companion object satisfies a first switching condition. The automatically controlling the companion object to switch from the first state to the second state may not be a direct operation of the user. The first switching condition may also be referred to as an automatic release condition. In some embodiments, the first switching condition includes at least one of the following:
[0208] a quantity of second virtual objects within an attack range of the first virtual object is less than or equal to a first quantity threshold;
[0209] the first virtual object or another object in a first camp to which the first virtual object belongs needs assistance;
[0210] a time to attack a second camp arrives, the second camp being a hostile camp of the first camp to which the first virtual object belongs, and the like;
[0211] a duration for which the companion object in the first state is greater than or equal to a first duration threshold; and
[0212] the first virtual object enters a specified action state or a specific action state, for example, an aiming state, a shoulder aiming state, and a rocket launcher firing state.
[0213] The companion object is controlled to switch from the second state to the first state in a case that the first virtual object and / or the companion object satisfies a second switching condition. The second switching condition is also referred to as a recall condition. In some embodiments, the second switching condition includes at least one of the following:
[0214] the quantity of second virtual objects within the attack range of the first virtual object is greater than or equal to a second quantity threshold, the second quantity threshold being the same as or different from the first quantity threshold;
[0215] a distance between the first virtual object and the companion object is greater than or equal to a third distance threshold;
[0216] a duration for which the companion object is in the second state reaches a second duration threshold;
[0217] the companion object completes a given task and does not receive a new task triggering operation within a waiting time after completing the task;
[0218] the first virtual object exits a specified action state or a specific action state, for example, an aiming state, a shoulder aiming state, and a rocket launcher firing state, or the like;
[0219] an attribute value of the companion object is less than a preset threshold, for example, a health point is less than the preset threshold, for example, entering a dead state;
[0220] and the companion object receives an attack from a third virtual object, the third virtual object and the first virtual object belonging to different camps. For example, the third virtual object belongs to the second camp.
[0221] Step 140 includes: controlling the companion object to switch from the first state to the second state, and / or controlling the companion object to switch from the second state to the first state.Switching from the First State to the Second State:
[0222] Control at least one companion object to switch from the first state to the second state in response to satisfying a release condition.
[0223] In some embodiments, the release condition may include any one of the following: receiving a task triggering operation on at least one companion object; a task automatic triggering condition, the task automatic triggering condition including at least one of the following: the first virtual object or another object in a first camp to which the first virtual object belongs needs assistance; and a time to attack a second camp arrives, the second camp being a hostile camp of the first camp to which the first virtual object belongs.
[0224] Exemplarily, the first virtual object being a virtual object A controlled by a user 1 is used as an example. Assuming that a companion object B displayed in the shape of an arm guard is attached to an arm of the virtual object A, when the client receives a task triggering operation on the companion object B, for example, the client receives a click / tap operation performed by the user 1 on a specific key (such as the “X” key on the keyboard), the companion object B is controlled to switch from the first state to the second state (for example, the companion object B in the shape of the arm guard is controlled to be detached from the virtual object A and switched from the shape of the arm guard to the shape of a virtual character).
[0225] Exemplarily, an occasion for at least one companion object to switch from the first state to the second state may also be determined based on artificial intelligence. For example, scene recognition processing may be performed on environmental information of the virtual scene by invoking a machine learning model. When the scene recognition result indicates that a status value (such as a health point and a magic point) of the first virtual object or another object in the same camp is less than the status threshold, or a quantity of materials (such as ammunition, drinks, bandages, and medical boxes) of the first virtual object or another object in the same camp is less than a quantity threshold, it is determined that the first virtual object or another object in the same camp need assistance, and at least one companion object is automatically controlled to switch from the first state to the second state, so that at least one companion object in a second form can assist the first virtual object or another object in the same camp.
[0226] In addition, when the scene recognition result indicates that a location distribution of the objects included in the first camp to which the first virtual object belongs conforms to an attack condition or it is determined, based on attribute information of objects included in the first camp to which the first virtual object belongs (for example, a quantity of objects included in the first camp, and a formation formed by a plurality of objects) and attribute information of objects included in the second camp, that it is the right time to attack the second camp, at least one companion object may also be automatically controlled to switch from the first state to the second state, so that the at least one companion object in the second form can participate in the attack, thereby speeding up the game progress and reducing resource consumption of the terminal device.
[0227] In some embodiments, a target location of the companion object from the attached state to the independent state may be specified through a locking operation, which is also referred to as a locked location. For example, when the companion object is dispatched to attack a locked enemy object or to assist a locked allied object, a location of the locked object is the locked location. In this case, the controlling at least one companion object from the attached state to the independent state may be implemented through step 141 to step 144 shown in FIG. 6, which is to be described in combination with the steps shown in FIG. 6.
[0228] Step 141: Determine a distance between a locked location and a location of the first virtual object in response to a first locking operation on the locked location.
[0229] In some embodiments, when the first virtual object is presented in the terminal device, a shooting prop held by the first virtual object may further be presented, so that the first virtual object can be controlled to use a shooting prop to select the locked location (that is, a scene location in the virtual scene, for example, a hillside, a tree, or any location on the ground in the virtual scene). For example, the first virtual object may be controlled to select the locked location by using a shooting prop with a crosshair pattern. When the terminal device presents the first virtual object holding the shooting props, the crosshair pattern corresponding to the shooting prop may further be presented. In this way, the user can control the first virtual object to use the shooting prop to perform an aiming operation on the locked location, and control the crosshair pattern to move to the locked location synchronously during the aiming operation, so as to select the locked location in the virtual scene.
[0230] Step 142: Determine whether a distance is greater than a first distance threshold, when the distance is greater than the first distance threshold, perform step 143, and when the distance is less than or equal to the first distance threshold, perform step 144.
[0231] In some embodiments, after the locked location is determined based on the first locking operation, it may be further determined whether the distance between the locked location and the location of the first virtual object is greater than the first distance threshold (for example, 20 meters). When it is determined that the distance therebetween is greater than the first distance threshold, the subsequent step 143 is performed. When it is determined that the distance therebetween is less than or equal to the first distance threshold, the subsequent step 144 is performed.
[0232] Step 143: Control the companion object to move to a first location, switch the companion object from a first form to a second form at the first location, and control at least one companion object in the second form to move to the locked location.
[0233] In some embodiments, the first location may be a location with a distance of a first distance threshold from the location of the first virtual object on a first connecting line connecting the locked location and the location of the first virtual object.
[0234] FIG. 7 is a schematic diagram of an application scene of a method for controlling a companion object in a virtual scene according to an embodiment of this disclosure. As shown in FIG. 6, when a distance between a location 101 of the first virtual object is located and a locked location 103 in a virtual scene 100 is greater than the first distance threshold, the companion object 102 in a first form (for example, the shape of an arm guard) is first controlled to be detached from the first virtual object, is switched to a flight form immune to damage to fly to the first location 105 (that is, the first location 105 is located on a first connecting line 104 between the location 101 of the first virtual object and the locked location 103, and the distance between the location 101 of the first virtual object and the first location 105 is a first distance threshold), and is switched from the flight form to a second form (for example, the shape of a dinosaur) at the first location 105, and then the companion object 102 in the shape of the dinosaur is controlled to move to the locked location 103. A movement speed of the companion object in the flight form may be greater than that a movement speed of the companion object in the second form. The flight form is an intermediate form or a transitional form during switching from the first form to the second form, and may not be displayed in some embodiments. During switching from the first form to the second form, a display duration of the flight form may be constant, or set by the system, or dynamically determined based on factors such as a traveling speed of the first virtual object and a distance from the locked location.
[0235] In some embodiments, this means that the first virtual object can only fly to a limited distance, and the rest of the distance can only be reached by the ground.
[0236] Step 144: Control the companion object to move to the locked location, and switch the companion object from the first form to the second form at the locked location.
[0237] In some embodiments, when a distance between the location of the first virtual object and the locked location is less than or equal to the first distance threshold, at least one companion object in the first form may be controlled to directly move to the locked location, and is switched from the first form to the second form at the locked location.
[0238] FIG. 8 is a schematic diagram of an application scene of a method for controlling a companion object in a virtual scene according to an embodiment of this disclosure. As shown in FIG. 8, when a distance between a location 101 of the first virtual object is located and a locked location 103 in a virtual scene 100 is less than or equal to the first distance threshold, the companion object 102 in a first form (for example, the shape of an arm guard) may be controlled to be detached from the first virtual object, is switched to a flight form to fly to the locked location 103, and is switched from the shape of an energy particle to a second form (for example, the shape of a dinosaur) at the locked location 103.
[0239] In some embodiments, when the locked location is a location unreachable by at least one companion object in the virtual scene (such as a special location such as a wall or a fault), the following processes may further be performed: controlling at least one companion object in the first form to move to a second location, and switching the at least one companion object from the first form to the second form at the second location, the second location being a location reachable by at least one companion object and closest to the locked location on a first connecting line.
[0240] For example, at least one companion object being a companion object B is used as an example. When the locked location is a fault in the virtual scene (that is, a location unreachable by the companion object B), the companion object B in the first form may be controlled to move to the second location (that is, a location reachable by the companion object B on a connecting line between the location of the first virtual object and the locked location, and is closest to the locked location), and is switched from the first form to the second form at the second location, and then the companion object B in the second form may be controlled to approach the locked location, so as to perform a task near the fault.
[0241] In some embodiments, when the locked location is in the air of the virtual scene, the following processes may further be performed: determining a ground projection location corresponding to the locked location in the virtual scene; and controlling at least one companion object in the second form to fall from the locked location to the ground projection location through a virtual gravity, and reducing a state parameter of the virtual object existing in the first region centered on the ground projection location (for example, a circular region with a radius of 10 meters centered on the ground projection location) after the control companion object reaches the locked location.
[0242] For example, at least one companion object being a companion object B is used as an example. When a location selected by a user 1 in the virtual scene (for example, a location 1) is in the air, the ground projection location corresponding to the location 1 in the virtual scene is first determined, and after the companion object B is controlled to move to the location 1 and switched from the first form to the second form at the location 1, the companion object B in the second form is controlled to move to the ground projection location corresponding to the location 1 by gravity acceleration through the gravity engine in the virtual scene and to cause damage to the virtual objects (such as virtual objects C and D) existing in a circular region with a radius of 10 meters centered on the ground projection location to reduce health points of the virtual objects.
[0243] In some other embodiments, when the locked object is a third virtual object (which may be any object except the first virtual object in the virtual scene, for example, an object belonging to the same camp as the first virtual object, or an object included in a hostile camp of a first camp to which the first virtual object belongs), the controlling of at least one companion object from the attached state to the independent state may further be implemented in the following manners: in response to a second locking operation on a third virtual object, controlling at least one companion object in the first form to move to a third location, switching the at least one companion object from the first form to the second form at the third location, and controlling the at least one companion object in the second form to move from the third location to the location of the third virtual object. A distance between the third location and the location of the third virtual object on a second connecting line is a second distance threshold, the second connecting line being used for connecting the location of the first virtual object to the location of the third virtual object.
[0244] For example, the second locking operation may be implemented by controlling the first virtual object to use a shooting prop. For example, the first virtual object may be controlled to use the shooting prop to select a third virtual object in the virtual scene in the following manners: presenting a crosshair pattern corresponding to the shooting prop, controlling the first virtual object to use the shooting prop to perform an aiming operation on the third virtual object, and controlling the crosshair pattern to move to the third virtual object synchronously during the aiming operation, so as to select the third virtual object in the virtual scene.
[0245] When a duration for which the crosshair pattern stays on the third virtual object reaches a duration threshold, it may be determined that a locking instruction is received, thereby automatically determining that the locked object is the third virtual object. The locking instruction may also be triggered by another button, that is, when the crosshair pattern moves to the third virtual object, the third virtual object is determined as a locked object in response to the triggering operation on the foregoing button.
[0246] FIG. 9 is a schematic diagram of an application scene of a method for controlling a companion object in a virtual scene according to an embodiment of this disclosure. As shown in FIG. 9, when the locked object is the third virtual object, the companion object 102 in a second form (for example, the shape of an arm guard) is first controlled to be detached from the first virtual object, and is switched from the shape of the arm guard to a form of energy (which may be a form of particle, depending on the world view of the virtual scene), the companion object 102 in a flight form is controlled to move to a third location 108 (that is, the third location 108 is located on a second connecting line 107 between the location 101 of the first virtual object and a location 106 of the third virtual object, and the distance between the location 106 of the third virtual object and the third location 108 is a second distance threshold), and is switched from the form of energy to a second form (for example, the shape of a dinosaur) at the third location 108, and then the companion object 102 in the shape of the dinosaur is controlled to move to the location 106 of the third virtual object to interact with the third virtual object.
[0247] In the following embodiments, this means that the first virtual object cannot directly fly around the third virtual object, but can only fly out of a specific range of the third virtual object, and then approach the third virtual object through the ground.
[0248] In this way, a reaction time may be reserved for the third virtual object, thereby improving user experience.
[0249] In some embodiments, when at least one companion object is a plurality of companion objects, the controlling of at least one companion object from the attached state to the independent state may be implemented in the following manners: controlling a companion object selected from a plurality of companion objects to switch from the attached state to the independent state in response to a companion object selection operation, different companions correspondingly having different skills.
[0250] For example, the first virtual object being a virtual object A controlled by the user 1 is used as an example. It is assumed that three companion objects are attached to the virtual object A, that is, a companion object B, a companion object C, and a companion object D. The companion object B is attached to an arm of the virtual object A in the shape of an arm guard, the companion object C is attached to the chest of the virtual object A in the shape of an armor, and the companion object D is attached to a head of the virtual object A in the shape of a helmet. In addition, the companion object B, the companion object C, and the companion object D have different skills. For example, the companion object B has a skill of increasing a movement speed of the virtual object A, the companion object C has a skill of improving the defensive power of the virtual object A, and the companion object D has a skill of enabling the virtual object A to have the ability to sense other virtual objects around. When the release condition is satisfied, identifiers corresponding to the companion object B to the companion object D may be presented in the human-computer interaction interface in the form of a list for the user 1 to select. When the user 1 selects the companion object C, the companion object C is controlled to switch from the attached state to the independent state, and the companion object B and the companion object D are still in the attached state, so that the user can freely select the companion object that needs to perform the task, thereby improving game experience of the user.
[0251] In some other embodiments, when at least one companion object is a plurality of companion objects, the controlling of at least one companion object to switch from the attached state to the independent state may further be implemented in the following manners: invoking a second machine learning model for prediction processing to obtain a release probability corresponding to each companion object based on environmental information of the virtual scene (for example, a type and a size of a map), attribute information of objects included in the first camp to which the first virtual object belongs (for example, a quantity of objects included in the first camp, a skill of each object, and a location distribution of each object), attribute information of objects included in the second camp (for example, a quantity of objects included in the second camp, a skill of each object, and a location distribution of each object), and respective skills of a plurality of companion objects, the first camp and the second camp to which the first virtual object belongs being hostile camps; and sorting a plurality of release probabilities in descending order, and controlling the companion objects corresponding to top N release probabilities in the descending order results to switch from the attached state to the independent state, N being a positive integer greater than or equal to 1.
[0252] For example, the first virtual object being the virtual object A controlled by the user 1 is used as an example. Assuming that three companion objects are attached to the virtual object A, that is, the companion object B, the companion object C, and the companion object D, the second machine learning model may be invoked to predict the release probabilities respectively corresponding to the companion object B, the companion object C, and the companion object D. For example, assuming that it is predicted that the release probability corresponding to the companion object B is 80%, the release probability of the companion object C is 70%, and the release probability of the companion object D is 85%, the companion object D may be automatically switched from the attached state to the independent state, so that the companion object D in the second form can assist the first virtual object in interaction. In this way, the appropriate companion object can be automatically selected based on artificial intelligence, which further reduces operation costs of the user and improves the game experience of the user.
[0253] In some embodiments, the user may choose whether to enable the foregoing function of selection using the machine model.
[0254] In some embodiments, carrying on with the above, before invoking the second machine learning model for prediction processing, the following processes may further be performed: obtaining historical operation data of a reference account, the reference account being an account with a game level greater than a level threshold, that is, at least one account with a relatively good historical record or a relatively long game duration; and training a second machine learning model based on the historical operation data and labeled data, the labeled data including companion objects used by reference accounts in the interaction process.
[0255] The second machine learning model may be a neural network model (for example, a convolutional neural network, a deep convolutional neural network, or a fully connected neural network), a decision tree model, a gradient lifting tree, a multi-layer perceptron, a support vector machine, and the like. The type of the second machine learning model is not specifically limited in this embodiment of this disclosure.
[0256] In some embodiments, after the at least one companion object is controlled to switch from the attached state to the independent state, the following processes may further be performed: invoking, based on environmental information of the virtual scene (for example, a type and a size of a map), attribute information of objects included in the first camp to which the first virtual object belongs (for example, a quantity of objects included in the first camp, a skill of each object, a status value, and a location distribution), and attribute information of objects included in the second camp (for example, a quantity of objects included in the second camp, a skill of each object, a status value, and a location distribution), a first machine learning model for prediction processing to obtain at least one action or a combination of actions to be performed by at least one companion object, the first camp and the second camp to which the first virtual object belongs being hostile camps; and controlling at least one companion object in the second form to perform the determined at least one action or a combination of actions.
[0257] For example, at least one companion object being a companion object B is used as an example. The first machine learning model may be invoked to predict at least one action or a combination of actions to be performed by the companion object B. Then, after the companion object switches from the attached state to the independent state, the companion object B in the second form may be controlled to perform at least one action or a combination of actions predicted by the first machine learning model. In this way, the action that the companion object B needs to perform is accurately predicted based on artificial intelligence, so that the repeated execution of unnecessary actions is avoided, the operation burden of the user is further reduced, and game experience of the user is also improved while saving computing resources of the terminal device.
[0258] The foregoing first machine learning model may be obtained by training based on the environmental information of a sample virtual scene, attribute information of objects included in a sample winner camp, attribute information of objects included in a sample loser camp, and labeled data. The labeled data includes at least one action or a combination of actions performed by the sample companion objects in the second form during the interaction. For a sample, reference may also be made to a training process similar to the training process of the second machine learning model to select a reference sample that satisfies a specific condition.Switching from the Second Form to the First Form:
[0259] Control at least one companion object to switch from an independent state to an attached state in response to satisfying a recall condition for at least one companion object.
[0260] In some embodiments, a combat capability of the first virtual object to which a companion object is attached is stronger than of the first virtual object to which no companion object is attached. A stronger combat capability may be reflected in having more skills that can be used when a companion object is attached to the first virtual object, and the coefficient of existing skills is amplified, such as higher attack power or a wider range. For example, when at least one companion object (for example, the companion object B) is attached to a first virtual object (for example, the virtual object A) in a first form, a skill of the companion object B may be directly superimposed on the virtual object A. Assuming that the companion object B has an invisibility skill, the virtual object A may also have the invisibility skill when the companion object B is attached to the virtual object A in the first form. The foregoing skill may further have a specific amplification factor. For example, assuming that when the companion object B is controlled to release the invisibility skill in an independent state, a maximum duration for which the companion object B can remain invisible each time is 10 seconds, and when the companion object B is attached to the virtual object A in the first form, the maximum duration for which the virtual object A can remain invisible each time is increased to 15 seconds when the virtual object A is controlled to release the obtained invisibility skill.
[0261] For another example, when at least one companion object (for example, the companion object B) is attached to a first virtual object (for example, the virtual object A) in the first form, the original skill of the virtual object A can be improved to a certain extent. For example, assuming that the original attack power of the virtual object A is 100, when the companion object B is attached to the virtual object A in the first form, the attack power of the virtual object A is to be increased to 150. When the companion object B is attached to the virtual object A in the first form, the virtual object A may also be enabled to have a new skill that neither the companion object nor the virtual object has (for example, a capability of perceiving another object around, the capability being a skill that neither the individual virtual object A nor the companion object B has).
[0262] In some embodiments, the recall condition may include any one of the following: receiving a recall triggering operation on at least one companion object in a task state (for example, receiving a click / tap operation performed by a user on a specific key on a keyboard (for example, the “Q” key)); a duration for which at least one companion object is in the second form reaches a duration threshold (for example, 20 seconds); a distance between at least one companion object in the second form and the first virtual object is greater than a third distance threshold (for example, 10 meters); and at least one companion object in the second form completes a task and does not receive a new task triggering operation within a waiting time after completing the task.
[0263] A minimum value of the waiting time may be 0, that is, when the waiting time is 0, at least one companion object in the second form is to be recalled immediately after completing the task.
[0264] In some other embodiments, in response to satisfying the recall condition for at least one companion object, the following processes may further be performed: obtaining a state of at least one companion object in the second form; and displaying prompt information when the at least one companion object is in an unresponsive state, the prompt information being used for prompting that the at least one companion object is currently not switchable from an independent state to an attached state. In addition, when the at least one companion object is switched from an unresponsive state to a responsive state, it is determined that the at least one companion object is controlled to switch from the independent state to the attached state in response to satisfying the recall condition for the at least one companion object.
[0265] For example, the at least one companion object being a companion object B is used as an example. Before a response to satisfying the recall condition for the companion object B (for example, receiving a recall triggering operation on the companion object B), a client may further perform the following processes: obtaining a state of the companion object B in the second form; and when the companion object B is in an unresponsive state due to external factors (for example, the companion object B is in a dizzy state due to the skill interference released by the virtual object C in the virtual scene, or a health point thereof decreases below a life threshold after bearing the attack skill released by the virtual object C), the following prompt information may be displayed in the human-computer interaction interface: “companion object B is currently in an unresponsive state, please perform the operation again after 10 seconds” or other information with the similar meaning. Moreover, when the companion object B is switched from the unresponsive state to the responsive state (that is, when the external factors are eliminated, for example, when the health point of the companion object B recovers to be higher than the life threshold, or a duration for which the companion object B has been in a dizzy state reaches a duration threshold, the companion object is to be switched from the unresponsive state to the responsive state), the client determines to control the companion object B to switch from the independent state to the attached state in response to a recall triggering operation on the companion object B (for example, receiving a click / tap operation performed by a user on the “Q” key on the keyboard).
[0266] In some embodiments, the controlling of the at least one companion object to switch from the independent state to the attached state may be implemented in the following manners: controlling the at least one companion object in the second form to move from a fourth location to the location of the first virtual object in a first manner (that is, a manner in which at least one companion object moves by gradually changing a location, such as flying, walking, or running) and switching the at least one companion object from the second form to the first form when the distance between the at least one companion object in the second form and the first virtual object is less than or equal to the third distance threshold (for example, 15 meters); and controlling the at least one companion object in the second form to move to the fourth location in a second manner (that is, a manner in which at least one companion object moves by instantaneously changing a location, such as flashing), controlling the at least one companion object in the second form to move from the fourth location to the location of the first virtual object in the first manner, and switching the at least one companion object from the second form to the first form when the distance between the at least one companion object in the second form and the first virtual object is greater than the third distance threshold, a distance between the fourth location and the location of the first virtual object on a third connecting line being the third distance threshold, the third connecting line being used for connecting the location of the first virtual object to the location of the at least one companion object in the second form.
[0267] In some embodiments, the companion object is controlled to be immune to damage during switching between the first state and the second state. That is to say, during the switching between the first state and the second state, the companion object is immune to damage or negative impact of other effects. For example, when a bomb explodes, the companion object is within a range of the bomb explosion, but has entered the state switching process, then the bomb explosion may not reduce the health point of the companion object.
[0268] FIG. 10 is a schematic diagram of an application scene of a method for controlling a companion object in a virtual scene according to an embodiment of this disclosure. As shown in FIG. 10, when a distance between a companion object 102 in a second form (for example, the shape of a virtual character) and a first virtual object 101 in a virtual scene 100 is less than or equal to a third distance threshold, the shape of the companion object 102 may be first controlled to switch from the shape of a character to a flight form, the companion object 102 in the flight form is controlled to move to a location of the first virtual object 101 in a manner of flying, and is switched from a form of energy to a first form (for example, the shape of an arm guard), and then the companion object 102 in the shape of an arm guard is controlled to be attached to an arm of the first virtual object 101.
[0269] FIG. 11 is a schematic diagram of an application scene of a method for controlling a companion object in a virtual scene according to an embodiment of this disclosure. As shown in FIG. 11, when a distance between a companion object 102 in a second form (for example, the shape of a virtual character) and a first virtual object 101 in a virtual scene 100 is greater than a third distance threshold, the companion object 102 in the shape of a character may be first controlled to flash, or otherwise move, directly to a fourth location 109 (that is, the fourth location 109 is located on the third connecting line 111 between a location of the first virtual object 101 and a location of the companion object102, and the distance between the location of the first virtual object 101 and the fourth location 109 is the third distance threshold), the shape of the companion object 102 is controlled to switch from the shape of a character to a form of energy at the fourth location 109, the companion object 102 in a flight form is controlled to move to the location of the first virtual object 101 in a manner of flying, and is switched from the flight form to a first form (for example, the shape of an arm guard), and then the companion object 102 in the shape of an arm guard is controlled to be attached to an arm of the first virtual object 101.
[0270] According to the method for controlling a companion object in the virtual scene according to this embodiment of this disclosure, the companion object is attached to the first virtual object in the first form when unnecessary to perform a task. When a release condition is satisfied, the companion object is to switch from an attached state to a state of acting in a second form independently of the first virtual object, and performs the task in the second form. That is to say, the companion object can adapt to different requirements of users in various states, thereby improving the efficiency of human-computer interaction and user experience.
[0271] Next, an exemplary application of this embodiment of this disclosure in an actual application scene is to be described.
[0272] In a shooting game, a user (or player) mainly controls a single virtual object to fight. If a user-controlled virtual object (referred to as an object for short below) can summon an additional fighting object (that is, a companion object), the user may expand more possibilities and experiences than that of a single object. However, this brings a problem that if the user is allowed to accurately control a plurality of objects in a fast-paced real-time battle and launch a concentrated attack on a locked target object, this may lead to a case that the user cannot take in to account the plurality of objects simultaneously, and operation costs of the user are also relatively high, resulting in poor game experience of the user.
[0273] In view of this, this embodiment of this disclosure provides a method for controlling a companion object in a virtual scene. A set of release and recall strategies for the companion object (corresponding to the foregoing companion objects, for example, a user-controlled object in the game may be printed by a chip, a companion object with independent fighting and different abilities as the theme can be summoned, and the companion object may perform a corresponding skill and behavior after receiving an instruction to fight against a specified target object, or may be automatically or passively recalled to an arm of the user-controlled object when there is no need to fight, which becomes an arm component with dominant characteristics, such as an arm guard) are designed for automatic execution. The user may assign the companion object to perform a task through a unique instruction, and the companion object may also be actively or passively recalled to the arm of the object when the task is completed or the user has other intentions. In this way, on the one hand, a situation that the companion object exposes the field of vision when following or blocks an action path of the user-controlled object when moving is avoided. On the other hand, the user may focus on the only object that the user controls, which reduces the operation cost brought by the companion object to the greatest extent and realizes the flexible and concise operation mode for the companion object.
[0274] FIG. 12 is a schematic flowchart of a method for controlling a companion object in a virtual scene according to an embodiment of this disclosure. As shown in FIG. 12, a companion object may be summoned by a user-controlled object through a chip, and the companion object initially performs a show-up action. After the show-up action is performed, if a user-triggered task assignment instruction is not received, the companion object is to enter an arm-attached state by default and to present switching from an independent companion object state to the arm-attached state. In addition, the user may assign a task to the companion object in the independent state or the arm-attached state at any time through a unique instruction (for example, the “Q” key on the keyboard), so that the companion object can perform the corresponding task. When the companion object completes the task and does not receive a new user-triggered task assignment instruction, the companion object in the independent state is to automatically fly to the arm of the user-controlled object and enters the arm-attached state. When an IA companion is in a task state, the user may also forcibly recall the companion to the arm of the object through a unique instruction (such as the “X” key on the keyboard), to enter the attached state.
[0275] In addition, if the companion object is in a weak or dead state after being assigned, the companion object does not respond to the user-triggered instruction until the weak state ends, and then automatically flies to the arm of the user-controlled object and enters the attached state. Moreover, the companion object may bring special abilities to the object when being attached to the arm of the object, for example, the ability to increase the attack power and the movement speed of the object and to sense surrounding enemies. In addition, the companion object during the state switching is invincible and can remove all debuffs thereon.
[0276] FIG. 13 is a schematic diagram of an application scene of a method for controlling a companion object in a virtual scene according to an embodiment of this disclosure. As shown in FIG. 13, a virtual object 101 controlled by a real user and a companion object 102 in an arm-attached state are presented in the virtual scene. When a user-triggered task assignment instruction is received (for example, the user presses the “Q” key on the keyboard), the companion object 102 in the arm-attached state is controlled to be detached from the virtual object 101 and flies out in a manifestation of a mass of energy or a substance (for example, the companion object 102 is controlled to switch from the shape of an arm guard to the form of particle to fly out), and is converted to the companion object 102 in an independent state (for example, the shape of a virtual character) at a set location, so that the companion object in the shape of a character performs a corresponding task. Moreover, as shown in FIG. 13, when the companion object 102 is assigned, an arm model of the virtual object 101 returns to normal.
[0277] FIG. 14 is a schematic diagram of summoning a companion object according to an embodiment of this disclosure. As shown in FIG. 14, a user may control an object to obtain a skill chip in a virtual scene, and under the condition that an energy value of the object is higher than 500 points, the object is controlled to interact with any elite monster in a weak state in the virtual scene (corresponding to the foregoing third virtual object), thereby summoning the companion object, and the summoned companion object is to perform a corresponding show-up action.
[0278] The process of switching the companion object from an independent state to an arm-attached state continues to be described below.
[0279] In some embodiments, the initially summoned companion object automatically flies to an arm of a user-controlled object and enters the attached state if not receiving a user-triggered task assignment instruction after performing the show-up action. In addition, for a companion object in a task state, the user may also actively recall the companion object to the arm of the user-controlled object through a unique instruction (such as the “X” key on the keyboard), to enter the attached state. In addition, when the companion object completes the task and does not receive a new user-triggered task assignment instruction, the companion object also automatically fly to the arm of the object to enter the attached state.
[0280] In addition, the companion object in the independent state flies to the arm of the user-controlled object and enters the attached state, the performance may vary depending on different distances between the companion object in the independent state and the user-controlled object. For example, when the distance between the companion object in the independent state and the user-controlled object is less than R0, the companion object directly flies to the arm of the user-controlled object. When the distance between the companion object (for example, the companion object 102 shown in FIG. 15) and a user-controlled first virtual object (such as the virtual object 101 shown in FIG. 15) is greater than R0, for example, the companion object 102 in an independent state is at an R1 location, the companion object 102 in the independent state is first controlled to flash directly to the R0 location, and then returns to the arm of the user-controlled object in a flying state. In addition, if the companion object is currently in an unresponsive state, such as weakened, dying, or affected by casting of another object-controlled skill, the companion object cannot actively or passively return to the arm-attached state.
[0281] FIG. 16 is a schematic diagram of an application scene of a method for controlling a companion object in a virtual scene according to an embodiment of this disclosure. As shown in FIG. 16, assuming that a distance between a companion object 102 in an independent state and a user-controlled object 101 is greater than R0 when a user-triggered recall instruction is received, the companion object 102 in an independent state may be first controlled to flash directly to an R0 location (that is, a location 112 shown in FIG. 16), and the companion object is switched from a character shape to a manifestation of a mass of energy to fly to an arm of the object 101 at the R0 location and enters the attached state.
[0282] The process in which the companion object in an arm-attached state is assigned to perform a task continues to be described below.
[0283] In some embodiments, a user may assign a companion object in the attached state to perform a task through a unique instruction (such as the “X” key on the keyboard) at any time. If the companion object is in the arm-attached state before receiving the user-triggered task assignment instruction, logic for switching the companion object from the arm-attached state to the independent state may vary based on a distance between a fighting location and the user-controlled object.
[0284] For example, if the distance between the fighting location (corresponding to the foregoing locked location) and the user-controlled object is less than R0, an energy body flying out of the arm of the object may directly fly to the fighting location and is converted to a companion object in an independent state at the fighting location.
[0285] For example, if the distance between the fighting location and the user-controlled object is greater than R0, an energy body flying out of the arm of the object first flies to the R0 location and is converted to a companion object in an independent state at the R0 location, and then the companion object in the independent state is controlled to move to the fighting location.
[0286] For example, as shown in FIG. 17, if a fighting object is an enemy 114 (corresponding to the foregoing second virtual object, for example, may be an object included in a hostile camp of a camp to which the user-controlled object belongs in the virtual scene), a reaction time needs to be reserved for the enemy 114. Therefore, the energy body flying out of the user-controlled virtual object 101 needs to land and be converted to the companion object 102 in the independent state within a range R1 from the enemy 114 at the latest, and then the companion object 102 in the independent state is controlled to move to a location of the enemy 114. The assumption in this example has a higher priority than those in the foregoing two examples.
[0287] In some embodiments, companion objects with different characteristics display different models and provide different skills for the user-controlled object when being recalled to the arm-attached state. For example, FIG. 18 to FIG. 20 are schematic diagrams of application scenes of a method for controlling a companion object in a virtual scene according to an embodiment of this disclosure. As shown in FIG. 18 to FIG. 20, a companion object 102-1, a companion object 102-2, and a companion object 102-3 are recalled to an arm of a user-controlled object101, and display different models when entering an attached state, and companion objects with different characteristics can bring different skills to the object 101. For example, the companion object 102-1 can enhance the attack power of the object 101, the companion object 102-2 can enhance the defensive power of the object 101, and the companion object 102-3 can provide the object 101 with the ability to sense surrounding enemies.
[0288] FIG. 21 is a schematic flowchart of summoning a companion object according to an embodiment of this disclosure. As shown in FIG. 21, a user may control an object to obtain a skill chip in a virtual scene, and under the condition that an energy value of the object is higher than 500 points, the object is controlled to interact with any elite monster in a weak state in the virtual scene, thereby summoning the companion object, and the summoned companion object is to perform a corresponding show-up action. In addition, when the user-controlled object does not have a skill chip, or the energy value of the object is less than 500 points, prompt information indicating execution of the companion object may be displayed (that is, the companion object cannot be summoned under the foregoing circumstances).
[0289] FIG. 22 is a schematic flowchart of controlling a companion object to switch from an attached state to a task state according to this embodiment of this disclosure. As shown in FIG. 22, after receiving a fighting operation triggered by a user, it is first determined whether a fighting object is a coordinate or an enemy. If the fighting object is an enemy, the companion object in an arm-attached state is first controlled to fly out in the form of a mass of energy or substance (which may be set based on the world view of a specific game), and during the flight, a real-time distance between the companion object currently in a flying state and the enemy is detected frame by frame. If the distance is less than a preset value R1, the companion object in the flying state immediately lands, is switched to the companion object in the independent state (such as a companion object in a human form), and then approaches the enemy through automatic pathfinding. If the distance between the companion object currently in the flying state and the enemy is greater than R1 through detection frame by frame, it is still determined whether the distance between the companion object currently in the flying state and the user-controlled object is greater than R0. If so, the companion object currently in the flying state is controlled to land and switch to the independent state, and the companion object in the independent state is controlled to continue to approach the enemy through pathfinding. If not, the companion object is controlled to continue flying and return to the previous step for frame-by-frame detection.
[0290] In addition, if the landing location is a location unreachable by the companion object in the virtual scene (for example, a special location such as a wall and a fault) when the previous step is performed, a nearest reachable location for the companion object may be found as a landing point of the companion object by tracing along a line connecting the current location of the companion object to the location of the user-controlled object, so as to control the companion object in the flying state at the landing point to land and switch to an independent state and then perform automatic pathfinding to approach the enemy.
[0291] In the air, the companion object may be affected by the gravity of the engine and land with the acceleration of gravity, thereby presenting a more realistic landing effect.
[0292] Still referring to FIG. 22, if the fighting object is a coordinate in the virtual scene, the companion object in the attached state is still first controlled to fly out of the arm of the object in the form of a mass of energy or particles, and the distance between the companion object and the user-controlled object is detected frame by frame during the flight. If the companion object has flown out by the R0 distance, the companion object may immediately land, switch to an independent state, and then continue to perform pathfinding to reach the fighting location. If a flight distance does not reach R0, and the fighting location is reached, the companion object directly lands and switches to the independent state. In addition, if the landing point is a location unreachable by the companion object in the virtual scene, the point reachable by the companion object and closest to the fighting location is found as the landing point of the companion object by tracing along the connecting line between the current location of the companion object and the location of the user-controlled object.
[0293] Based on the above, the method for controlling a companion object in the virtual scene provided in this embodiment of this disclosure has the following optimized experience compared with the solution provided in the related art: 1) a companion object is described in a battle to assist the user-controlled object in combat; 2) when the user does not transmit any instruction to the companion object, the companion object flies from the companion object in the independent form to the arm of the user-controlled object by default in the form of particles or energy and through transformation, and becomes a part of an arm model; 3) the companion object may bring specific capabilities to the user-controlled object when becoming a part of the user-controlled object; 4) when necessary, the user may assign the companion object to perform the corresponding task through a unique instruction. If the companion object before assignment is in an arm-attached state, corresponding switching performance of flying out of the arm may be presented; 5) for the companion object that is already in an independent state, the user may also actively recall the companion object to the arm-attached state through an instruction different from the foregoing assigned instruction, and corresponding state switching may also be presented; and 6) the companion object automatically returns to the arm-attached state and presents the corresponding state switching performance upon completion of the task.
[0294] Stage III: Control a companion object in a first state to enhance a first virtual object, and / or control the companion object in a second state to assist the first virtual object.
[0295] In a case that the companion object is in the first state, a user or a client controls the companion object to enhance the first virtual object, the enhancement including at least one of the following:
[0296] enhancing a scouting capability of the first virtual object;
[0297] enhancing a defense capability of the first virtual object;
[0298] increasing a weapon attack speed of the first virtual object;
[0299] enhancing a buff of the weapon attack of the first virtual object; and
[0300] increasing an energy storage capacity of the first virtual object.
[0301] In an aspect of the disclosure, a buff may include a change to a game which increases the utility or effect of game elements, items environments mechanics, etc., while a nerf is a change that decreases the utility or effect. For example, buff can be used to describe a positive status effect that affects mainly player or enemy statistics (usually cast as a spell). Examples of buffs include increasing the movement speed of the target, increasing the attack speed of the target, increasing the health points of the target, increasing the target's perception, increasing the target's physical defense, healing the target over time for a period of time, boosting the damage output of the target, taunting the enemy to avoid other players getting attacked, and stealth to avoid the enemy detecting or hitting the player. In another example, debuffs are effects that may negatively impact a player character or a non-player character in some way other than reducing their hit points. Some examples of debuffs include reducing the movement speed of the target, reducing the attack speed of the target, decreasing the resistance of the target to various elements or forms of attack, reducing the stats of the target, crippling the target's perception, lowering the target's physical defense, draining the target's health capacity, removing the target's health over time while the status effect is active, making the character act on his / her own, and skipping the target's turn. The buff and / or debuff may be applied temporarily, such as for a predetermined period of time, or while one or more certain conditions are met.
[0302] In a case that the companion object is in the second state, a user or a client controls the companion object to assist the first virtual object, the assistance including one of the following:
[0303] assisting the first virtual object in scouting;
[0304] assisting the first virtual object in a defense;
[0305] assisting the first virtual object in a patrol;
[0306] assisting the first virtual object in an attack; and
[0307] assisting the first virtual object in a taunt. Taunting may include attracting attention of the enemy and causing the enemy to actively attack or give priority to attacking the companion object itself instead of attacking the first virtual object.
[0308] In different embodiments, there may be one or more types of companion objects. Four different types of companion objects of a scouting object, a shield object, a melee object, and a ranged object are used as examples for description below. However, companion object of other types are within the scope of the present disclosure. For example, a companion object of another type may be formed by different combinations of the enhancements and / or assistance of the following different companion objects, which is not limited in this disclosure.
[0309] In some embodiments, the companion object in the first state is controlled to perform a first enhancement on the first virtual object in a case that the companion object is not equipped with an enhancement prop. The companion object in the first state is controlled to perform a second enhancement on the first virtual object in a case that the companion object is equipped with the enhancement prop. An enhancement effect of the second enhancement is better than that of the first enhancement.
[0310] In some embodiments, the companion object in the second state is controlled to perform a first assistance on the first virtual object in a case that the companion object is not equipped with an enhancement prop. The companion object in the second state is controlled to perform a second assistance on the first virtual object in a case that the companion object is equipped with the enhancement prop. An assistance effect of the second assistance is better than that of the first assistance.Companion Object of a Scouting Type:
[0311] An embodiment of this disclosure provides a technical solution of a scouting method in a virtual scene, and the method may be performed by a terminal or a client on the terminal. As shown in FIG. 23, a first virtual object 101 located in a virtual scene 100 is displayed in the client, and the first virtual object 101 has a companion object 102 for scouting.
[0312] Exemplarily, in a case that the companion object 102 is attached to a limb (a first state) of the first virtual object 101 and is not loaded with a scouting enhancement prop 115, in response to discovering a third virtual object 114 through scouting of a circular region centered at the first virtual object 101, the client displays orientation information of the third virtual object 114 in a map display control 113. The scouting enhancement prop 115 may be understood as a prop configured to enhance a scouting capability, also referred to as a virtual scouting prop. In some examples, the scouting enhancement prop 106 may be implemented as a chip.
[0313] In an example, the orientation information is used for indicating orientation information of the third virtual object 114 relative to the first virtual object 101, and an orientation indicated in the orientation information is one of at least two preset orientations.
[0314] For example, as shown in (a) in FIG. 23, in a case that the companion object 102 is attached to an arm of the first virtual object 101, the companion object 102 scouts the third virtual object 114 in the circular region centered at the first virtual object 101, and in a case that the third virtual object 114 is within a scouting range, the orientation information of the third virtual object 114 is displayed in the map display control 113. For example, if the third virtual object 114 is located in the north of the first virtual object 101, a north part of the map display control 113 is highlighted and outlined in bold in the map display control 113.
[0315] Exemplarily, in a case that the companion object 102 is attached to the limb of the first virtual object 101, the companion object 102 is loaded with the scouting enhancement prop 115, and the first virtual object 101 enters an aiming state with directivity, in response to the companion object 102 scouting a first fan-shaped region centered at the first virtual object 101, the client displays, in the map display control 113, location information of the third virtual object 114 in the first fan-shaped region in a case that a third virtual object exists in the first fan-shaped region. In some embodiments, even if the companion object 102 is not equipped with the scouting enhancement prop 115, and even does not enter a standard state of directivity, a region scouted by the companion object may also be a fan-shaped region.
[0316] The location information is used for indicating geographic location information of the third virtual object 114 relative to the first virtual object 101.
[0317] For example, as shown in (b) in FIG. 23, in a case that the companion object 102 is attached to an arm of the first virtual object 101, the companion object 102 is loaded with the scouting enhancement prop 115, and the first virtual object 101 enters an aiming state, the companion object 102 scouts the first fan-shaped region based on prop attributes of the scouting enhancement prop 115 centered at the first virtual object 101. At this moment, the third virtual object 114 is in the northwest of the first virtual object 101, and the location information of the third virtual object 114 is prominently displayed in the map display control 113, that is, an actual geographical location of the third virtual object 114 is displayed in the northwest of the map display control 113.
[0318] In a case that the companion object 102 is attached to the limb of the first virtual object 101, the companion object 102 is loaded with the scouting enhancement prop 106, the companion object 102 may correspondingly have an energy value progress bar, and the first virtual object 101 enters an aiming state, the client displays, in the map display control 113 in response to the companion object 102 scouting a second fan-shaped region within a first duration centered at the first virtual object 101, location information of the third virtual object 114 in the second fan-shaped region in a case that the third virtual object 114 exists in the second fan-shaped region. The first duration is related to an energy value of the companion object 102. The energy value progress bar is configured to indicate a first duration for which the companion object 102 scouts a second region. A size of the second region is greater than a size of the first region.
[0319] For example, the energy progress bar of the companion object 102 is further displayed on a user interface. A first time period of 5 seconds may be obtained based on the energy progress bar. Then, in a case that the first virtual object 101 enters the aiming state, the companion object scouts a second fan-shaped region 117 within 5 seconds based on the prop attribute of the scouting enhancement prop 115 and the energy value of the companion object 102 centered at the first virtual object 101. In a case that the third virtual object 114 is in the second fan-shaped region, location information of the third virtual object 114 in the second fan-shaped region is displayed in the map display control 113.
[0320] In a case that the companion object 102 is loaded with the scouting enhancement prop 115, and the companion object 102 and the first virtual object 101 are detached from each other, the companion object 102 in an independent state may also perform a scouting operation similar to that in an attached state and its variants. In response to discovering the third virtual object 114 through scouting of the circular region centered at the companion object 102, the client displays, in the map display control 113, the location information of the third virtual object 114 in the circular region centered at the companion object 102.
[0321] In an example, in a case that the companion object 102 is loaded with the scouting enhancement prop 115, and the companion object 102 and the first virtual object 101 are detached from each other, the circular region centered at the companion object 102 is scouted. In a case that the third virtual object 114 exists in the circular region centered at the companion object 102 and the third virtual object 114 is behind a virtual obstacle, the third virtual object 114 is displayed in a see-through view, and the location information of the third virtual object 114 in the circular region centered at the companion object 102 is displayed in the map display control 113.
[0322] For example, as shown in (c) in FIG. 23, in a case that the companion object 102 is loaded with the scouting enhancement prop 115, and the companion object 102 and the first virtual object 101 are detached from each other, the circular region centered at the companion object 102 is scouted, the third virtual object 114 is in the northeast direction of the companion object 102, and then the actual location of the third virtual object 114 is prominently displayed in the map display control 113, that is, the actual geographical location of the third virtual object 114 is displayed in the northeast direction in the map display control 113.
[0323] In a case that the first virtual object 101 is discovered through scouting by the companion object 102 of the third virtual object 114, prompt information is displayed, the prompt information being used for indicating that the location information of the first virtual object 101 is determined by the third virtual object 114.Scouting Object in a First State:
[0324] FIG. 24 is a flowchart of a scouting method in a virtual scene according to an exemplary embodiment of this disclosure. The method may be performed by a terminal device or a client on the terminal device. The method includes the following steps.
[0325] Step 220: Display a first virtual object in a virtual scene.
[0326] A virtual scene is a virtual activity space provided by an application program in a terminal during operation, for the first virtual object to perform various activities in the virtual activity space, and the first virtual object has a companion object for scouting.
[0327] Exemplarily, a virtual scene picture is a two-dimensional picture obtained by capturing a picture of the virtual scene and displayed on the client. Exemplarily, a shape of the virtual scene picture is determined based on a shape of a display screen of the terminal or a shape of a user interface of the client. For example, the display screen of the terminal is rectangular, and the virtual scene picture is also displayed as a rectangular picture.
[0328] The first virtual object is a virtual object controlled by the client. The client may control the first virtual object to move in the virtual scene based on a received user operation.
[0329] Exemplarily, activities of the first virtual object in the virtual scene may include: walking, running, jumping, climbing, getting down, attacking, releasing a skill, picking up a prop, sending a message, which are not limited thereto and not limited in this embodiment of this disclosure.
[0330] Step 240: Control the companion object to be attached to a limb of the first virtual object (in a first state).
[0331] The companion object is a movable object with different functions of the first virtual object in the virtual scene. The companion object may be obtained through at least one of picking, snatching, and purchasing, which is not limited in this disclosure.
[0332] Exemplarily, in a case that the companion object has just been obtained, the companion object is in the first state. Alternatively, the client controls the companion object to be in the first state in response to a second switching operation on the companion object. The companion object is attached to the limb of the first virtual object in the first state. For example, the companion object is attached to an arm of the first virtual object, the companion object is attached to a leg of the first virtual object, and the companion object is attached to a back of the first virtual object, which is not limited thereto and not limited in this embodiment of this disclosure.
[0333] Step 260: Discover a third virtual object within a preset range of the first virtual object through scouting in response to the first virtual object entering an aiming state.
[0334] In some embodiments, the third virtual object is another virtual object except the first virtual object, that is, the third virtual object is a virtual object in the same camp as the first virtual object, or a virtual object in a different camp from the first virtual object, which is not limited in this embodiment of this disclosure.
[0335] The aiming state is a directional operation in which the first virtual object focuses its sight or attention on a location or a direction, for example, the first virtual object enters a waist aiming state or a shoulder aiming state, which is not limited thereto and not limited in this embodiment of this disclosure. For example, in a common shooting game, zoom-in is performed for observation in a direction in a sniper state, which belongs to the aiming state.
[0336] Waist aiming is an aiming state without using a sight, and shoulder aiming is an aiming state using a sight.
[0337] The preset range is a default scouting range of the first virtual object, which may be at least one of a fan shape, a circle, a circular ring, and a rectangle, which is not limited thereto, and the shape of the preset range is not specifically limited in this embodiment of this disclosure.
[0338] Step 280: Display location information of the third virtual object in response to the third virtual object existing within the preset range of the first virtual object.
[0339] The location information of the third virtual object is at least one of a location direction and specific geographic information of the third virtual object, which is not limited thereto and not limited in this embodiment of this disclosure.
[0340] Exemplarily, in response to the companion object discovering the third virtual object through scouting, a client displays the location information of the third virtual object in a user interface.
[0341] Based on the above, according to the method provided in this embodiment, the first virtual object in the virtual scene is displayed, the companion object is controlled to be attached to the limb of the first virtual object, and in a case that the first virtual object enters the aiming state, the third virtual object within the preset range of the first virtual object is discovered through scouting, and the location information of the third virtual object is displayed. A new scouting mode is provided in this disclosure to assist a user in actively discovering the location information of the third virtual object through scouting, thereby improving the efficiency of human-computer interaction and enhancing user experience.
[0342] FIG. 25 is a flowchart of a scouting method in a virtual scene according to an exemplary embodiment of this disclosure. The method may be performed by a terminal in the system shown in FIG. 2 or a client on the terminal. The method includes the following steps.
[0343] Step 220: Display a first virtual object in a virtual scene.
[0344] A first location of the first virtual object or companion object in the virtual scene may be a central location in the map display control, or may be another location in the map display control. That is, the first location of the first virtual object or the companion object in the virtual scene may correspond to the center of the map display control, or may correspond to another location of the map display control. This embodiment of this disclosure is described by using the example that the first location of the first virtual object in the virtual scene may correspond to the center of the map display control.
[0345] Step 240: Control the companion object to be attached to a limb of the first virtual object.
[0346] Step 262: Discover a third virtual object through scouting of a first fan-shaped region centered at the first virtual object in response to the first virtual object entering an aiming state in a case that the companion object is loaded with a scouting enhancement prop.
[0347] The scouting enhancement prop is an item with a scouting function of the first virtual object in the virtual scene.
[0348] The scouting enhancement prop may be obtained through at least one of picking, snatching, and purchasing, which is not limited in this disclosure.
[0349] In an example, the first virtual object entering the aiming state means that the first virtual object controls a virtual shooting prop or virtual bow and arrow props to enter the aiming state, for example, controls the virtual shooting prop to aim at the third virtual object, or controls the virtual shooting prop to aim at a virtual stone, which is not limited thereto. A controlling prop, an aiming direction, and an aiming item of the first virtual object entering the aiming state are not specifically limited in this embodiment of this disclosure.
[0350] Step 282: Display location information of the third virtual object in a map display control in response to the third virtual object existing in the first fan-shaped region centered at the first virtual object.
[0351] Exemplarily, a client displays the location information of the third virtual object in the map display control in response to the third virtual object existing in the first fan-shaped region centered at the first virtual object.
[0352] Exemplarily, as shown in FIG. 26, a first virtual object 101 located in a virtual scene 100 is displayed in the client, and the first virtual object 101 has a companion object 102 for scouting. In a case that the companion object 102 is attached to an arm of the first virtual object 101, the companion object 102 is loaded with the scouting enhancement prop 115, and the first virtual object 101 enters an aiming state, the companion object 102 scouts a first fan-shaped region 116 based on prop attributes of the scouting enhancement prop 115 centered at the first virtual object 101. At this moment, the third virtual object 114 is in the northwest of the first virtual object 101, and the location information of the third virtual object 114 is displayed in the map display control 113, that is, an actual geographical location of the third virtual object 114 is displayed in the northwest of the map display control 113.
[0353] In a possible implementation, the companion object correspondingly has an energy value progress bar. In response to the first virtual object entering the aiming state, the third virtual object in a second fan-shaped region is discovered through scouting within a first duration centered at the first virtual object, and in response to the third virtual object existing in the second fan-shaped region, the location information of the third virtual object is displayed in the map display control. A size of the second fan-shaped region is greater than a size of the first fan-shaped region.
[0354] In an example, in a case that the companion object is loaded with the scouting enhancement prop, the companion object correspondingly has an energy value progress bar. The energy value progress bar is configured to indicate a first duration for which the companion object scouts the second fan-shaped region. That is, the client may determine, based on a value of the energy value progress bar, a duration for which the companion object scouts the second fan-shaped region.
[0355] Exemplarily, as shown in FIG. 27, a first virtual object 101 located in a virtual scene 100 is displayed in the client, and the first virtual object 101 has a companion object 102 for scouting. In a case that the companion object 102 is attached to the limb of the first virtual object 101, the companion object 102 is loaded with the scouting enhancement prop 115, the companion object 102 correspondingly has an energy value progress bar 118, and the first virtual object 101 enters an aiming state, the client displays, in the map display control 113 in response to the companion object 102 scouting a second fan-shaped region 117 within a first duration centered at the first virtual object 101, location information of the third virtual object 114 in the second fan-shaped region in a case that the third virtual object 114 exists in the second fan-shaped region 117.
[0356] The first duration is related to an energy value of the companion object 102. The energy value progress bar 118 is configured to indicate a first duration for which the companion object 102 scouts the second fan-shaped region 117.
[0357] For example, a first time period of 5 seconds may be obtained based on the energy progress bar 118. Then, in a case that the first virtual object 101 enters the aiming state, the companion object 102 scouts the second fan-shaped region 117 within 5 seconds based on the prop attribute of the scouting enhancement prop 115 and the energy value of the companion object 102 centered at the first virtual object 101. In a case that the third virtual object 114 is in the second fan-shaped region 117, location information of the third virtual object 114 in the second fan-shaped region 117 is displayed in the map display control 113. In an example, after the end of 5 seconds, the companion object may continue to scout the first fan-shaped region 116.
[0358] Exemplarily, as shown in the schematic diagram of the map display control shown in FIG. 28, the first fan-shaped region 116 is the first fan-shaped region 116 scouted for the third virtual object centered at the first virtual object, and the second fan-shaped region 117 is the second fan-shaped region 117 scouted for the third virtual object within the first duration centered at the first virtual object. The size of the second fan-shaped region 117 displayed in the map display control is greater than the size of the first fan-shaped region 116.
[0359] In a possible implementation, in a case that the companion object is in the first state and does not enter the aiming state, the third virtual object is discovered through scouting of a circular region centered at the first virtual object. A client displays the orientation information of the third virtual object in the map display control in response to the third virtual object existing in the circular region centered at the first virtual object. In an example, in a case that the companion object is in the first state, is not loaded with the scouting enhancement prop, and does not enter the aiming state, the third virtual object is discovered through scouting of the circular region centered at the first virtual object.
[0360] In an example, the orientation information is used for indicating orientation information of the third virtual object relative to the first virtual object, and an orientation indicated in the orientation information is one of at least two preset orientations.
[0361] Energy corresponding to the energy value progress bar is stored in response to the first virtual object not entering the aiming state. For example, when the first virtual object does not enter the aiming state, an energy value thereof continues to increase.
[0362] For example, as shown in FIG. 29, a first virtual object 101 located in a virtual scene 100 is displayed in the client, and the first virtual object 101 has a companion object 102 for scouting. In a case that the companion object 102 is attached to an arm of the first virtual object 101, the companion object 102 scouts the third virtual object 114 in the circular region centered at the first virtual object 101, and in a case that the third virtual object 114 is within a scouting range, the orientation information of the third virtual object 114 is displayed in the map display control 113. For example, if the third virtual object 114 is located in the north of the first virtual object 101, a north part of the map display control 113 is highlighted and outlined in bold in the map display control 113.
[0363] In some embodiments, in a case that the third virtual object is discovered through scouting within the first duration, second location information of the third virtual object is displayed in the map display control, and the third virtual object is set to a marked state, the second location information of the third virtual object in the marked state being to be continuously displayed in the map display control, and the marked state having a duration. That is, the marked state is a state in which field of view information of the third virtual object is exposed to fields of view of the first virtual object and teammates of the first virtual object.
[0364] Based on the above, according to the method provided in this embodiment, the first virtual object in the virtual scene is displayed, the companion object is controlled to be attached to the limb of the first virtual object, and a plurality of manners of discovering the third virtual object through scouting within the preset range of the first virtual object and displaying the location information of the third virtual object are provided.
[0365] In the first scouting manner, the companion object is loaded with a scouting enhancement prop. In response to the first virtual object entering the aiming state, the third virtual object in the first fan-shaped region is discovered through scouting centered at the first virtual object, and the location information of the third virtual object in the first fan-shaped region is displayed in the map display control, thereby assisting the user in discovering the location information of the third virtual object through scouting, improving the efficiency of human-computer interaction, and improving user experience.
[0366] In the second scouting manner, the companion object is loaded with a scouting enhancement prop, and the companion object correspondingly has an energy value progress bar. In response to the first virtual object entering the aiming state, the third virtual object in the second fan-shaped region is discovered through scouting centered at the first virtual object, and the location information of the third virtual object in the second fan-shaped region is displayed in the map display control, thereby assisting the user in scouting the location information of the third virtual object in a larger range, improving the efficiency of human-computer interaction, and improving user experience.
[0367] In the third scouting manner, the companion object is attached to the limb of the first virtual object and is not loaded with the scouting enhancement prop, and the third virtual object is discovered through scouting of a circular region centered at the first virtual object. In response to the third virtual object existing in the circular region centered at the first virtual object, the orientation information of the third virtual object is displayed in the map display control, which assists the user in discovering an approximate location and direction of the third virtual object through scouting, thereby improving the basic scouting capability without unnecessary operation, and improving the efficiency of human-computer interaction and user experience.
[0368] FIG. 30 is a flowchart of a scouting method in a virtual scene according to an exemplary embodiment of this disclosure. The method includes the following steps.
[0369] Step 301: Click / tap a button to summon a “scout monster”.
[0370] A companion object being the “scout monster” is used as an example. A user clicks the button to summon the “scout monster”, and a client obtains an instruction to summon the “scout monster”.
[0371] Step 302: Display an animation of the scout monster attached to an arm.
[0372] In a case that the client obtains the instruction to summon the “scout monster”, the animation of the “scout monster” attached to the arm of the first virtual object is displayed on a user interface of the client.
[0373] In an example, the animation of the “scout monster” attached to the arm of the first virtual object is the process of “scout monster” attached to the arm of the first virtual object, or a special effects display of the “scout monster” attached to the arm of the first virtual object, which is not limited in this embodiment of this disclosure.
[0374] Step 303: Detect, by using a first virtual object as a center, whether a third virtual object exists around the first virtual object.
[0375] In a case that the “scout monster” is attached to the arm of the first virtual object, the “scout monster” is in a first scouting state, and the “scout monster” discovers the third virtual object through scouting centered at the first virtual object in the first scouting state.
[0376] Step 304: Display orientation information of the third virtual object in a map display control.
[0377] In a case that the third virtual object is within a scouting range, the orientation information of the third virtual object is displayed in the map display control. For example, if the third virtual object is located in the north of the first virtual object, a north part of the map display control is highlighted and outlined in bold in the map display control.
[0378] Step 305: Load a scouting enhancement prop.
[0379] Exemplarily, the “scout monster” may be loaded with the scouting enhancement prop.
[0380] In an example, the scouting enhancement prop is an item with a scouting function of the first virtual object in the virtual scene.
[0381] The scouting enhancement prop may be obtained through at least one of picking, snatching, and purchasing, which is not limited in this disclosure.
[0382] Step 306: Click / tap a shoulder aiming button.
[0383] The user controls the first virtual object to enter a shoulder aiming state by clicking / tapping the shoulder aiming button.
[0384] Step 307: Enter a shoulder aiming state.
[0385] The client controls the first virtual object to enter the shoulder aiming state and transmits a scouting instruction to a server after receiving the shoulder aiming instruction.
[0386] Step 308: Obtain location information of the third virtual object in a first region.
[0387] It is assumed that not enough energy is stored in a case that the scouting enhancement prop is just loaded. In a case that a master server receives the scouting instruction, the server obtains the location information of the third virtual object in the first region and transmits the location information of the third virtual object in the first region to the client.
[0388] Step 309: Prominently display the third virtual object based on the location information, and highlight the third virtual object on the map display control.
[0389] In a case that the client receives the location information of the third virtual object in the first region, the client highlights the third virtual object based on the location information, and prominently displays a specific location of an enemy third virtual object on the map display control.
[0390] Step 310: Exit shoulder aiming.
[0391] The user controls the first virtual object to exit a shoulder aiming state by clicking / tapping the shoulder aiming button again.
[0392] Step 311: The first virtual object enters a normal walking state and displays an energy value progress bar.
[0393] The client controls the first virtual object to enter the normal walking state, and displays the energy value progress bar on the client after receiving an instruction to exit the shoulder aiming. In the normal walking state, the energy value progress bar may store energy.
[0394] Step 312: Click / tap a shoulder aiming button.
[0395] The user controls the first virtual object to enter a shoulder aiming state by clicking / tapping the shoulder aiming button.
[0396] Step 313: Scout the third virtual object in a second region within a first duration.
[0397] Based on the energy value progress bar, the client transmits a scouting instruction to the server in response to the “scout monster” discovering the third virtual object through scouting of the second region within the first duration. That is, the first duration is related to an energy value of the companion object.
[0398] Step 314: Determine a scouting range based on the energy value progress bar, and obtain the location information of the third virtual object within the scouting range.
[0399] The server determines the scouted second region based on the energy value progress bar, discovers the third virtual object through scouting of the second region, and transmits the location information of the third virtual object to the client. A size of the second region is related to an energy value of the companion object.
[0400] Step 315: Highlight the third virtual object based on the location information, and prominently display an enemy object on the map display control.
[0401] The client displays, in the map display control, the location information of the third virtual object in the second region and highlights the third virtual object in a case that the location information of the third virtual object is received.Scouting Object in a Second State:
[0402] FIG. 31 is a flowchart of a scouting method in a virtual scene according to an exemplary embodiment of this disclosure. The method may be performed by a terminal device or a client on the terminal device. The method includes the following steps.
[0403] Step 220: Display a first virtual object in a virtual scene.
[0404] A virtual scene is a virtual activity space provided by an application program in a terminal during operation, for the first virtual object to perform various activities in the virtual activity space, and the first virtual object has a companion object for scouting.
[0405] The first virtual object is a virtual object controlled by the client. The client controls the first virtual object to move in the virtual scene based on a received user operation.
[0406] Step 230: Control a companion object to be detached from the first virtual object (in a second state).
[0407] The companion object is a movable object with different functions of the first virtual object in the virtual scene.
[0408] The companion object may be obtained through at least one of picking, snatching, and purchasing, which is not limited in this disclosure.
[0409] Exemplarily, in response to a second instruction for the companion object, the client controls the companion object to be detached from the first virtual object, for example, the companion object is detached from a leg of the first virtual object, which is not limited in this embodiment of this disclosure.
[0410] The companion object is controlled to scout the virtual scene at a specified location or in a specified region therein.
[0411] Step 250: Display the location information of the third virtual object in the map display control in response to discovering the third virtual object through scouting of a circular region centered at the companion object.
[0412] Exemplarily, a client displays the location information of the third virtual object in the map display control in response to discovering the third virtual object through scouting of the circular region centered at the companion object.
[0413] For example, in a case that the companion object and the first virtual object are detached from each other, the companion object can move along with the movement of the first virtual object, or the first virtual object provides a specified location or a specified region, and the companion object is fixed to the specified location or the specified region, which is not limited thereto. States of the companion object and the first virtual object after being detached from each other are not specifically limited in this embodiment of this disclosure.
[0414] Exemplarily, as shown in FIG. 32, a first virtual object 101 located in a virtual scene 100 is displayed in the client, and the first virtual object 101 has a companion object 102 for scouting. In a case that the companion object 102 is loaded with the scouting enhancement prop 115, and the companion object 102 and the first virtual object 101 are detached from each other, the circular region centered at the companion object 102 is scouted centered at the companion object, the third virtual object 114 is in the northeast direction of the companion object 102, and then the actual location of the third virtual object 114 is displayed in the map display control 113, that is, the actual geographical location of the third virtual object 114 is displayed in the northeast direction of the map display control 113.
[0415] In a possible implementation, in response to discovering the third virtual object through scouting of the circular region centered at the companion object, the client prominently displays the third virtual object, and displays, in the map display control, the location information of the third virtual object in the circular region.
[0416] In an example, the prominent display manner includes: at least one of highlighting, using an inverted color, glowing, adding a background color, and adding a prompt label, which is not limited thereto and not limited in this embodiment of this disclosure.
[0417] In a possible implementation, in response to discovering the third virtual object through scouting of the circular region centered at the companion object and the third virtual object being behind a virtual obstacle, the client displays the third virtual object in a see-through view, and displays, in the map display control, the location information of the third virtual object in the circular region.
[0418] In a possible implementation, in a case that an automatic scouting function is enabled, a target scouting state corresponding to the companion object during scouting at a current location is determined based on a location scouting model. The target scouting state includes one of a first scouting state and a second scouting state. The first scouting state means scouting orientation information of the third virtual object within a preset scouting range of the first virtual object, and the second scouting state means scouting the location information of the third virtual object within the preset scouting range of the first virtual object.
[0419] Exemplarily, in a case that the automatic scouting function is enabled, the client may determine the target scouting state corresponding to the companion object during scouting at the current location through the location scouting model.
[0420] For example, when the first virtual object arrives at a location A for scouting, the companion object automatically enters the second scouting state.
[0421] In a possible implementation, during training of the location scouting model, statistics are collected on historical location scouting records of user accounts. For example, the historical location scouting records are historical location scouting records of user accounts corresponding to sample virtual objects, or historical location scouting records corresponding to another user account, which are not limited in this embodiment of this disclosure.
[0422] Behavior characteristics of the sample virtual objects after scouting at first locations are extracted from the historical location scouting records, and corresponding sample scouting states are obtained based on the behavior characteristics. The first locations are locations of the sample virtual objects.
[0423] Data processing is performed on each of the first locations through the location scouting model, to obtain a predicted scouting state.
[0424] A model parameter of the location scouting model is updated based on a difference between the predicted scouting state and the sample scouting state.
[0425] Exemplarily, the behavior characteristics include a combat behavior characteristic and a non-combat behavior characteristic. The behavior characteristics of the sample virtual objects after scouting at the first locations are extracted from the historical location scouting records, a scouting state corresponding to the non-combat behavior characteristic is marked as the first scouting state, and a scouting state corresponding to the combat behavior characteristic is marked as the second scouting state.
[0426] In an example, the non-combat behavior characteristic is at least one of chatting, dodging, escaping, and detour, which is not limited thereto and not limited in this embodiment of this disclosure.
[0427] For example, the behavior characteristic of the sample virtual object after scouting at the first location is “dodging”, and the scouting state corresponding to the behavior characteristic of “dodging” is marked as the first scouting state. Through the location scouting model, data processing is performed on the first location is to obtain the predicted scouting state. Based on a difference between the predicted scouting state and the first scouting state, the model parameter of the location scouting model is updated to obtain a trained location scouting model.
[0428] In a possible implementation, in a case that the first virtual object is discovered through scouting by the companion object of the third virtual object, prompt information is displayed, the prompt information being used for indicating that the location information of the first virtual object is determined by the third virtual object.
[0429] For example, as shown in FIG. 33, the first virtual object 101 located in the virtual scene 100 is displayed in the client, and in a case that the first virtual object 101 is discovered through scouting by the companion object of the third virtual object, the prompt information 119 is displayed, and the content of the prompt information 119 is at least one of “location has been exposed” and “warning”, which is not limited thereto and not limited in this embodiment of this disclosure.
[0430] Based on the above, according to the method provided in this embodiment, the first virtual object in the virtual scene is displayed, the companion object is controlled to be detached from the first virtual object, the third virtual object is discovered through scouting of the circular region centered at the companion object, and the location information of the third virtual object is displayed in the map display control. A new scouting mode is provided in this disclosure to assist a user in actively discovering the location information of the third virtual object through scouting, thereby improving the efficiency of human-computer interaction and enhancing user experience.
[0431] FIG. 34 is a flowchart of a scouting method in a virtual scene according to an exemplary embodiment of this disclosure. The method includes the following steps.
[0432] Step 320: A client displays a game picture.
[0433] The game picture includes at least part of a virtual scene, the virtual scene includes a first virtual object and a companion object in a second form, and a subordinate relationship exists between the companion object and the first virtual object.
[0434] In some embodiments, the client may display the game picture in the following manners. The client may display a summoning control configured to summon the companion object in an interface of the virtual scene; receive a summoning instruction in response to a triggering operation on the summoning control; and generate and transmit a summoning request for the companion object to a server in response to the summoning instruction, the summoning request carrying an object identifier of a to-be-summoned companion object, and the server determining, based on the summoning request, a relevant parameter of the companion object to be summoned by the summoning request, and pushing the determined relevant parameter of the companion object to the client, so that the client can render the picture based on the relevant parameter and display the rendered summoning picture (that is, the foregoing game picture).
[0435] FIG. 35 is a schematic diagram of a form change of a companion object according to an embodiment of this disclosure. A client displays a summoned companion object in a second form in response to a summoning instruction, and shows a process that the companion object in the second form is transformed into the companion object in a first form and the companion object in the first form is adsorbed (for example, conformed, formed, worn, or other incorporated) on a first virtual object to become a part of a first virtual object. For example, a summoned wild monster of an animation image is first displayed, and then an animation in which the wild monster of the animation image turns into fragments and the fragments are adsorbed on an arm of the first virtual object is displayed.
[0436] Companion objects in different forms can have different auxiliary effects on the first virtual object. For example, the companion object in the second form may be an independent virtual image located at a distance around the first virtual object. When the first virtual object moves in the virtual scene, the companion object in the second form moves with the movement of the first virtual object. After the companion object in the second form is summoned, and before the companion object is changed from the second form to the first form, the client may also control the companion object in the second form to scout a target region centered on the companion object in the virtual scene, and when a target object (such as a second virtual object or a virtual material) is discovered through scouting, indication information of the discovered target object through scouting is displayed. The companion object in the first form is attached to the arm of the first virtual object, and the companion object in the first form is less easily perceived by the second virtual object than the companion object in the second form. Therefore, during control of the companion object in the first form to scout the virtual scene for objects or resources, it is more conducive to discovering or detection of valuable information through scouting, such as a location of the second virtual object and distribution of resources around and nearby the second virtual object, so as to improve the interaction capability of the first virtual object.
[0437] In some embodiments, the client may control the companion object in the first form to scout the virtual scene for objects in response to the companion object in the first form being adsorbed onto the first virtual object; and display location information of a third virtual object in a map of a corresponding virtual scene when the third virtual object being discovered through scouting of a first region centered on the first virtual object.
[0438] In practical application, the client may control the companion object in the first form to assist the first virtual object in the virtual scene and interact with another virtual object in a different virtual object group from the first virtual object. Therefore, in order to learn location information of the another virtual object, the companion object in the first form may be controlled to scout the virtual scene for objects. A collider component (such as a collision box or a collision ball) is bound to another virtual object (such as a virtual object or a non-player character in a different group from the first virtual object, collectively referred to as a third virtual object) in the virtual scene. In the process of controlling the companion object in the first form to scout the virtual scene for objects, a detection ray is emitted from the companion object in a direction of the first virtual object or the companion object through a camera component on the companion object. When the detection ray intersects with the collider component bound to the third virtual object, it is determined that the companion object discovers the third virtual object through scouting. When the detection ray does not intersect with the collider component bound to the third virtual object, it is determined that the companion object has not discovered the third virtual object through scouting. When the third virtual object is discovered through scouting, a warning is sent for the third virtual object, and the location information of the third virtual object is displayed in the map of the virtual scene, such as a distance and a direction of the third virtual object relative to the first virtual object.
[0439] FIG. 36 is a schematic diagram of scouting according to an embodiment of this disclosure. A companion object in a first form is controlled to scout a virtual scene for objects. When a third virtual object is discovered through scouting of a first region centered on a first virtual object or the companion object, location information of the third virtual object is displayed in a map of the virtual scene, so as to send a warning to the first virtual object or all virtual objects (friends) in a group to which the first virtual object belongs and view the location information of the third virtual object. After the location information of the third virtual object is learned, it is convenient for a client to control the corresponding virtual object to interact with the third virtual object by adopting the most suitable interaction strategy at present, which is beneficial to improving interaction capability of the first virtual object or the group to which the first virtual object belongs.
[0440] Step 340: Control a companion object to transform from a first form to a simulated enemy form.
[0441] In an example, the companion object is controlled to transform from the first form to the simulated enemy form in response to a switching operation. That is, the companion object is controlled to mimic an image of the third virtual object. The simulated enemy form is a form of the companion object independent of the first virtual object, and is configured to simulate an appearance form of the third virtual object. The simulated enemy form may be understood as mimicry in a second form. A first instruction triggered by a first switching operation is also referred to as a transformation instruction, which may be triggered by triggering a transformation control. For example, the client may display the transformation control for the companion object in an interface of the virtual scene. In response to the triggering operation for the transformation control, a transformation instruction is received. In response to the transformation instruction, a transformation request for the companion object is generated and transmitted to the server. The transformation request carries an object identification of the companion object. Based on the transformation request, the server determines a relevant parameter of the companion object requested to transform by the transformation request (such as a non-player character or another virtual object in a different group from the first virtual object near the companion object), and pushes the determined relevant parameter of the companion object to the client, so that the client can render a picture based on the relevant parameter and display the rendered summoning picture, that is, display a process of the transformation of the companion object from the first form to the simulated enemy form.
[0442] The simulated enemy form corresponds to (such as consistent with) the image of the third virtual object in the virtual scene. The third virtual object may be a virtual object existing in the first region centered on the companion object in the virtual scene, and a hostile relationship exists between the third virtual object and the first virtual object. A display style of the third virtual object may be the same or different from the perspective of both sides between which the hostile relationship exists. For example, from the perspective of the enemy (such as the third virtual object or another virtual object having a friend relationship with the third virtual object), the third virtual object (such as an enemy hero or an enemy wild monster) is displayed in a style consistent with the image of the third virtual object. From the perspective of the first virtual object, the third virtual object is displayed in a prominent display manner to give a significant prompt to a user. The prominent display manner includes at least one of the following display manners: displaying with a target color, superposing a mask, displaying with a highlight color, outlining in bold, and displaying in a see-through view.
[0443] FIG. 37 is a schematic diagram of a form change of a companion object according to an embodiment of this disclosure. When the companion object in a first form is a fragment adsorbed on an arm of a first virtual object (obtained by disintegration of a wild monster of an animation image), in response to a transformation instruction, a client displays an animation in which the fragment adsorbed onto the arm of the first virtual object is detached from the arm to move to a target location and the detached fragment is transformed into a companion object (that is, a companion object in a simulated enemy form) with the same image as the third virtual object at the target location.
[0444] In some embodiments, when a quantity of third virtual objects is at least two, the client may determine the simulated enemy form to be transformed in the following manners: displaying an image selection interface, and displaying selectable images corresponding to at least two third virtual objects in the form selection interface; and using the selected image as an image in the simulated enemy form in response to a selection operation on one image in the at least two third virtual objects, that is, the selected image of the third virtual object. In this way, a user can manually select the transformation form of the companion object, which further improves operation experience of the user.
[0445] For example, the client receives the transformation instruction in response to a triggering operation on a transformation control, and generates and transmits a transformation request for the companion object to a server in response to the transformation instruction. The transformation request carries an object identifier of the companion object, and the server detects the third virtual object in a third region centered on the companion object in the virtual scene based on the transformation request, and returns a detection result to the client. When the detection result indicates that a plurality of third virtual objects are detected, a form selection interface is displayed in the interface of the virtual scene, and selectable forms corresponding to at least two third virtual objects are displayed in the form selection interface, such as a form of a third virtual object I, a form of a third virtual object 2, and a form of a third virtual object 3. The user may perform selection on the forms of the plurality of third virtual objects displayed in the form selection interface. Assuming that the user selects the form of the third virtual object 2 in the form selection interface, the client determines the form of the third virtual object 2 selected by the user as the simulated enemy form of the companion object to be transformed.
[0446] In some embodiments, before controlling the companion object to transform from the first form to the simulated enemy form, the client may predict the simulated enemy form in the following manners: obtaining scene data of a first region centered on the companion object in the virtual scene, the scene data including another virtual object located in the first region (such as another virtual object or a non-player character located in a different group from the first virtual object); and invoking a machine learning model to perform prediction processing based on the scene data, to obtain the simulated enemy form, The machine learning model is trained based on the scene data in a sample region and a labeled form (the form of the companion object). In this way, the form of the companion object that can maximally improve the interaction capability of the first virtual object or a group to which the first virtual object belongs is predicted by invoking the machine learning model, thereby improving the prediction accuracy, causing the greatest interference to the enemy, and further improving the interaction capability of the first virtual object or the group to which the first virtual object belongs.
[0447] The machine learning model may be a neural network model (for example, a convolutional neural network, a deep convolutional neural network, or a fully connected neural network), a decision tree model, a gradient lifting tree, a multi-layer perceptron, a support vector machine, and the like. The type of the machine learning model is not specifically limited in this embodiment of this disclosure.
[0448] Step 360: Control a companion object in a simulated enemy form to move in a virtual scene to scout the virtual scene.
[0449] In a case that the companion object is transformed to correspond to the image of the third virtual object, the user controls the companion object to move in the virtual scene to scout the virtual scene for objects. For example, a mobile control for the companion object in the simulated enemy form is displayed in the interface of the virtual scene. When the user triggers the mobile control, the client controls the companion object in the simulated enemy form to move in the virtual scene in response to a movement instruction triggered by the triggering operation, and scouts the virtual scene for objects during the movement. In practical application, a collider component (such as a collision box or a collision ball) is bound to a virtual object in the virtual scene. In the process of controlling the companion object in the simulated enemy form to scout the virtual scene for objects, a detection ray is emitted from the companion object in a direction of the companion object through a camera component on the companion object. When the detection ray intersects with the collider component bound to the virtual object, it is determined that the companion object discovers the virtual object through scouting. When the detection ray does not intersect with the collider component bound to the virtual object, it is determined that the companion object does not scout the virtual object. In addition, after the companion object is transformed to correspond to the image of the third virtual object, the companion object may also automatically move in the virtual scene without user control to scout the virtual scene for objects. In this way, the operation flow is simplified, and the scouting efficiency can be improved.
[0450] Step 380: Display location information of a third virtual object in a map of the corresponding virtual scene in response to the companion object discovering the third virtual object through scouting of the virtual scene.
[0451] The third virtual object may be a general name of the virtual object belonging to a different group from the first virtual object discovered through scouting of a target region centered on the companion object or a non-player character associated with the virtual object (that is, another object having a hostile relationship with the virtual object), which may include the foregoing third virtual object. When the third virtual object is discovered through scouting, the location information of the third virtual object is displayed in the map of the virtual scene, for viewing by the first virtual object or all virtual objects in a group to which the first virtual object belongs. After the location information of the third virtual object is learned, it is convenient for a client to control the corresponding virtual object to interact with the third virtual object by adopting the most suitable interaction strategy at present, which is beneficial to improving interaction capability of the first virtual object or the group to which the first virtual object belongs.
[0452] In some embodiments, the client may control the companion object in the simulated enemy form to move in the virtual scene to scout the virtual scene for objects in the following manners: controlling the companion object in the simulated enemy form to move in the virtual scene; controlling the companion object to release a marking wave around and displaying a second region affected by the marking wave during the movement of the companion object in the virtual scene; and controlling the companion object to scout the second region.
[0453] Correspondingly, in response to the companion object discovering the third virtual object through scouting of the virtual scene, the client may display the location information of the third virtual object in the map of the corresponding virtual scene in the following manners: prominently displaying the third virtual object and displaying the location information of the third virtual object in the map of the corresponding virtual scene when the third virtual object is discovered through scouting of the second region, for viewing by the first virtual object or another virtual object in the group to which the first virtual object belongs.
[0454] FIG. 38 is a schematic diagram of scouting according to an embodiment of this disclosure. In the process of controlling the movement of the companion object in the simulated enemy form, the companion object in the simulated enemy form is controlled to release a marking wave around, and a second region affected by the marking wave is displayed (the second region may be a circular region using the companion object as the center and a target distance as the radius, or may be a region in another shape, and the shape of the second region is not limited in this embodiment of this disclosure). In addition, the companion object may be controlled to scout the second region for objects, for example, a detection ray is emitted around from the companion object through a camera component on the companion object, and when the detection ray intersects with the collider component bound to the third virtual object, it is determined that the third virtual object is discovered through scouting of the second region. When the detection ray does not intersect with the collider component bound to the third virtual object, it is determined that the third virtual object is not discovered through scouting of the second region. When the third virtual object is discovered through scouting, a special effects element may be displayed in an associated region of the third virtual object. For example, an added special effects element is displayed on a periphery wrapped by the third virtual object. The special effects element may change the skin material and color of the third virtual object to prominently display the third virtual object. The location information of the third virtual object is displayed in the map of the virtual scene, for the first virtual object or all virtual objects in the group to which the first virtual object belongs to view the location information of the third virtual object. In this way, in a case that the location information of the third virtual object is obtained, it is beneficial for the first virtual object or all virtual objects in the group to which the first virtual object belongs to formulate an interaction strategy that can cause the greatest harm to the third virtual object, and perform corresponding interaction operations according to the interaction strategy, thereby improving the interaction capability of the first virtual object or another virtual object in the group to which the first virtual object belongs.
[0455] In some embodiments, the companion object is controlled to exit mimicry and return to the second form in response to the companion object after mimicry being attacked by the third virtual object; and the companion object in the second form is controlled to scout the virtual scene for objects.
[0456] In some embodiments, when the third virtual object is discovered through scouting of the second region, the client may further control the companion object in the simulated enemy form to lock the third virtual object; and the third virtual object at a target location is displayed in a see-through view in a case that the third virtual object moves in the virtual scene and moves to the target location blocked by an obstacle.
[0457] FIG. 39 is a schematic diagram of scouting according to an embodiment of this disclosure. After a companion object discovers a third virtual object through scouting and prominently displays, for example highlights, the third virtual object, if the third virtual object moves in a virtual scene, the companion object is controlled to lock the third virtual object, and the companion object is controlled to continuously release a marking wave to the third virtual object and always prominently display the third virtual object. If the third virtual object moves to a place blocked by an obstacle (such as a wall) in the virtual scene, the third virtual object blocked by the obstacle is displayed in a see-through view. That is, even if the third virtual object is blocked by an obstacle, the third virtual object is still highlighted, so that the third virtual object blocked by the obstacle is visible to the first virtual object or all virtual objects in the group to which the first virtual object belongs, and the location information of the third virtual object can be displayed in the map of the virtual scene, so that the third virtual object is exposed within a field of view of the first virtual object or all virtual objects in the group to which the first virtual object belongs. In this way, it is beneficial for the first virtual object or all virtual objects in the group to which the first virtual object belongs to formulate an interaction strategy that can cause the greatest harm to the third virtual object, and perform corresponding interaction operations according to the interaction strategy, thereby improving the interaction capability of the first virtual object or the group to which the first virtual object belongs.
[0458] In some embodiments, the client displays the location information of the third virtual object in the map of the corresponding virtual scene in response to the companion object discovering the third virtual object through scouting of the virtual scene and the companion object being attacked by the third virtual object. Herein, when the companion object discovers the third virtual object through scouting and the companion object is attacked by the third virtual object, the location information of the third virtual object may be immediately displayed in the map of the virtual scene, so that the first virtual object or another virtual object in the group to which the first virtual object belongs can view the location information of the third virtual object.
[0459] In some embodiments, the client may display the location information of the third virtual object in the map of the corresponding virtual scene in the following manners: obtaining an interaction parameter of each of the third virtual objects in a case that at least two third virtual objects exist, the interaction parameter including at least one of the following: an interaction character, an interaction preference, an interaction capability, and a distance from the first virtual object; and displaying the location information of each of the third virtual objects by using a display style corresponding to the interaction parameter in the map of the corresponding virtual scene.
[0460] Herein, when a plurality of third virtual objects are discovered through scouting, a threat degree of each of the third virtual objects to the first virtual object may be determined based on the interaction parameter of each of the third virtual objects, a display priority of each of the third virtual objects may be determined based on the threat degree, and each of the third virtual objects may be displayed differently based on the display priority. For example, a more hostile relationship between the interaction character of the third virtual object and the interaction character of the first virtual object, a stronger interaction capability, the interaction preference being something that the first virtual object is not good at and cannot cope with, a shorter distance from the first virtual object, or the like leads to a greater threat degree to the first virtual object and a higher corresponding display priority of the third virtual object. In this way, location information of a target quantity of third virtual objects with the display priority higher than a target priority may be selected for display, or the location information of each of the third virtual objects is displayed in a form of a higher display priority leading to a more prominent display style of the corresponding third virtual object. In this way, it is convenient for the first virtual object or the virtual object in the group to which the first virtual object belongs to select an appropriate third virtual object to attack, so as to improve the interaction capability.
[0461] In some embodiments, the client may control the companion object in the simulated enemy form to move in the virtual scene to scout the virtual scene for objects in the following manners: controlling the companion object in the simulated enemy form to move in the virtual scene; controlling the companion object to transform from the simulated enemy form to the second form in response to the companion object in the simulated enemy form being attacked by a fifth virtual object during the movement of the companion object in the simulated enemy form in the virtual scene; and controlling the companion object in the second form to scout the virtual scene for objects, for example, controlling the companion object in the second form to release the marking wave around, so as to scout the virtual scene for objects through the marking wave. Correspondingly, when the third virtual object is discovered through scouting of the virtual scene, the client may display the location information of the third virtual object in the map of the corresponding virtual scene in the following manners: prominently displaying the third virtual object and displaying the location information of the third virtual object in the map of the corresponding virtual scene when the third virtual object is discovered through scouting of the virtual scene.
[0462] In some embodiments, in a case that the companion object in the simulated enemy form scouts the third virtual object, the client may further receive a tracking instruction of the companion object in the simulated enemy form for the third virtual object when the third virtual object moves in the virtual scene. In response to the tracking instruction, the companion object in the simulated enemy form is controlled to track the third virtual object in a tracking direction indicated in the tracking instruction, and the location information of the third virtual object is updated and displayed in the map of the corresponding virtual scene.
[0463] Herein, after the companion object discovers the third virtual object through scouting and displays the location information of the third virtual object, if the third virtual object moves in the virtual scene, the client may control the companion object to track the third virtual object, that is, the companion object moves along with the movement of the third virtual object, and the location information of the third virtual object is updated and displayed in the map, so that the third virtual object is exposed, such as always exposed, within a field of view of the first virtual object or the virtual object in the group to which the first virtual object belongs. In this way, it is beneficial for the first virtual object or the virtual object in the group to which the first virtual object belongs to formulate an interaction strategy that can cause the greatest harm to the third virtual object, and perform a corresponding interaction operation according to the interaction strategy, thereby improving the interaction capability of the first virtual object or the group to which the first virtual object belongs.
[0464] In some embodiments, the client may determine that the third virtual object is discovered through scouting in the following manners: controlling the companion object in the simulated enemy form to release a pulse wave for penetrating the obstacle to the obstacle during the scouting of the virtual scene for objects by the companion object in the simulated enemy form when an obstacle is discovered through scouting of the virtual scene; and determining that the third virtual object is discovered through scouting of the virtual scene, and controlling the companion object in the simulated enemy form to scout and mark the third virtual object to see through the third virtual object when it is detected based on the pulse wave that the third virtual object is blocked by the obstacle.
[0465] A collider component (such as a collision box and a collision ball) is bound to the obstacle. In the process of controlling the companion object to scout the virtual scene, it may be first determined whether an obstacle is discovered through scouting of the virtual scene, for example, through a camera component on the companion object, and a detection ray is emitted from the companion object in a direction of the companion object. When the detection ray intersects with the collider component bound to the obstacle, it is determined that the companion object discovers the obstacle through scouting. In this case, it is further determined whether a third virtual object hides behind the obstacle, and when it is determined that the third virtual object hides behind the obstacle, the companion object is controlled to scout and mark the third virtual object and see through the third virtual object to prominently display the third virtual object. In this way, even if the third virtual object is blocked by an obstacle, the third virtual object is still highlighted in a see-through view, so that the third virtual object blocked by the obstacle is visible to the first virtual object or all virtual objects in the group to which the first virtual object belongs. In addition, the location information of the third virtual object may further be displayed in the map of the virtual scene, so that the third virtual object is always exposed within a field of view of the first virtual object or all virtual objects in the group to which the first virtual object belongs. Therefore, it is beneficial for the first virtual object or all virtual objects in the group to which the first virtual object belongs to formulate an interaction strategy that can cause the greatest harm to the third virtual object, and perform corresponding interaction operations according to the interaction strategy, thereby improving the interaction capability of the first virtual object or the group to which the first virtual object belongs, so as to improve the interaction efficiency.
[0466] In some embodiments, the client may further control the companion object in the simulated enemy form to perform material detection on the virtual scene in response to the first virtual object having a material detection skill. When a virtual material is detected in the virtual scene, indication information of the corresponding virtual material is displayed. The virtual material is configured for the first virtual object to pick up, and the picked virtual material is configured to improve the interaction capability of the first virtual object in the virtual scene.
[0467] The material detection skill is a skill used for material detection. When the first virtual object is equipped with the material detection skill or the companion object has the material detection skill, the client may control the companion object in the simulated enemy form to perform material detection in the virtual scene through the material detection skill. In practical application, a collider component (such as a collision box or a collision ball) is bound to the virtual material. In the process of controlling the companion object to perform material detection in the virtual scene, a detection ray is emitted from the companion object in a direction of the companion object through a camera component on the companion object. When the detection ray intersects with the collider component bound to the virtual material, it is determined that the companion object discovers the virtual material through scouting. When the detection ray does not intersect with the collider component bound to the virtual material, it is determined that the companion object does not scout the virtual material.
[0468] The virtual material that can be detected through the material detection skill includes but is not limited to: a gold coin, a building material (such as ore), food, weapons and equipment, and equipment or character upgrading materials. When a companion object detects a virtual material in a virtual scene, the indication information of the corresponding virtual material is displayed. Based on the indication information of the virtual material, the client may control the first virtual object or another virtual object in the group to which the first virtual object belongs to pick up or exploit the detected virtual material, and may control the first virtual object or the another virtual object in the group to which the first virtual object belongs to upgrade equipment thereof or build a virtual building based on the picked or exploited virtual material. In this way, the interaction capability of the first virtual object or the another virtual object in the group to which the first virtual object belongs in the virtual scene is improved, such as attack capability or defense capability.
[0469] In some embodiments, the client may display the indication information of the corresponding virtual material in the following manners when detecting the virtual material in the virtual scene: displaying category indication information of the virtual material at a location of the virtual material in a second region and displaying location indication information of the virtual material in a map of the corresponding virtual scene when the virtual material is detected in the second region centered on the companion object in the virtual scene; and using at least one of the category indication information and the location indication information as the indication information of the corresponding virtual material.
[0470] FIG. 40 is a schematic diagram of detection according to an embodiment of this disclosure. When a companion object in a simulated enemy form detects a virtual material in a second region centered on the companion object in a virtual scene, category indication information of the virtual material is displayed at a location of the virtual material, such as an equipment virtual material, a construction virtual material, and a defense virtual material, and location information of the virtual material is displayed in a map of the virtual scene, such as a distance and a direction of the virtual material relative to the first virtual object or another virtual object in the group to which the first virtual object belongs. Based on the indication information of the virtual material, the client may control the first virtual object or the another virtual object in the group to which the first virtual object belongs to pick up the virtual material, so as to improve the interaction capability.
[0471] In some embodiments, the client may display the indication information of the corresponding virtual material in the following manners: displaying indication information of a first quantity of virtual materials in the at least two virtual materials by using a first display style, and displaying indication information of a second quantity of virtual materials in the at least two virtual materials by using a second display style when a quantity of virtual materials is at least two. The first display style is different from the second display style. The first display style indicates that the first quantity of virtual materials are within a field of view of the first virtual object, and the second display style indicates that the second quantity of virtual materials are outside the field of view of the first virtual object.
[0472] FIG. 41 is a schematic diagram of detection according to an embodiment of this disclosure. When a companion object in a first form detects a plurality of virtual materials in a virtual scene, different display styles (such as different colors and different brightness) may be used to display the indication information of the virtual materials within and outside the field of view depending on whether the virtual materials are within the field of view of the first virtual object. It may be understood that with the change of the field of view of the first virtual object, the display style of each of the virtual materials may vary with the change of the field of view of the first virtual object. In this way, different display styles are used to display the indication information of the virtual materials within and outside the field of view of the first virtual object, which can give a player a significant prompt, which is beneficial to controlling the first virtual object to choose and pick up suitable virtual materials, so as to improve the interaction capability.
[0473] In some embodiments, the client may display the indication information of the corresponding virtual material in the following manners: displaying indication information of a virtual material of a target type in the at least two virtual materials by using a third display style and displaying indication information of a virtual material of another type except the target type in the at least two virtual materials by using a fourth display style when virtual materials of at least two types exist. The third display style is different from the fourth display style. The third display style represents a picking priority of the virtual material of the target type, which is higher than a picking priority of the virtual material of the another type.
[0474] Herein, when a plurality of types of virtual props are detected, based on different picking priorities, different display styles are adopted to display the indication information of the corresponding type of virtual material, especially prominently display the indication information of the virtual material of the type with the highest picking priority, so that the virtual object can be controlled to pick up the prominently displayed virtual prop of the target type. In this way, the virtual material of the target type most needed by the first virtual object is selected from a plurality of detected virtual materials, which is beneficial to improving the interaction capability of the first virtual object.
[0475] During actual implementation, the client may determine the virtual material of the target type in the following manners: obtaining a matching degree of the virtual material of each type and usage preference based on usage preference of the first virtual object, and selecting the virtual material corresponding to the highest matching degree as indication information of the virtual material of the target type for prominent display. For example, the types of detected virtual materials include: an equipment virtual material, a construction virtual material, and a defense virtual material. The usage preference of the first virtual object is predicted through a neural network model based on a character of the first virtual object in the virtual scene or the virtual material of a historical use type of the first virtual object, that is, preference and proficiency of the first virtual object for various types of virtual materials, and the like. A matching degree of the equipment virtual material and usage preference, a matching degree of the construction virtual material and usage preference, and a matching degree of the defense virtual material and usage preference are determined respectively based on the usage preference of the first virtual object, from which the defense virtual material with the highest matching degree is selected, and the indication information of the screened defense virtual material is prominently displayed. In addition, the virtual material of the target type that best matches the first virtual object may further be screened out from a plurality of types of virtual materials to prominently display the indication information of the virtual material based on a parameter of at least one of consumption degrees and picking difficulty coefficients of various virtual materials and distances from the first virtual object. In this way, the most suitable virtual material of the target type that the first virtual object likes best and most needs are screened out from the detected virtual materials, which is beneficial to improving the interaction capability of the first virtual object.
[0476] FIG. 42 is a schematic flowchart of a method for controlling a companion object in a virtual scene according to an embodiment of this disclosure. The method includes the following steps.
[0477] Step 401: A first client generates and transmits a summoning request for a companion object to a server in response to a summoning instruction.
[0478] Herein, a first instruction is the summoning instruction, and a summoning control configured to summon the companion object may be displayed in a game interface. When a user triggers the summoning control, the first client receives the summoning instruction in response to a triggering operation on the summoning control, and the generated summoning request carries an object identifier of a to-be-summoned companion object in response to the summoning instruction.
[0479] Step 402: The server determines, based on the summoning request, a relevant parameter of the companion object to be summoned by the summoning request, and returns the relevant parameter to the first client.
[0480] Step 403: The first client performs picture rendering based on relevant parameter, displays the summoned companion object in an initial form, and shows a process that the companion object in the initial form is transformed into the companion object in a first form and the companion object in the first form is adsorbed onto a first virtual object.
[0481] Herein, the first client performs picture rendering based on the relevant parameter, and displays the rendered summoning picture, for example, first displays a summoned wild monster of an animation image, and then displays an animation in which the wild monster of the animation image turns into fragments and the fragments are adsorbed onto an arm of the first virtual object (a player) (that is, the fragments become a part of a player model).
[0482] After the companion object in the initial form is summoned, and before the companion object is changed from the initial form to the first form, a client may also control the companion object in the initial form to scout a virtual scene (such as a target region centered on the companion object), and when a target object (such as a virtual object or a virtual material) is discovered through scouting, indication information of the discovered target object through scouting may be displayed.
[0483] Step 404: The first client controls the companion object in the first form to scout a virtual scene, and displays indication information corresponding to a target object when the target object is discovered through scouting.
[0484] The target object includes at least one of a third virtual object and the virtual material. When the third virtual object (an enemy) is discovered through scouting, location information of the third virtual object is displayed in a game map, such as a distance and a direction of the third virtual object relative to the first virtual object. When the first virtual object is equipped with a material detection skill, the client may control the companion object in the first form to perform material detection on the virtual scene through the material detection skill, and when the virtual material (such as a gold coin, a building material (such as ores), a food material, weapons and equipment, equipment or character upgrading materials) is detected, the indication information of the virtual material (such as information indicating the type of the virtual material and the location of the virtual material) is displayed.
[0485] In practical application, when a quantity of detected target objects is greater than or equal to 2, different display styles (such as different colors and different brightness) may be used to display each of the target objects based on characteristics of the target objects. For example, when the target objects are third virtual objects, different display styles may be used to display each of the third virtual objects based on different distances between each of the third virtual objects and the first virtual object. When the target objects are virtual materials, different display styles (such as different colors and different brightness) are used to display indication information of the virtual materials within and outside the field of view of the first virtual object.
[0486] Step 405: The first client generates and transmits a transformation request for the companion object to the server in response to a second instruction.
[0487] The second instruction is a mimicry instruction or a transformation instruction, which may be triggered by triggering a transformation control. For example, the client may display the transformation control for the companion object in an interface of the virtual scene, receive the transformation instruction in response to a triggering operation for the transformation control, and generate and transmit a transformation request for the companion object to the server in response to the transformation instruction. The transformation request carries information such as an object identifier of the companion object and a current form of the companion object.
[0488] Step 406: The server determines and returns, based on the transformation request, transformation information of the companion object requested to transform by the transformation request to the first client.
[0489] The transformation information may be related information of the third virtual object (including a non-player character or another virtual object in a different group from the first virtual object) in a region centered on the companion object.
[0490] Step 407: The first client performs picture rendering based on the transformation information, and displays an animation of the companion object transformed from the first form to a simulated enemy form.
[0491] For example, an animation that the fragments adsorbed onto the arm of the first virtual object are transformed into the wild monster of the animation image (the wild monster is detached from the arm of the first virtual object and moves to another location) is first displayed, and then an animation that the wild monster of the animation image is transformed into a companion object consistent with the image of the third virtual object is displayed.
[0492] Step 408: The first client controls the companion object in the simulated enemy form to scout the virtual scene for objects in response to a scouting instruction, and prominently displays a third virtual object and displays location information of the third virtual object in a map of the corresponding virtual scene when the third virtual object is discovered through scouting of the virtual scene.
[0493] For example, after the companion object is transformed from the first form into a companion object in the simulated enemy form, the client may control the companion object in the simulated enemy form to move in the virtual scene and scout the virtual scene for objects during the movement, such as controlling the companion object in the simulated enemy form to release marking waves around, so as to scout the virtual scene for objects through the marking waves. When the third virtual object is discovered through scouting, a special effects element may be displayed in an associated region of the third virtual object. For example, an added special effects element is displayed on a periphery wrapped by the third virtual object. The special effects element may change the skin material and color of the third virtual object to prominently display the third virtual object. The location information of the third virtual object is displayed in the map of the virtual scene, for viewing by the first virtual object or all virtual objects in the group to which the first virtual object belongs. After the location information of the third virtual object is learned, it is convenient for the client to control the corresponding virtual object to interact with the third virtual object by adopting the most suitable interaction strategy at present, which is beneficial to improving the interaction capability of the first virtual object or the group to which the first virtual object belongs. The third virtual object is a general name of the virtual object belonging to a different group from the first virtual object discovered through scouting of a target region centered on the companion object or a non-player character associated with the virtual object, which may include the foregoing third virtual object.
[0494] In a case that the location information of the third virtual object is obtained, it is beneficial for the first virtual object or another virtual object in the group to which the first virtual object belongs to formulate an interaction strategy that can cause the greatest harm to the third virtual object, and perform a corresponding interaction operation according to the interaction strategy, thereby improving the interaction capability of the first virtual object or another virtual object in the group to which the first virtual object belongs.
[0495] Step 409: The first client displays the third virtual object attacking the companion object in the simulated enemy form.
[0496] A second client receives an attack instruction from another player user, the attack instruction being used for controlling the third virtual object to attack the companion object in the simulated enemy form. Through a synchronization mechanism of the server, the attack instruction is synchronized to the first client. The first client receives the attack instruction, and displays the third virtual object attacking the companion object based on the attack instruction.
[0497] Step 410: The first client controls the companion object to transform from the simulated enemy form to a second form in response to the companion object in the simulated enemy form being hit by the third virtual object.
[0498] Herein, after the companion object is transformed into the second form, the virtual scene may still be scouted for objects or resources, and when another virtual object or virtual material is discovered through scouting of the virtual scene, location information of the virtual object or virtual material that is discovered through scouting is displayed in the map of the corresponding virtual scene for the player to view.
[0499] Through the foregoing manners, through transformation of the companion object associated with the first virtual object, the companion object is transformed from the first form into the simulated enemy form consistent with the image of the third virtual object having a hostile relationship with the first virtual object, and the companion object in the simulated enemy form is controlled to scout the virtual scene for objects. Since the form of the companion object is consistent with the image of the third virtual object during the scouting for objects, the companion object is not easy to be discovered by the enemy, may even reach the vicinity of the enemy for scouting, and can more easily obtain effective information of the enemy, which improves the scouting ability of the companion object, and can improve the interaction capability of the first virtual object through the improvement of the scouting ability of the companion object.
[0500] In addition, by controlling the companion objects associated with the first virtual object to scout the virtual scene for material detection or objects, when the virtual material is detected, the indication information of the corresponding virtual material is displayed. The first virtual object may more easily view and pick up the detected virtual material based on the indication information, so as to improve the interaction capability of the first virtual object in the virtual scene based on the picked-up virtual material, for example, upgrading equipment or building defensive buildings by using the picked-up virtual material, so as to enhance the attack capability or defense capability. When enemy information such as the third virtual object (which may include the third virtual object) is discovered through scouting, the location information of the third virtual scene is further displayed in the map for the first virtual object or another virtual object in the group to which the first virtual object belongs to view. In a case that the location information of the third virtual object is learned, it is beneficial for the first virtual object or another virtual object in the group to which the first virtual object belongs to formulate an interaction strategy that can cause the greatest harm to the enemy based on a location of the enemy, and perform a corresponding interaction operation according to the interaction strategy, thereby improving the interaction capability (such as attack capability or defense capability) of the first virtual object or another virtual object in the group to which the first virtual object belongs. In a case that the interaction capability of the first virtual object or another virtual object in the group to which the first virtual object belongs is improved, the client can reduce a quantity of interactions in interactive operations to be performed for achieving an interactive purpose (such as obtaining effective information of the enemy or defeating the enemy), thereby improving the efficiency of human-computer interaction and reducing occupation of hardware processing resources.Companion Object of a Shield Type:
[0501] FIG. 43 is an interface diagram of using a virtual shield monster according to an exemplary embodiment of this disclosure.
[0502] In a first interface 10, a first virtual object 101 summons a virtual shield monster 11 through a virtual chip. For example, in a case that the first virtual object 101 carries a virtual chip and a virtual wild monster in a weak state appears, the virtual shield monster 11 is summoned by consuming an attribute value (such as an energy value). The virtual shield monster 11 being attached to an arm of the first virtual object 101 is displayed. In this case, the virtual shield monster 11 is in a first state.
[0503] When the first virtual object 101 does not perform an aiming action, virtual energy is accumulated. The virtual energy is displayed as a first energy value 15a at a first time stamp. Through accumulation of the virtual energy, the virtual energy is displayed as a second energy value 15b at a second time stamp. At the second time stamp, the virtual energy exceeds an energy threshold, and the virtual shield monster 11 displays a light-emitting effect 20a.
[0504] In a second interface 20, in a case that the virtual energy is accumulated to a second energy value, the first virtual object 101 performs the aiming action, the virtual shield monster 11 deploying the virtual shield 12 in front of the first virtual object 101 is displayed, and a relative position between the virtual shield 12 and the first virtual object 101 remains unchanged, that is, the virtual shield 12 moves with the movement of the first virtual object 101. Exemplarily, a third virtual object 114 is further displayed in the second interface 20. A virtual area of the virtual shield 12 is determined based on the accumulated virtual energy.
[0505] In a third interface 30, the first virtual object 101 performing a virtual attack activity on the third virtual object 114 is displayed, and the virtual area of the virtual shield 12 is reduced. The virtual shield monster 11 is attached to the arm of the first virtual object 101. The first virtual object 101 performs the virtual attack activity and consumes virtual energy, and the reduced virtual area of the virtual shield 12 is determined based on the consumed virtual energy.
[0506] The virtual area of the virtual shield 12 is reduced based on an activity parameter of the virtual attack activity. The activity parameter includes, but is not limited to, at least one of types, durations, a number of times, activity effects, and a quantity of virtual attack activities acting on the third virtual object.
[0507] In a fourth interface 40, the virtual shield monster is switched from the first state to a second state. An animation 40a in which the virtual shield monster is separated from the arm of the first virtual object 101 is displayed.
[0508] In a fifth interface 50, the virtual shield monster 11 is in the second state, showing that the virtual shield monster 11 leaves the arm of the first virtual object 101. In a case that the virtual shield monster 11 is loaded with a virtual enhancement prop, the virtual shield monster 11 deploys the first virtual shield 30a at a target location 13. The first virtual shield 30a displays a light-emitting effect. The first virtual shield 30a is a double-sided shield. When the first virtual shield is subject to a virtual attack, the virtual shield monster 11 is subject to damage twice the virtual attack.
[0509] In a sixth interface 60, the virtual shield monster 11 is in the second state, showing that the virtual shield monster 11 leaves the arm of the first virtual object 101. In a case that the virtual shield monster 11 is not loaded with a virtual enhancement prop, the virtual shield monster 11 deploys a second virtual shield 30b at the target location 13. The second virtual shield 30b is a double-sided shield.
[0510] FIG. 44 is a flowchart of a method for using a virtual shield according to an embodiment of this disclosure. The method applicable to a terminal is used as an example for description. The method includes the following steps.
[0511] Step 510: Display a first virtual character in a virtual scene.
[0512] Exemplarily, the first virtual character is a virtual character controlled by a user account logged in by the terminal, and the virtual scene is configured to provide virtual tactical competition among different virtual characters.
[0513] Exemplarily, displaying the first virtual character includes directly displaying the first virtual character or displaying a perspective picture of the first virtual character. The perspective picture of the first virtual character is a scene picture obtained by observing the virtual scene from the perspective of the first virtual character. In an example, in this embodiment of this disclosure, a virtual character is observed through a camera model in the virtual scene.
[0514] Exemplarily, the first virtual character having a virtual shield prop represents that the first virtual character has a capability of controlling the virtual shield prop. The virtual shield prop includes but is not limited to at least one of the following: a virtual shield projectile, a virtual shield skill, a virtual shield ultimate skill, and a companion object.
[0515] Step 520: Display a virtual shield in a specified direction where the first virtual character is used as a reference location in response to a first use operation on a companion object and the companion object being in a first state.
[0516] In this embodiment, the virtual shield prop includes a companion object of the first virtual character, and a binding relationship exists between the companion object and the first virtual character. Exemplarily, the first use operation is a shoulder aiming operation. That is to say, the first use operation is used for controlling usage of a virtual pet character and controlling the first virtual character to perform the shoulder aiming operation.
[0517] Exemplarily, a display mode of the companion object in the first state is different from that of the companion object in a second state. For example, in a case that the companion object is in the first state, the companion object being attached to an arm part of the first virtual character is displayed, and in a case that the companion object is in the second state, the companion object being separated from the first virtual character is displayed.
[0518] In some embodiments, the companion object in the first form is controlled to increase a shield energy storage capacity for the first virtual object not in an aiming state.
[0519] Step 530: Display the virtual shield at a target location determined through a second use operation on a virtual shield prop in response to the second use operation on the companion object and the companion object being in a second state.
[0520] In this embodiment, the companion object may be switched between the first state and the second state through a switching operation, or the companion object may be switched from the first state to the second state through the second use operation on the companion object, and the virtual shield is displayed at the target location.
[0521] Exemplarily, the first use operation and the second use operation on the companion object may be the same operation or different operations. Specifically, the implementation of the use operation on the companion object includes but is not limited to at least one of the following: clicking / tapping, sliding, and rotating, for example, tapping a touchscreen or a button, sliding on the touchscreen or a joystick, and rotating a terminal or the joystick.
[0522] In this embodiment, step 540 is performed after step 530. It may be understood by a person skilled in the art that in an implementation, the virtual shield changing from the first virtual form to the second virtual form is displayed in response to the first virtual character performing a target activity on the third virtual object only in a case that the companion object is in the first state. That is to say, in an implementation, step 540 is not performed after step 530. Exemplarily, in the foregoing implementation, a change in a virtual form of the virtual shield is displayed in response to the first virtual character performing the target activity in a case that the companion object is in the first state. The virtual form of the virtual shield does not change in a case that the companion object is in the second state.
[0523] In some embodiments, the companion object in the second state is controlled to release a first virtual shield in an aiming direction where the first virtual object is used as a reference location in response to the first virtual object being in an aiming state. The companion object in the second state is controlled to release the first virtual shield in a changed aiming direction in response to the aiming direction of the first virtual object being changed.
[0524] In an implementation of this embodiment, based on this embodiment, the method further includes displaying the virtual shield moving towards an attack direction of a virtual attack in response to the virtual shield blocking the virtual attack.
[0525] Exemplarily, the attack direction includes a direction that a center point location of the virtual shield is directed at a source location of the virtual attack. For example, the virtual shield moves in a direction close to a virtual attack source.
[0526] Exemplarily, the attack direction includes a direction that a center point location of the virtual shield is directed at a direction of a location at which the virtual shield blocks the virtual attack. For example, the virtual shield moves in the direction of blocking the virtual attack.
[0527] Based on the above, according to the method provided in this embodiment, the virtual shield prop is implemented as the companion object of the first virtual character, and the corresponding virtual shield is displayed based on the state of the companion object, thereby enriching the human-computer interaction mode of using the virtual shield prop. The virtual form of the virtual shield is changed in a case that the first virtual character performs the target activity on the third virtual object, and the virtual form of the virtual shield can also be dynamically changed based on the target activity in a case that the virtual shield is not actively controlled, which enriches the human-computer interaction mode of the virtual shield.
[0528] Step 540: Display the virtual shield changing from a first shield form to a second shield form in response to the first virtual character performing a target activity on a third virtual object.
[0529] Exemplarily, the target activity is a virtual activity directed to the third virtual object that the first virtual character actively performs. The third virtual object is a virtual character in the virtual scene, and the third virtual object is different from the first virtual character. The third virtual object and the first virtual character may be in the same virtual camp or in different virtual camps. No limitation is imposed on a relationship between the first virtual character and the third virtual object in this embodiment.
[0530] The first shield form of the virtual shield is an initial form of the virtual shield, and the second shield form is different from the first shield form. The first shield form is also referred to as the first shield form, and the second shield form is also referred to as the second shield form.
[0531] Based on the above, according to the method provided in this embodiment, the virtual form of the virtual shield is changed in a case that the first virtual character performs the target activity on the third virtual object, and a connection is established between the virtual form of the virtual shield and the target activity performed on the first virtual character, so that the virtual form of the virtual shield can be dynamically changed following the target activity performed by the first virtual character. A new human-computer interaction mode is provided for the virtual shield. The virtual form of the virtual shield can also be dynamically changed based on the target activity in a case that the virtual shield is not actively controlled, which enriches the human-computer interaction mode of the virtual shield.
[0532] Next, the target activity is to be described through two embodiments, specifically as follows.
[0533] Implementation I: The target activity includes a virtual attack activity.
[0534] Implementation II: The target activity includes a virtual rescue activity.
[0535] Then the activities are respectively described below.
[0536] Implementation I: An embodiment shown in FIG. 45 describes the implementation of the target activities including the virtual attack activity.
[0537] FIG. 45 is a flowchart of a method for using a virtual shield according to an embodiment of this disclosure. The method applicable to a terminal is used as an example for description. That is to say, in the embodiment shown in FIG. 44, step 540 may be implemented as step 542.
[0538] Step 542: Display a virtual shield changing from a first shield form to a second shield form in response to a first virtual character performing a virtual attack activity on a third virtual object.
[0539] Exemplarily, a protecting effect of the first shield form is better than that of the second shield form, and the first virtual character and the third virtual object belong to different camps.
[0540] Exemplarily, the virtual attack activity is used for describing a virtual activity that causes damage to the virtual object. Exemplarily, the virtual attack activity damages at least one of a virtual health point, a virtual protection value, and a virtual energy value of the virtual object.
[0541] Further, the damage caused by the virtual attack activity includes direct damage and indirect damage. For example, the virtual attack activity includes using at least one of a virtual launcher, a virtual projectile, and a virtual ultimate skill prop to act on the third virtual object, which directly produces the damage; the virtual attack activity includes arranging a virtual contact prop or a virtual delay prop to act on the third virtual object when a triggering condition is satisfied, which directly produces the damage; and the virtual attack activity includes using a virtual skill to act on the third virtual object, and reducing the virtual ability of the second virtual object by reducing at least one of a movement speed, attack capability, and operability, so that the second virtual object is at a poor location, which indirectly produces the damage.
[0542] In some embodiments, the reduced virtual energy of the virtual shield is displayed based on the virtual energy consumed by the virtual attack activity in response to the first virtual character performing a virtual attack activity on the third virtual object. After the virtual energy is reduced, the virtual shield changing from the first shield form to the second shield form is displayed, and the second shield form is determined based on the reduced virtual energy.
[0543] Exemplarily, when the first virtual character performs a virtual attack activity on the third virtual object, the virtual energy of the virtual shield is consumed. The consumed virtual energy is related to at least one of types, a duration, a number of times, activity effects, and a quantity of, including, but not limited to, virtual attack activities acting on the third virtual object. This embodiment does not impose any limitation on the relationship between the consumed virtual energy and the virtual attack activity.
[0544] Exemplarily, the virtual energy may be displayed directly through a value of virtual energy or an energy bar corresponding to the virtual energy, or may be displayed indirectly in a manner of displaying an animation when the energy threshold is satisfied. This embodiment does not impose any limitation on the display mode of virtual energy.
[0545] Exemplarily, the virtual form of the virtual shield is positively correlated with the virtual energy of the virtual shield. Based on the reduced virtual energy, the protecting effect of the second shield form is reduced compared with that of the first shield form.
[0546] FIG. 46 is an interface diagram of using a virtual shield according to an exemplary embodiment of this disclosure. In the interface diagram of using the virtual shield, a first virtual character 14, a third virtual object 114, and a virtual shield 12 are displayed. In response to the first virtual character 14 performing a virtual attack activity on the third virtual object 114, as shown in FIG. 47, a virtual area of the virtual shield 12 is reduced.
[0547] Based on the above, according to the method provided in this embodiment, in a case that the first virtual character performs the virtual attack activity on the third virtual object, the virtual form of the virtual shield is changed to reduce the protecting effect of the virtual shield. A connection is established between the virtual form of the virtual shield and the target activity performed by the first virtual character. In this way, virtual attack of the first virtual character in the virtual scene is limited when being protected by the virtual shield, the intensity of virtual tactical competition is intensified, and a game time of the virtual tactical competition is shortened, and the virtual form of the virtual shield is dynamically changed following the target activity performed by the first virtual character. A new human-computer interaction mode is provided for the virtual shield. The virtual form of the virtual shield can also be dynamically changed based on the target activity in a case that the virtual shield is not actively controlled, which enriches the human-computer interaction mode of the virtual shield.
[0548] Implementation II: An embodiment shown in FIG. 48 describes the implementation of the target activities including the virtual rescue activity.
[0549] FIG. 48 is a flowchart of a method for using a virtual shield according to an embodiment of this disclosure. The method applicable to a terminal is used as an example for description. That is to say, in the embodiment shown in FIG. 44, step 540 may be implemented as step 544.
[0550] Step 544: Display a virtual shield changing from a first shield form to a second shield form in response to a first virtual character performing a virtual rescue activity on a third virtual object.
[0551] Exemplarily, a protecting effect of the first shield form is inferior to that of the second shield form, and the first virtual character and the third virtual object belong to the same camp.
[0552] Exemplarily, the virtual rescue activity is used for describing a virtual activity that has a buff on the virtual object. Exemplarily, the virtual rescue activity gains at least one of a virtual health point, a virtual protection value, and a virtual energy value of the virtual object.
[0553] Further, the buff caused by the virtual rescue activity includes a direct buff and an indirect buff. For example, the virtual rescue activity includes using a virtual prop to act on the third virtual object, which directly produces the buff; the virtual rescue activity includes adjusting a location of the virtual shield to protect the third virtual object, which directly produces the buff; and the virtual rescue activity includes using a virtual skill to act on the third virtual object, and improving the virtual ability of the second virtual object by at least one of increasing a movement speed, improving attacking ability, and improving operability, so that the second virtual object is at a favorable location, which indirectly produces the buff.
[0554] In some embodiments, the increased virtual energy of the virtual shield is displayed based on the virtual energy recovered by the virtual rescue activity in response to the first virtual character performing the virtual rescue activity on the third virtual object. After virtual energy is increased, the virtual shield changing from the first shield form to the second shield form is displayed, and the second shield form is determined based on the increased virtual energy.
[0555] Exemplarily, when the first virtual character performs the virtual rescue activity on the third virtual object, the virtual energy of the virtual shield is recovered. The recovered virtual energy is related to at least one of types, a duration, a number of times, activity effects, and a quantity of, including, but not limited to, virtual rescue activities acting on the third virtual object. This embodiment does not impose any limitation on the relationship between the recovered virtual energy and the virtual rescue activity. Exemplarily, the virtual energy may be displayed directly or indirectly. This embodiment does not impose any limitation on the display mode of virtual energy.
[0556] Exemplarily, the virtual form of the virtual shield is positively correlated with the virtual energy of the virtual shield. Based on the increased virtual energy, the protecting effect of the second shield form is improved compared with that of the first shield form.
[0557] Based on the above, according to the method provided in this embodiment, in a case that the first virtual character performs the virtual rescue activity on the third virtual object, the virtual form of the virtual shield is changed to improve the protecting effect of the virtual shield. A connection is established between the virtual form of the virtual shield and the target activity performed by the first virtual character. A virtual rescue of the first virtual character in the virtual scene is facilitated when being protected by the virtual shield. The intensity of virtual tactical competition is intensified, and a game time of the virtual tactical competition is shortened. The virtual form of the virtual shield is dynamically changed following the target activity performed by the first virtual character. A new human-computer interaction mode is provided for the virtual shield. The virtual form of the virtual shield can also be dynamically changed based on the target activity in a case that the virtual shield is not actively controlled, which enriches the human-computer interaction mode of the virtual shield.
[0558] Next, the virtual form of the virtual shield is described.
[0559] Exemplarily, the virtual form of the virtual shield includes but is not limited to at least one of the following:
[0560] Virtual shape: It is used for describing an outline shape of the virtual shield.
[0561] Exemplarily, the virtual shape includes but is not limited to at least one of rectangle, triangle, circle, ellipse, sphere, and hemisphere.
[0562] Virtual area: It is used for describing an area of the virtual shield.
[0563] Blocking type for blocking a virtual attack: It is used for describing the protecting effect of the virtual shield from the perspective of a virtual attack type that can be blocked.
[0564] Exemplarily, the types of blocking virtual attacks include but are not limited to at least one of a virtual projectile attack, a virtual launcher attack, a virtual skill attack, a physical attribute attack, and a magical attribute attack.
[0565] Blocking probability for blocking a virtual attack: It is used for describing the protecting effect of the virtual shield from the perspective of a success probability that the virtual shield blocks the virtual attack.
[0566] For example, the virtual shield has a probability of 90% of blocking a virtual attack, and the virtual shield can block 85% of virtual damage from the virtual attack.
[0567] Blocking time interval for blocking the virtual attack: It is used for describing the protecting effect of the virtual shield from the perspective of a time interval at which the virtual shield blocks the virtual attack. For example, one virtual attack can be blocked per second.
[0568] Exemplarily, in the embodiment shown in FIG. 45, the protecting effect of the first shield form is better than that of the second shield form, including but not limited to at least one of the following:
[0569] a first virtual area corresponding to the first shield form is greater than a second virtual area corresponding to the second shield form;
[0570] a first blocking type corresponding to the first shield form is more than a second blocking type corresponding to the second shield form;
[0571] a first blocking probability corresponding to the first shield form is greater than a second blocking probability corresponding to the second shield form; and
[0572] a first blocking time interval corresponding to the first shield form is greater than a second blocking time interval corresponding to the second shield form.
[0573] It may be understood by a person skilled in the art that the foregoing description is only an exemplary description, and the foregoing descriptions may be superimposed and split to describe the protecting effects of the first shield form and the second shield form. In the embodiment shown in FIG. 48, the protecting effect of the first shield form is inferior to that of the second shield form, which is similar to the foregoing description.
[0574] Next, the observation of the virtual character through a camera model in the embodiment shown in FIG. 44 is to be described in detail.
[0575] In an example, the camera model automatically follows the virtual character in the virtual scene. That is, when a location of the virtual character in the virtual scene changes, the camera model changes along with the location of the virtual character in the virtual scene, and the camera model is always within a preset distance range of the virtual character in the virtual scene. In an example, during automatic following, relative locations of the camera model and the virtual character do not change.
[0576] The camera model is a three-dimensional model around the virtual character in the virtual scene. When a first-person perspective is adopted, the camera model is located near or at a head of the virtual character. When a third-person perspective is adopted, the camera model may be located behind the virtual character and bound to the virtual character, or may be located at any location at a preset distance from the virtual character, and the virtual character in the virtual scene may be observed from different angles through the camera model. In an example, when the third-person perspective is an over-the-shoulder perspective of a first person, the camera model is located behind the virtual character (such as a head and shoulders of the virtual character). In an example, in addition to the first-person perspective and the third-person perspective, the perspective further includes another perspective, such as an overhead perspective. When the overhead perspective is adopted, the camera model may be located above the head of the virtual character, and the overhead perspective is a perspective for observing a virtual scene from the air. In an example, the camera model is not actually displayed in the virtual scene, that is, the camera model is not displayed in the virtual scene displayed in the user interface.
[0577] The camera model being located at any location at a preset distance from the virtual character is used as an example for description. In an example, a virtual character corresponds to a camera model, and the camera model can rotate around the virtual character as a rotation center. For example, the camera model is rotated by using any point of the virtual character as the rotation center. During the rotation, the camera model not only rotates in angle, but also deviates in displacement, and a distance between the camera model and the rotation center remains unchanged during the rotation. That is, the camera model is rotated on a surface of a sphere with the rotation center as the spherical center. Any point of the virtual character may be the head or trunk of the virtual character or any point around the virtual character, which is not limited in this embodiment of this disclosure. In an example, when the camera model observes the virtual character, the center of the perspective of the camera model is directed at a direction in which the point on the spherical surface where the camera model is located is directed at the center of the sphere.
[0578] In an example, the camera model may further observe the virtual character in different directions of the virtual character at preset angles.
[0579] FIG. 49 is a flowchart of a method for using a virtual shield according to an embodiment of this disclosure. The method applicable to a terminal is used as an example for description. That is to say, based on the embodiment shown in FIG. 44, step 511 is further included, and step 520 may be implemented as step 522.
[0580] Step 511: Accumulate virtual energy of the virtual shield in a case that the virtual shield is not displayed.
[0581] Exemplarily, not displaying the virtual shield may include not performing a use operation of the virtual shield prop, or may include exiting the use operation of the virtual shield prop after performing the use operation of the virtual shield prop. This embodiment does not impose any limitation on the implementation of not displaying the virtual shield. It may be understood by a person skilled in the art that step 511 in this embodiment may be performed before, after, or simultaneously with step 522 or step 530 in this embodiment, and only a case that step 511 is performed before step 522 is used as an example for description in this embodiment.
[0582] Exemplarily, the virtual energy may be displayed directly through a value of virtual energy or an energy bar corresponding to the virtual energy, or may be displayed indirectly in a manner of displaying an animation when the energy threshold is satisfied. This embodiment does not impose any limitation on the display mode of virtual energy.
[0583] FIG. 50 is an interface diagram of using a virtual shield according to an exemplary embodiment of this disclosure. A first virtual character 14 is displayed in the interface diagram of using the virtual shield. In a case that the accumulated virtual energy of the virtual shield reaches an energy threshold, a light-emitting effect 20a is displayed on an arm of the first virtual character 14. In the interface diagram of the virtual shield, the virtual energy of the virtual shield being first virtual energy 15a is displayed through an energy bar. In a case that the virtual shield is not displayed, the virtual energy is accumulated from the first virtual energy 15a to second virtual energy 15b.
[0584] Step 522: Display a virtual shield in a first shield form in a specified direction where a first virtual character is used as a reference location in response to a use operation on a virtual shield prop.
[0585] Exemplarily, the first shield form is determined based on the accumulated virtual energy. Exemplarily, the virtual form of the virtual shield is positively correlated with the virtual energy of the virtual shield. Based on the accumulated virtual energy, the protecting effect of the virtual shield increases with the increase of the accumulated virtual energy.
[0586] In an implementation of this embodiment, the virtual shield prop includes a companion object of the first virtual character. The virtual energy of the virtual shield is accumulated in a case that the companion object is in a first state and the virtual shield is not displayed. The virtual energy of the virtual shield does not change in a case that the companion object is in a second state. It may be understood by a person skilled in the art that the foregoing implementation is merely an alternative implementation, and in different implementations, the virtual energy of the virtual shield may be accumulated in a case that the companion object is in the second state.
[0587] Based on the above, according to the method provided in this embodiment, the virtual energy of the virtual shield is accumulated in a case that the virtual shield is not displayed. A relationship between the virtual energy of the virtual shield and the virtual form of the virtual shield is established, and the virtual energy is accumulated through a behavior of the first virtual character, thereby realizing flexible configuration of the virtual form of the virtual shield. The virtual form of the virtual shield is dynamically changed following the target activity performed by the first virtual character. A new human-computer interaction mode is provided for the virtual shield. The virtual form of the virtual shield can also be dynamically changed based on the target activity in a case that the virtual shield is not actively controlled, which enriches the human-computer interaction mode of the virtual shield.
[0588] FIG. 51 is a flowchart of a method for using a virtual shield according to an embodiment of this disclosure. The method applicable to a terminal is used as an example for description. That is to say, in the embodiment shown in FIG. 44, step 530 may be implemented as the following steps.
[0589] Step 530a: Display a first virtual shield on a target location in response to the second use operation on the companion object and the companion object being in the second state in a case that the companion object is loaded with a shield enhancement prop.
[0590] Exemplarily, the shield enhancement prop is used for enhancing the protecting effect of the virtual shield. The shield enhancement prop may be obtained in the virtual scene, or may be brought into the virtual scene by the first virtual character, which is not limited in this embodiment.
[0591] Exemplarily, the first virtual shield is a double-sided shield. That is, the first virtual shield may block a virtual attack from a first side to a second side, and may also block the virtual attack from the second side to the first side. The first side and the second side are two opposite sides of the first virtual shield.
[0592] FIG. 52 is an interface diagram of using a virtual shield according to an exemplary embodiment of this disclosure. A first virtual character 14, a first virtual shield 30a, and a companion object 102 are displayed in the interface diagram of using the virtual shield. The first virtual shield 30a is placed on a target location 13 by the companion object 102. In the interface diagram of the virtual shield, the first virtual shield 30a is displayed with a luminous style, indicating that the first virtual shield 30a is a double-sided shield.
[0593] Step 530b: Display a second virtual shield on a target location in response to the second use operation on the companion object and the companion object being in the second state in a case that the companion object is not loaded with a shield enhancement prop.
[0594] Exemplarily, the second virtual shield is a single-sided shield. The second virtual shield may block a virtual attack from a first side to a second side. The first side and the second side are two opposite sides of the second virtual shield. Further, the second side is a side of the first virtual character when the second virtual shield is displayed.
[0595] FIG. 53 is an interface diagram of using a virtual shield according to an exemplary embodiment of this disclosure. A first virtual character 14, a second virtual shield 30b, and a companion object 102 are displayed in the interface diagram of using the virtual shield. The second virtual shield 30b is placed on a target location 13 by the companion object 102. In the interface diagram of the virtual shield, the second virtual shield 30b is displayed with a non-luminous style, indicating that the second virtual shield 30b is a single-sided shield.
[0596] Based on the above, according to the method provided in this embodiment, by loading the shield enhancement prop for the companion object, the corresponding virtual shield is displayed based on a loading condition of the shield enhancement prop, which enriches the human-computer interaction mode of using the virtual shield prop. The virtual form of the virtual shield is changed in a case that the first virtual character performs the target activity on the third virtual object, and the virtual form of the virtual shield can also be dynamically changed based on the target activity in a case that the virtual shield is not actively controlled, which enriches the human-computer interaction mode of the virtual shield.
[0597] FIG. 54 is a flowchart of a method for using a virtual shield according to an embodiment of this disclosure. The method applicable to a terminal is used as an example for description. That is to say, based on the embodiment shown in FIG. 44, step 550 is further included.
[0598] Step 550: Display a change in a movement speed of a third virtual character in response to the third virtual character contacting the virtual shield.
[0599] Exemplarily, any part of the third virtual character touches the virtual shield. In an example, the virtual shield may or may not have a blocking effect on the movement of the third virtual character. That is, this embodiment does not impose a limitation on whether the third virtual character can move from one side of the virtual shield across the virtual shield to an other side of the virtual shield. Exemplarily, the third virtual character in this embodiment is a virtual character in the virtual scene, and the third virtual character is different from the first virtual character.
[0600] In an exemplary design, step 550 has at least the following two implementations.
[0601] Implementation 1: Display the movement speed of the third virtual character changing from a first speed to a second speed in response to the third virtual character contacting the virtual shield in a case that the third virtual character and the first virtual character are in the same virtual camp.
[0602] The second speed is greater than the first speed. The first speed is an initial movement speed of the third virtual character.
[0603] Implementation 2: Display the movement speed of the third virtual character changing from a first speed to a third speed in response to the third virtual character contacting the virtual shield in a case that the third virtual character and the first virtual character are in different virtual camps.
[0604] The third speed is less than the first speed. The first speed is an initial movement speed of the third virtual character.
[0605] It may be understood by a person skilled in the art that the foregoing two implementations of step 550 may be split and merged, and combined with step 510 to step 540 in this embodiment to form a new embodiment, which is not limited in this embodiment.
[0606] Based on the above, according to the method provided in this embodiment, the movement speed of the third virtual character that contacts the virtual shield is changed in a case that the virtual shield is displayed, which enriches the human-computer interaction mode of using the virtual shield in the virtual scene. The virtual form of the virtual shield is changed in a case that the first virtual character performs the target activity on the third virtual object, so that a new human-computer interaction mode is provided for the virtual shield. The virtual form of the virtual shield can also be dynamically changed based on the target activity in a case that the virtual shield is not actively controlled, which enriches the human-computer interaction mode of the virtual shield.
[0607] FIG. 55 is a flowchart of a method for using a virtual shield according to an embodiment of this disclosure. The method includes the following steps.
[0608] Step 602: A terminal obtains an instruction to summon a virtual shield monster.
[0609] Exemplarily, a virtual shield prop includes the virtual shield monster. Exemplarily, the virtual shield monster is summoned through a virtual chip. For example, in a case that a virtual hero carries a virtual chip and a virtual wild monster in a weak state appears, the virtual shield monster is summoned by consuming a virtual economic value.
[0610] Step 604: The terminal displays an animation of the virtual wild monster turning into fragments attached to an arm.
[0611] Exemplarily, an animation of the virtual shield monster attached to an arm of the virtual hero is displayed. Exemplarily, the virtual hero is a virtual character in a virtual scene. For example, the virtual hero is a first virtual character.
[0612] Step 606: The terminal obtains a shoulder aiming instruction.
[0613] Exemplarily, the implementation of the shoulder aiming instruction includes but is not limited to at least one of the following: clicking / tapping, sliding, and rotating.
[0614] Step 608: The terminal controls the virtual hero to enter a shoulder aiming state.
[0615] Exemplarily, the virtual hero entering the shoulder aiming state is displayed.
[0616] Step 610: The terminal controls the virtual shield monster to turn into a virtual shield to resist in front of the virtual hero.
[0617] Exemplarily, the virtual shield monster deploying the virtual shield in front of the virtual hero is displayed.
[0618] Step 612: The terminal obtains an instruction to exit shoulder aiming.
[0619] Exemplarily, the implementation of the instruction to exit shoulder aiming includes but is not limited to at least one of the following: clicking / tapping, sliding, and rotating.
[0620] Step 614: The terminal controls the virtual hero to enter a normal walking state, and starts to accumulate virtual shield energy.
[0621] Exemplarily, the virtual hero entering the normal walking state is displayed. In response to the virtual hero entering the normal walking state, an increase in the virtual shield energy is displayed.
[0622] Step 616: The terminal obtains a shoulder aiming instruction.
[0623] Step 618: The terminal controls the virtual hero to enter a shoulder aiming state.
[0624] Exemplarily, the virtual hero entering the shoulder aiming state is displayed.
[0625] Step 620: The terminal transmits a virtual shield conversion instruction to a server.
[0626] Exemplarily, the terminal forwards the virtual shield conversion instruction to the server after obtaining the virtual shield conversion instruction.
[0627] Step 622: The server determines a shield size based on the virtual shield energy, and converts the virtual shield monster in an arm form to a virtual shield of an object size.
[0628] Exemplarily, the virtual shield of the object size is determined based on the virtual shield energy. The object size is positively correlated with shield energy.
[0629] Step 624: The server transmits information about the converted virtual shield to the terminal.
[0630] Exemplarily, the information about the converted virtual shield includes the object size of the virtual shield.
[0631] Step 626: The terminal displays the converted virtual shield exactly in front of the virtual hero.
[0632] Exemplarily, the converted virtual shield is determined based on the information about the virtual shield transmitted by the server. In an implementation, in response to an enemy virtual hero passing through the virtual shield, a movement speed of the enemy virtual hero is reduced.
[0633] Step 628: The terminal obtains a shooting instruction.
[0634] Step 630: The terminal controls the virtual hero to attack an enemy virtual hero.
[0635] Exemplarily, in response to the terminal obtaining the shooting instruction, the virtual hero being controlled to attack the enemy is displayed.
[0636] Step 632: The server obtains the shooting instruction.
[0637] Exemplarily, the terminal forwards the shooting instruction to the server after obtaining the shooting instruction.
[0638] Step 634: The server determines consumed virtual shield energy based on a number of times or types of shooting, and reduces a size of the virtual shield based on the consumed virtual shield energy.
[0639] Exemplarily, an instruction is designed to consume the virtual shield energy.
[0640] Step 636: The server transmits information indicating the reduced virtual shield to the terminal.
[0641] Exemplarily, the server updates the information about the virtual shield.
[0642] Step 638: The terminal displays the reduced virtual shield.
[0643] Exemplarily, the reduced virtual shield is determined based on the information about the reduced virtual shield transmitted by the server.
[0644] Based on the above, according to the method provided in this embodiment, the virtual size of the virtual shield is reduced in a case that the virtual hero performs virtual shooting, and a connection is established between the virtual size of the virtual shield and virtual shooting performed by the virtual hero, so that the virtual form of the virtual shield is dynamically changed following the target activity performed by the first virtual character. A new human-computer interaction mode is provided for the virtual shield. The virtual form of the virtual shield can also be dynamically changed based on the target activity in a case that the virtual shield is not actively controlled, which enriches the human-computer interaction mode of the virtual shield. A virtual attack of the virtual hero in the virtual scene is limited when being protected by the virtual shield. This solves a problem that the enemy virtual hero in the virtual scene cannot actively participate in the virtual tactical competition with the virtual hero, intensifies the intensity of the virtual tactical competition, shortens the time of the virtual tactical competition, and increases a quantity of virtual tactical competition battle services provided by the server between units.
[0645] FIG. 56 is a flowchart of using a virtual shield monster according to an exemplary embodiment of this disclosure. The method includes the following steps.
[0646] Step 652: A virtual hero obtains a virtual shield chip.
[0647] Exemplarily, the virtual shield chip is configured to transform a virtual wild monster into a virtual shield monster. The virtual shield chip may be obtained in a virtual scene, or may be added to the virtual scene by the virtual hero. That is, the obtaining manner of the virtual shield chip is not limited.
[0648] Step 654: The virtual hero uses the virtual shield chip to transform a virtual wild monster into a virtual shield monster.
[0649] Exemplarily, the virtual hero attacks the virtual wild monster to a weak state, and the virtual hero transforms the virtual wild monster into the virtual shield monster by consuming a virtual economic value, such as consuming virtual nano energy. Further, after the virtual wild monster is transformed into the virtual shield monster, the information about the virtual shield monster is displayed in a virtual shield monster information region. Exemplarily, the information about the virtual shield monster includes but is not limited to at least one of virtual energy of the virtual shield and a health point of the virtual shield monster.
[0650] Step 656: Display the virtual shield monster adsorbed to an arm of the virtual hero in a case that the virtual shield monster is in a first form.
[0651] Exemplarily, after the virtual wild monster is transformed into the virtual shield monster, the virtual shield monster enters the first form. In an implementation, the virtual shield monster may be switched between the first form and a ground mode through a mode switching operation. Exemplarily, in a case that the virtual shield monster is in the first form, the virtual shield monster turns into virtual fragments and attaches to the arm of the virtual hero. Further, after the virtual shield monster is in the first form, the virtual energy of the virtual shield is accumulated, that is, the virtual energy of the virtual shield is accumulated in a case that the virtual shield is not deployed. Exemplarily, in a case that the virtual shield is not displayed, virtual energy is not consumed during performing of virtual movement and / or virtual shooting. Specifically, in an implementation, the virtual energy is not consumed when virtual shooting is performed without entering an aiming state. That is, when virtual hip shooting is performed or virtual hip shooting and virtual non-aiming shooting are performed, virtual energy is not consumed.
[0652] Step 658: Display the virtual shield based on virtual energy in response to the virtual hero entering an aiming state.
[0653] Exemplarily, the virtual hero entering the aiming state includes but is not limited to at least one of an aiming state using a sight or an aiming state using a machine. A virtual area of virtual shield is determined based on the virtual energy, and the virtual area of the virtual shield is positively correlated with the virtual energy.
[0654] Step 660: A virtual area of the virtual shield is changed from a first area to a second area in response to the virtual hero performing virtual shooting.
[0655] The virtual shooting consumes virtual energy, and the virtual area of the virtual shield is determined as the second area based on the virtual energy. The first area is an initial area of the virtual shield.
[0656] Step 662: Display the virtual shield monster deploying the virtual shield at a target location in a case that the virtual shield monster is in a second form.
[0657] In a case that the virtual shield monster is in the second form, the virtual shield monster is no longer attached to the arm of the virtual hero, and the virtual shield monster deploys the virtual shield at the target location indicated by the virtual hero.
[0658] In an implementation, in a case that the virtual shield monster is not loaded with a shield enhancement prop, the virtual shield monster deploys a single-sided rectangular virtual shield at the target location. In another implementation, in a case that the virtual shield monster is loaded with the shield enhancement prop, the virtual shield monster deploys a double-sided hemispherical virtual shield at the target location.
[0659] Based on the above, according to the method provided in this embodiment, the virtual area of the virtual shield is reduced in a case that the virtual hero performs virtual shooting, and a connection is established between the virtual area of the virtual shield and virtual shooting performed by the virtual hero. In this way, the virtual area of the virtual shield is dynamically changed following the virtual shooting performed by the first virtual character. A new human-computer interaction mode is provided for the virtual shield. The virtual form of the virtual shield can also be dynamically changed based on the virtual shooting in a case that the virtual shield is not actively controlled, which enriches the human-computer interaction mode of the virtual shield. The virtual energy of the virtual shield is accumulated. A relationship between the virtual energy of the virtual shield and the virtual form of the virtual shield is established, and the virtual energy is accumulated through a behavior of the virtual hero, thereby realizing flexible configuration of the virtual form of the virtual shield. By adding the first form and the second form to the virtual shield monster, the human-computer interaction mode of the virtual shield monster is enriched. In the second form, the protecting effect and the virtual shape of the virtual shield monster are determined based on the shield enhancement prop, which expands the use mode and the human-computer interaction mode of the virtual shield monster.
[0660] Attack objects are divided into a melee object and a long-range object.
[0661] For the first form, an attack object in a first form is controlled to increase a weapon attack speed of a first virtual object, and / or the attack object in the first form is controlled to add a weapon attack buff of the first virtual object. The weapon attack speed may be divided into a melee attack speed and a long-range attack speed, and the buff may be divided into a melee buff and a long-range buff. In some embodiments, it is determined whether a weapon equipped on the first virtual object satisfies a weapon enhancement condition of a companion object. If the weapon enhancement condition of the companion object is a melee enhancement condition, the weapon equipped on the first virtual object satisfies the weapon enhancement condition of the companion object when being a melee weapon. If the weapon enhancement condition of the companion object is a long-range enhancement condition, the weapon equipped on the first virtual object satisfies the weapon enhancement condition of the companion object when being a long-range weapon.
[0662] The melee object and the long-range object are described respectively below.Melee Object (Companion Object with Melee Assistance / Enhancement Ability):
[0663] FIG. 57 is a flowchart of a method for controlling a virtual object according to an embodiment of this disclosure. An execution subject of steps of the method may be a terminal device 400 in a solution implementation environment shown in FIG. 1. For example, the execution subject of the steps may be a client of a target application. In the following method embodiments, for the convenience of description, only the execution subject of the steps being the “client” is described. The method may include at least one of the following steps (710-730).
[0664] Step 710: Display a display picture of a virtual scene, the virtual scene including a first virtual object.
[0665] Display picture of the virtual scene may include a picture of observing a virtual scene from the perspective of the first virtual object, and the virtual scene includes the first virtual object. The perspective of a virtual object may be a third perspective of the virtual object, or may be a first perspective of the virtual object. In an example, the display picture of the virtual scene is a virtual scene picture displayed to a user on a user interface. The display picture of the virtual scene may be a picture obtained by a virtual camera from the virtual scene. In a possible implementation, the virtual camera obtains a virtual scene picture from a third perspective of the first virtual object. For example, the virtual camera is arranged diagonally above the first virtual object, and the client observes the virtual scene with the virtual object as the center through the virtual camera, and obtains and displays the display picture of the virtual scene with the first virtual object as the center. In another possible implementation, the virtual camera obtains the display picture of the virtual scene from a first perspective of the first virtual object. For example, the virtual camera is arranged exactly in front of the first virtual object, and the client observes the virtual scene from the perspective of the first virtual object through the virtual camera, and obtains and displays the display picture of the virtual scene using the first virtual object as the first perspective. In addition, in an exemplary embodiment, a placement location of the virtual camera is adjustable in real time. For example, the user may adjust the location of the virtual camera through a touch operation on the user interface, and then obtain the display pictures corresponding to the virtual scenes at different locations. For example, the user adjusts the location of the virtual camera by dragging the display picture of the virtual scene. For another example, the user may adjust the location of the virtual camera by clicking / tapping a location in a map display control and using the location as the adjusted location of the virtual camera. The foregoing map display control is a control configured to display a global map in a shooting application.
[0666] In this embodiment of this disclosure, during running of the shooting application, the client displays the display picture of the virtual scene, the virtual scene including the first virtual object. In an example, in the shooting application, the user controls the first virtual object to shoot a second virtual object in the virtual scene by using a virtual prop. In some embodiments, in the shooting application, the user controls the first virtual object to attack a second virtual object in the virtual scene by using a virtual prop.
[0667] Step 720: Control the first virtual object to summon a companion object in a first form in response to the companion object satisfying a first summoning condition, the first virtual object having a melee attribute buff when the companion object is in the first form.
[0668] The companion object may include one or more of a plurality of virtual summoned creatures. In some embodiments, different virtual summoned creatures can provide different buffs for the first virtual object, and the virtual summoned creature selected by the first virtual object according to its own situation is the companion object. In some embodiments, a plurality of second virtual objects exist around the first virtual object. In this case, the first virtual object needs to improve its own melee attribute. In order to obtain the melee attribute buff, the first virtual object chooses a companion object “Da Zhuang”, and “Da Zhuang” can provide the melee attribute buff for the first virtual character. The melee attribute buff includes but is not limited to: increasing the weapon attack speed (including a movement speed) of the first virtual object in a melee, and increasing the weapon attack buff of the first virtual object. In an example, the buff is probabilistic or triggered probabilistically.
[0669] The first summoning condition may include a condition that needs to be satisfied to summon the companion object in the first form. The first summoning condition includes but is not limited to at least one of the following: the first virtual object obtains or uses a virtual prop for summoning a companion object, the companion object is selected, and an attribute value of the first virtual object satisfies a set condition. In some embodiments, the first summoning condition is that the first virtual object obtains a virtual prop for summoning a target virtual summoned creature and the companion object is selected. In an example, a manner of obtaining the virtual prop by the first virtual object includes at least one of purchasing by using resources in a target application, killing a specific virtual wild monster, and killing virtual wild monsters with a quantity reaching a wild monster quantity threshold. In an example, the first virtual object obtains a virtual prop after killing a specific virtual wild monster. After using the virtual prop, a plurality of virtual summoned creatures may appear. During the summoning time, the first virtual object selects a companion object. In an example, the summoning time is a time interval between the use of the virtual prop and the first virtual object being summoned. In some embodiments, the first virtual object kills a specific virtual nano-monster in the virtual scene, a virtual prop (which may be referred to as a “core chip” in this embodiment) appears at a location where the virtual nano-monster disappears, and after spending energy (in this embodiment, the first virtual object can obtain energy after performing a virtual task in the virtual scene), the first virtual object can choose to summon one of the plurality of virtual summoned creatures. In some embodiments, the first virtual object directly spends energy, exchanges a virtual prop, and uses the virtual prop to summon a companion object. In some embodiments, the first summoning condition further includes that the attribute value of the first virtual object satisfies the set condition. In some embodiments, the first virtual object can only use the virtual prop to summon the companion object when a health point of the first virtual object is below the pass line.
[0670] In some embodiments, the companion object has a plurality of forms, and the forms of the companion object include but are not limited to at least one of a first form and a second form. The second form corresponds to the first form. The companion object may move or attack independently of the first virtual object when appearing in the second form. In some embodiments, the second form of the companion object includes but is not limited to at least one of a human form and an animal form. Correspondingly, the companion object cannot exist separately from the first virtual object when appearing in the first form. In some embodiments, the first form is a form that does not have a specific shape but changes based on the first virtual object. In an example, the first form of the companion object is a form of fragments. In some embodiments, the companion object is attached to an arm of the first virtual object in the form of fragments, which can improve the melee attribute of the first virtual object. In some embodiments, the companion object is attached to another part of the first virtual object in the form of fragments, which can improve the melee attribute of the first virtual object. In an example, the companion object is transformed into a shield form to block the periphery of the first virtual object, which can increase the melee attribute buff (such as defense capability) of the first virtual object. In an example, the companion object is in the form of a mount, which can carry the first virtual object and provide the first virtual object with melee attribute buffs (such as a melee movement speed and a melee attack speed). In this embodiment of this disclosure, the first virtual object uses a virtual prop to summon a companion object (referred to as “Crusher / Da Zhuang”). The companion object is attached to the arm of the first virtual object in the form of fragments, which improves the melee attribute of the first virtual object.
[0671] In some embodiments, the melee virtual prop in this embodiment of this disclosure is the virtual prop corresponding to a ranged virtual prop, and an attack distance of the melee virtual prop is less than an attack distance of the ranged virtual prop. In some embodiments, the melee virtual prop is a virtual prop with an attack distance less than a melee distance threshold. In some embodiments, the melee virtual prop includes but is not limited to at least one of the following: a virtual axe, a virtual spear, a virtual pan, and a virtual crowbar. FIG. 58 is a schematic diagram of a display picture according to an embodiment of this disclosure. A display picture 21 of a virtual scene includes a first virtual object 101 and a melee virtual prop 22.
[0672] In this embodiment of this disclosure, a melee may be a fight in which the first virtual object uses the melee virtual prop, and the attack distance of the melee may be constant. Melee attributes are all attributes of the first virtual object in a melee. A buff is, for example, promotion / improvement. The buff can mean a helpful effect. A melee attribute buff is an effect that is helpful to the melee of the first virtual object, and is a buff during use of the melee virtual prop. In this embodiment of this disclosure, the melee attribute buff includes at least one of the following: an attack speed buff during use of the melee virtual prop, a throwing speed buff during use of the melee virtual prop, an attack value buff during use of the melee virtual prop, and a critical hit value buff during use of the melee virtual prop.
[0673] The attack speed buff during use of the melee virtual prop may be an increase in the attack speed of the melee virtual prop of the first virtual object. In some embodiments, the attack speed of the first virtual object using the melee virtual prop is increased from an attack interval of 0.5 s to an attack interval of 0.25 s.
[0674] In an example, the throwing speed buff during use of the melee virtual prop is an increase in a speed at which the first virtual object throws the melee virtual prop. In some embodiments, a time for the first virtual object to throw a virtual axe is increased from 0.1 s to 0.05 s.
[0675] The attack value buff during use of the melee virtual prop is a buff of damage caused by the first virtual object to a second virtual object during use of the melee virtual prop. In some embodiments, the damage caused by the first virtual object using a melee virtual prop to the second virtual object is 100 health points, but after the attribute buff, the first virtual object may cause damage of 200 health points to the second virtual object by using the melee virtual prop.
[0676] In an example, the critical hit value buff during use of the melee virtual prop means that an increased probability of a critical hit during use of the melee virtual prop. In some embodiments, the critical hit value of the first virtual object using the melee virtual prop is one critical hit every ten attacks, and the critical hit value is twice a normal attack value. However, after the buff of the critical hit value, the critical hit value of the first virtual object using the melee virtual prop is one critical hit every five attacks, and the critical hit value is three times the normal attack value.
[0677] In some embodiments, the melee attribute buff is directly applied to the attribute of the first virtual object. When the first virtual object uses the melee virtual prop, the melee attribute buff is obtained by directly improving the melee attribute of the first virtual object itself. In some embodiments, the melee attribute buff is applied to the melee virtual prop, which is the attribute of the upgraded virtual prop. By improving the attribute of the melee virtual prop, the purpose of improving the melee attribute of the first virtual object using the melee virtual prop is achieved during use of the melee virtual prop by the first virtual object. In some embodiments, the melee attribute buff is applied to the first virtual object itself and the melee virtual prop simultaneously. Through the buffs of both sides, the melee attribute of the first virtual object using the melee virtual prop is improved. In a shooting game, a player is usually accustomed to using a virtual prop for a long-range attack, and a usage rate of the melee virtual prop / props such as an axe and a sickle is low, resulting in low resource utilization and a waste of resources. By adopting the solution of this disclosure, resources can be actively utilized and a waste of resources can be avoided.
[0678] In this embodiment of this disclosure, the first virtual object is controlled to summon a companion object in a first form in response to the companion object satisfying a first summoning condition, and the first virtual object has a melee attribute buff when the companion object is in the first form. In some embodiments, if the companion object does not satisfy the first summoning condition, the first virtual object does not have the melee attribute buff. In some embodiments, when the companion object is not in the first form, the first virtual object does not have the melee attribute buff.
[0679] Step 730: Control a first virtual object to use a melee virtual prop based on the melee attribute buff in response to a use operation on the melee virtual prop.
[0680] The use operation includes but is not limited to an attack operation and a throwing operation. The attack operation means using the melee virtual prop to directly cause damage to a second virtual object. The throwing operation means throwing the melee virtual prop to cause damage to the second virtual object indirectly.
[0681] In some embodiments, a client controls the first virtual object to use the melee virtual prop based on an attack speed buff in response to a use operation of a first virtual character performed on the melee virtual prop, so that the attack speed of the first virtual object using the melee virtual prop is increased. In some embodiments, a client controls the first virtual object to throw the melee virtual prop based on a throwing speed buff in response to a throwing operation of a first virtual character performed on the melee virtual prop, so that the throwing speed of the first virtual object using the melee virtual prop is increased.
[0682] In some embodiments, when the companion object is in the first form, the first virtual object has the melee attribute buff, and the second virtual object is attacked by using the melee virtual prop in a case that the first virtual object has the melee attribute buff. In some embodiments, the companion object is attached to the first virtual object in the form of fragments, and the first virtual object has an attack speed buff of using the melee virtual prop and a throwing speed buff of using the melee virtual prop. In some embodiments, a companion object “Da Zhuang” is attached to an arm of the first virtual object in the form of fragments, so that a speed of throwing a virtual axe and an attack speed of waving a virtual dagger by the first virtual object are increased.
[0683] In this embodiment of this disclosure, controlling the first virtual object to summon the companion object in the first form includes displaying a first summoning animation of the companion object. The first summoning animation includes an animation process of generating the companion object in the first form in a virtual scene, and in the first form, the companion object is attached to the first virtual object. In this embodiment of this disclosure, the first summoning animation is a dynamic animation. In some embodiments, the first form of the companion object is a form of fragments. In an example, the first summoning animation is an animation process in which when the companion object is in the form of fragments, the fragments gradually aggregate to a body part of the first virtual object. In an example, the animation process that the companion object Da Zhuang gradually aggregates to the arm of the first virtual object in the form of fragments is displayed. In the first form, the companion object is attached to a body part (such as an arm) of the first virtual object in the form of fragments. FIG. 59 is a schematic diagram of a display picture according to another embodiment of this disclosure. A companion object being attached to a first virtual object 101 in a first form 23 is displayed in a first summoning animation, and the first form 23 of the companion object is a form of fragments.
[0684] By displaying the first summoning animation, a picture display effect is improved, and the product quality and attractiveness are improved, thereby increasing a utilization rate of products and avoiding a waste of server resources.
[0685] According to the technical solution provided in this embodiment of this disclosure, the melee attribute of the first virtual object is improved by controlling the first virtual object to summon the companion object in the first form and when the companion object is in the first form, so that the purpose of improving the melee attribute of the first virtual object is achieved by summoning the companion object, the manner of improving the melee attribute of the virtual object is increased, and the manner of improving the melee attribute is diversified.
[0686] FIG. 60 is a flowchart of a method for controlling a virtual object according to another embodiment of this disclosure. An execution subject of steps of the method may be a terminal device 400 in a solution implementation environment shown in FIG. 1. For example, the execution subject of the steps may be a client of a target application. In the following method embodiments, for the convenience of description, only the execution subject of the steps being the “client” is described. The method may include at least one of the following steps (810-840).
[0687] Step 810: Display a display picture of a virtual scene, the virtual scene including a first virtual object.
[0688] Step 820: Control the first virtual object to summon a companion object in a first form in response to the companion object satisfying a first summoning condition, the first virtual object having a melee attribute buff when the companion object is in the first form.
[0689] Step 830: Control a first virtual object to use a melee virtual prop based on the melee attribute buff in response to a use operation on the melee virtual prop.
[0690] Step 840: Control the first virtual object to summon a companion object in a second form in response to the companion object satisfying a second summoning condition, the companion object having a function of assisting the first virtual object in attacking a second virtual object when the companion object is in the second form.
[0691] Second summoning condition includes, for example, a condition that needs to be satisfied to summon the companion object in the second form. In some embodiments, when the client receives a touch / press operation performed by a user on a specific summoning button, the first virtual object is controlled to summon the companion object in the second form. In some embodiments, when the companion object appears in the first form for a duration threshold, the first virtual object is controlled to summon the companion object in the second form. In some embodiments, when a distance between the second virtual object and the first virtual object exceeds a summoning distance threshold, the first virtual object is controlled to summon the companion object in the second form.
[0692] The second form is a form different from the first form in a plurality of forms of the companion object. In some embodiments, the second form of the companion object is a complete form of the companion object. In some embodiments, the complete form is a state of being separated from the second virtual object and able to act independently. The complete form includes, but is not limited to, at least one of a human form and an animal form. In an example, the first virtual object is controlled to summon a companion object in a human form. In some embodiments, the first virtual object is controlled to summon a companion object in an animal form. FIG. 61 is a schematic diagram of a display picture according to anoth...
Examples
Embodiment Construction
[0119]To make the objectives, technical solutions, and advantages of this disclosure clearer, the following describes this disclosure in further detail with reference to the accompanying drawings. The described embodiments are not to be considered as a limitation to this disclosure. Other embodiments shall fall within the scope of this disclosure.
[0120]In the following description, the involved term “some embodiments” describes subsets of all possible embodiments, but it may be understood that “some embodiments” may be the same subset or different subsets of all the possible embodiments, and can be combined with each other without conflict.
[0121]In the following description, the involved terms “first\second\ . . . ” are merely intended to distinguish between similar objects rather than describe specific orders. It may be understood that, “first\second\ . . . ” may interchange specific order or sequential order if allowed, so that the embodiments of this disclosure described herein c...
Claims
1. A method for controlling a companion object, the method comprising:displaying a virtual scene, the virtual scene including a first virtual object and a companion object of the first virtual object, the companion object being configured to switch between a first state and a second state; andcontrolling the companion object to switch between the first state and the second state, whereinwhen the companion object is in the first state, the companion object is in a first form that is attached to the first virtual object, andwhen the companion object is in the second state, the companion object is (i) in a second form that is not attached to the first virtual object and (ii) configured to move separately from the first virtual object, the first form of the companion object being different from the second form of the companion object.
2. The method according to claim 1, wherein the companion object in the first form is configured to perform a first function and the companion object in the second form is configured to perform a second function that is different from the first function.
3. The method according to claim 1, further comprising:displaying a second virtual object in the virtual scene; andcontrolling the first virtual object to convert the second virtual object to the companion object.
4. The method according to claim 3, wherein the controlling the first virtual object to convert the second virtual object comprises:controlling the first virtual object to interact with the second virtual object in the virtual scene when (i) the second virtual object is in a predefined state and (ii) an attribute value of the first virtual object is greater than an attribute threshold; andin response to the interaction with the second virtual object, converting the second virtual object to the companion object in one of the first state and the second state by using a virtual prop.
5. The method according to claim 4, wherein the converting the second virtual object includes converting the second virtual object to the companion object based on a type of the virtual prop, the type of the virtual prop being one of a plurality of types of virtual props that correspond to different types of companion objects.
6. The method according to claim 1, wherein a part of the first virtual object to which the companion object in the first form is attached is based on a type of the companion object, the type of the companion object being one of a plurality of types of companion objects to be attached to different parts of the first virtual object.
7. The method according to claim 1, wherein at least one function of the companion object is based on a type of the companion object, the type of the companion object being one of a plurality of types of companion objects that provide different functions for the first virtual object.
8. The method according to claim 1, whereinthe companion object is attached to a body part of the first virtual object in the first form, andthe first form of the companion object is based on a type of the companion object, the type of the companion object being one of a plurality of types of companion objects that correspond to different first forms.
9. The method according to claim 1, wherein a type of the companion object includes at least one of a shield type, a scouting type, and an attack type,when the companion object is the shield type, the companion object is configured to reduce an effect of an attack performed by another virtual object in the virtual scene on the first virtual object;when the companion object is the scouting type, the companion object is configured to detect whether the other virtual object is in a scouting region; andwhen the companion object is the attack object, the companion object is configured to assist the first virtual object in attacking the other virtual object.
10. The method according to claim 1, wherein the controlling the companion object comprises:controlling the companion object to switch from the first state to the second state in response to a first user input; andcontrolling the companion object to switch from the second state to the first state in response to a second user input.
11. The method according to claim 10, wherein the controlling the companion object to switch from the first state to the second state in response to the first user input comprises:determining a distance between a locked target location and a location of the first virtual object in response to a first target lock operation on the locked target location;controlling the companion object to move to the locked target location and switching the companion object to the second form at the locked target location when the distance is less than or equal to a first distance threshold; andcontrolling the companion object to move to a first location, switching the companion object to the second form at the first location, and controlling the companion object to move from the first location to the locked target location when the distance is greater than the first distance threshold, a distance between the first location and the location of the first virtual object on a first connecting line being the first distance threshold, the first connecting line connecting the locked target location to the location of the first virtual object.
12. The method according to claim 11, further comprising:controlling the companion object to move to a second location and switching the companion object to the second form at the second location when the locked target location is not accessible to the companion object in the virtual scene, the second location being on the first connecting line, accessible by the companion object, and closest to the locked target location.
13. The method according to claim 11, further comprising:determining a ground projection location corresponding to the locked target location in the virtual scene when the locked target location is above ground in the virtual scene; andcontrolling the companion object in the second form to move from the locked target location down to the ground projection location, and decreasing a state parameter of a second virtual object that is in a first region associated with the ground projection location.
14. The method according to claim 11, wherein the controlling the companion object to switch from the first state to the second state in response to the first user input comprises:controlling the companion object to move to a third location and switching the companion object from the first form to the second form at the third location in response to a second target lock operation in which a locked target object is a third virtual object; andcontrolling the companion object to move from the third location to a location of the third virtual object, a distance between the third location and the location of the third virtual object on a second connecting line being a second distance threshold, the second connecting line connecting the location of the first virtual object to the location of the third virtual object.
15. The method according to claim 1, wherein the controlling the companion object comprises:controlling the companion object to automatically switch from the first state to the second state when a first switching condition is detected; andcontrolling the companion object to switch from the second state to the first state when a second switching condition is detected.
16. The method according to claim 1, further comprising:when the companion object is in the second form and in an unresponsive state, displaying an indication that the companion object is currently not switchable from the second state to the first state.
17. The method according to claim 1, wherein the companion object is immune to damage while the companion object switches between the first state and the second state.
18. The method according to claim 1, further comprising:controlling the companion object in the first state to enhance the first virtual object; andcontrolling the companion object in the second state to assist the first virtual object.
19. An apparatus for controlling a companion object, the apparatus comprising:processing circuitry configured to:display a virtual scene, the virtual scene including a first virtual object and a companion object of the first virtual object, the companion object being configured to switch between a first state and a second state; andcontrol the companion object to switch between the first state and the second state, whereinwhen the companion object is in the first state, the companion object is in a first form that is attached to the first virtual object, andwhen the companion object is in the second state, the companion object is (i) in a second form that is not attached to the first virtual object and (ii) configured to move separately from the first virtual object, the first form of the companion object being different from the second form of the companion object.
20. A non-transitory computer-readable storage medium, storing instructions which when executed by a processor cause the processor to perform:displaying a virtual scene, the virtual scene including a first virtual object and a companion object of the first virtual object, the companion object being configured to switch between a first state and a second state; andcontrolling the companion object to switch between the first state and the second state, whereinwhen the companion object is in the first state, the companion object is in a first form that is attached to the first virtual object, andwhen the companion object is in the second state, the companion object is (i) in a second form that is not attached to the first virtual object and (ii) configured to move separately from the first virtual object, the first form of the companion object being different from the second form of the companion object.
Citation Information
Patent Citations
Video game device, recording medium, and program
JP2004195166A
Storage medium, game system, game apparatus, and game processing method
US20240082736A1
Video game system, character action control method, and readable storage medium storing character action control program
US6878065B2
Cited By
Robot control method and device, equipment and medium
CN119407765A
Intelligent interaction method and system for user behavior data in virtual reality environment
CN119576130A
Antenna apparatus for vehicle and controlling method therefor
US12700667B2
Non-transitory computer-readable storage medium having game program stored therein, game system, game processing method, and game apparatus
US20260021399A1
