Virtual object control method and device, terminal and storage medium

By triggering the second control within the operation of the first control, the virtual object can be directly controlled to use virtual items, solving the problem of complex virtual item operation and achieving convenient and efficient game operation.

CN121623315APending Publication Date: 2026-03-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411174114.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

In existing technologies, players find it inconvenient to operate virtual items, especially when the target is hiding behind a building, making it difficult to hit accurately. This results in high operational complexity and affects the gaming experience.

Method used

By responding to the second operation and displaying the second control in response to the first operation of the first control, the virtual object can be directly controlled to use virtual props, which simplifies the operation process, avoids extra clicks and movement options, and achieves seamless switching.

Benefits of technology

It reduces operational complexity, improves the convenience and efficiency of virtual object control, and enhances the continuity of game operations and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121623315A_ABST
    Figure CN121623315A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual object control method and device, a terminal and a storage medium, and relates to the technical field of human-computer interaction. The method comprises the steps that a user interface is displayed, and a first control used for controlling a first virtual object is displayed in the user interface; under the condition that a first function of the first control is triggered by the first operation, in response to a second operation for the first control, displaying a second control, the second operation being switched to be used for controlling the second control, and the second control being used for using the first virtual item; and in response to the end of the second operation, displaying that the first virtual object uses the first virtual item in the virtual environment. According to the embodiment of the invention, in the use process of the first control, the second operation for the first control is supported, the display is quickly triggered, and the second control is controlled, so that the first virtual item is used, and the convenience of the operation for controlling the virtual object is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of human-computer interaction technology, and in particular to a method, device, terminal and storage medium for controlling virtual objects. Background Technology

[0002] Currently, in some game applications, if a player finds that the target is hiding behind a building when using a projectile (a virtual item) and cannot accurately hit the target, they can jump into the air and throw the projectile from a high altitude to more easily aim at the target behind the building.

[0003] For example, a user first clicks the jump control to make the controlled virtual object jump, then selects the throwable to display the wheel control, then moves their finger to the wheel control to adjust the wheel control to aim at the attack target, and finally ends the operation on the wheel control to control the virtual object to release the throwable. However, this process is inconvenient for inexperienced players. Summary of the Invention

[0004] This application provides a method, apparatus, terminal, and storage medium for controlling virtual objects. The technical solution is as follows:

[0005] According to one aspect of the embodiments of this application, a method for controlling a virtual object is provided, the method comprising:

[0006] The user interface displays a first control for controlling the first virtual object;

[0007] When the first function of the first control is triggered by the first operation, in response to the second operation on the first control, the second control is displayed, the second operation is switched to control the second control, and the second control is used to use the first virtual prop;

[0008] In response to the end of the second operation, the first virtual object is shown using the first virtual prop in the virtual environment.

[0009] According to one aspect of the embodiments of this application, a control device for a virtual object is provided, the device comprising:

[0010] A user interface display module is used to display a user interface, wherein the user interface displays a first control for controlling a first virtual object;

[0011] The second control display module is used to display the second control in response to a second operation on the first control when the first function of the first control is triggered by the first operation. The second operation is switched to control the second control, and the second control is used to use the first virtual prop.

[0012] A virtual prop usage module is used to display the first virtual object using the first virtual prop in the virtual environment in response to the end of the second operation.

[0013] According to one aspect of the embodiments of this application, a terminal device is provided, the terminal device including a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the above-described virtual object control method.

[0014] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored in the storage medium, the computer program being loaded and executed by a processor to implement the above-described method for controlling virtual objects.

[0015] According to one aspect of the embodiments of this application, a computer program product is provided, comprising a computer program stored in a computer-readable storage medium. A processor of a terminal device reads the computer program from the computer-readable storage medium and executes the computer program, causing the terminal device to perform the aforementioned virtual object control method.

[0016] The technical solutions provided in this application embodiment may have the following beneficial effects:

[0017] In the process of controlling the first virtual object through the first operation on the first control, by supporting the second operation on the first control, the second control can be quickly triggered and displayed, and the second control can be controlled, so that the first virtual object can use the first virtual prop without the user having to click on the option of the first virtual prop to trigger the display of the second control, and without having to move from the option of the first virtual prop to the second control. This reduces the complexity of the operation, thereby improving the convenience of the operation for controlling the virtual object, and thus improving the efficiency of the operation for controlling the virtual object. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a schematic diagram of an object control system provided in one embodiment of this application;

[0020] Figure 2 This is a flowchart of a virtual object control method provided in one embodiment of this application;

[0021] Figure 3 This is a schematic diagram of a first control provided in one embodiment of this application;

[0022] Figure 4 This is a schematic diagram of a second control provided in one embodiment of this application;

[0023] Figure 5 This is a schematic diagram of a prompt message provided in one embodiment of this application;

[0024] Figure 6 This is a schematic diagram illustrating usage direction information provided in one embodiment of this application;

[0025] Figure 7 This is a flowchart of a virtual object control method provided in another embodiment of this application;

[0026] Figure 8 This is a schematic diagram of a second-order airborne state provided in one embodiment of this application;

[0027] Figure 9 This is a flowchart of a virtual object control method provided in another embodiment of this application;

[0028] Figure 10 This is a schematic diagram of the movement trajectory of a first-order airborne state provided in one embodiment of this application;

[0029] Figure 11 This is a schematic diagram of the movement trajectory of a second-order airborne state provided in one embodiment of this application;

[0030] Figure 12 This is a block diagram of a control device for a virtual object provided in one embodiment of this application;

[0031] Figure 13 This is a block diagram of a control device for a virtual object provided in another embodiment of this application;

[0032] Figure 14 This is a structural block diagram of a terminal device provided in one embodiment of this application. Detailed Implementation

[0033] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0034] Please refer to Figure 1 The diagram illustrates an object control system according to an embodiment of this application. The object control system may include a terminal device 10 and a server 20.

[0035] Terminal device 10 can be an electronic device such as a mobile phone, tablet computer, multimedia playback device, PC (Personal Computer), intelligent robot, in-vehicle terminal, wearable device, AR (Augmented Reality) device, VR (Virtual Reality) device, MR (Mixed Reality) device, etc. A client for a target application can be installed on terminal device 10. This target application can be such as a game application, a social entertainment application, a simulation learning application, or a simulation application.

[0036] The target application can be an online application. For example, the client of the target application can be installed and run on different terminal devices 10 for use by different users. Taking a game application as an example, the game application can be installed and run on different terminal devices 10 in the form of a mobile game, a PC game, a webpage, or a mini-program. The target application can also be an offline application or a plug-and-play application; this embodiment of the application does not limit the specific type of application.

[0037] The game application can be any of the following: Massive Multiplayer Online Role-Playing Game (MMORPG), casual game, party game, sandbox game, tower defense game, action-adventure game, multiplayer online battle arena (MOBA) game, first-person shooter (FPS) game, multiplayer shooting survival game, third-person shooter (TPS) game, strategy game (SLG), simulation management game, survival building game, real-time strategy game, etc. This application embodiment does not limit this.

[0038] Server 20 provides background services for the client of the target application (such as a game application) in terminal device 10. For example, server 20 can be a background server for the target application (such as a game application). Server 20 can be a single server, a server cluster consisting of multiple servers, or a cloud computing service center.

[0039] Terminal device 10 and server 20 can communicate with each other via network 30. This network 30 can be a wired network or a wireless network.

[0040] For example, taking a MOBA game as an example, the MOBA game client displays the MOBA game user interface, which displays a first control for controlling a first virtual object; when the first function of the first control is triggered by a first operation, the client responds to a second operation on the first control, displays a second control, and the second operation is switched to control the second control, which is used to use the first virtual item; in response to the end of the second operation, the client displays the first virtual object using the first virtual item in the virtual environment.

[0041] The technical solutions provided in this application will be described below through method embodiments.

[0042] Please refer to Figure 2 The diagram illustrates a flowchart of a virtual object control method provided in one embodiment of this application. The execution entity of each step of the method can be... Figure 1 The method may include the following steps (201-203) when the terminal device 10 in the control system shown is a client in the terminal device 10.

[0043] Step 201: Display the user interface, which displays a first control for controlling the first virtual object.

[0044] A user interface (UI) refers to the display interface of an application, providing a channel for interaction between the user and the application. Taking game applications (such as MOBA games) as an example, the UI can be the display interface of a game match. This UI presents the virtual environment of the game match to the user, and may include elements from this virtual environment, such as virtual buildings, virtual items, and virtual objects. Optionally, the UI may also include some operational controls, such as buttons, sliders, icons, joysticks, and wheels, for the user to operate.

[0045] Optionally, the user interface includes a first view layer and a second view layer; wherein the display level of the first view layer is higher than that of the second view layer. Operation controls are located in the first view layer, and the screen used to display the virtual environment is located in the second view layer. Of course, in addition to the first controls described above, the first view layer may also include other operation controls, such as operation controls for controlling the movement of virtual objects, operation controls for controlling the virtual equipment assembled on virtual objects, etc., and this application embodiment does not limit this.

[0046] The aforementioned virtual environment can be an environment displayed (or provided) by the client of an application (such as a game application) when it runs on a terminal device. This virtual environment refers to an environment created for virtual objects to perform activities, such as a virtual house, a virtual island, or a virtual map. This virtual environment can be a simulation of the real world, a semi-simulated / semi-fictional environment, or a purely fictional environment. The virtual environment can be a 3D virtual environment, a 2.5D virtual environment, or a 2D virtual environment; this application does not limit this. For example, taking a game application as an example, this virtual environment can provide virtual environments for game matches, game levels, game maps, gameplay, game activities, game modes, etc.

[0047] Virtual objects refer to objects controlled by a user within an application (such as a game application). Taking a game application as an example, a virtual object is a game character controlled by the user within the application. The user can control the game character to perform actions such as moving, jumping, running, crouching, lying prone, and using virtual items in a virtual environment. Virtual objects can be human figures, animals, cartoons, or other forms; this embodiment does not limit this. Virtual objects can be displayed in 3D or 2D; this embodiment does not limit this either.

[0048] In this embodiment, the first virtual object may refer to a virtual object controlled by a user account currently logged into the client. Optionally, the client displays a view of the virtual environment from the perspective of the first virtual object in the user interface. The perspective of the first virtual object includes at least one of the following: first-person perspective, third-person perspective, God's-eye view, and bird's-eye view.

[0049] The first control is used to control the first virtual object. For example, the first control can be used to control the first virtual object to jump to leave the ground, the first control can also be used to control the first virtual object to change its movement posture, such as changing from a standing state to a non-standing state (such as a crouching state, a prone state, etc.), and the first control can also be used to control the first virtual object to use a virtual vehicle. This application embodiment does not limit this.

[0050] In one example, the first control is displayed in the user interface as a button, which includes graphical information indicating the function of the first control. For example, if the first control can be used to control a first virtual object to jump to leave the ground, the first control includes graphical information indicating the control of the virtual object to jump.

[0051] For example, refer to Figure 3The user interface 300 includes a first control 301, which is an operation control used to control the first virtual object 302 to jump and leave the ground. This embodiment does not limit the display parameters of the first control 301, that is, it does not limit the shape, size, position, or style of the first control 301. For example, the first control 301 can be circular or square. The area of ​​the first control 301 can occupy 1 / 10 or 1 / 20 of the area of ​​the user interface 300. The first control 301 can be located in the lower left corner or the right / left corner of the user interface 300. In this embodiment, the display of the first control 301 does not obscure the main display elements of the user interface 300.

[0052] Step 202: When the first function of the first control is triggered by the first operation, in response to the second operation on the first control, the second control is displayed, and the second operation is switched to control the second control, which is used to use the first virtual prop.

[0053] The first function refers to the function of the first control, which is used to control the first virtual object. For example, the first function of the first control can be used to make the first virtual object leave the ground and enter the air state. The first function of the first control can also be used to control the first virtual object to use the first virtual vehicle. The first function of the first control can also be used to control the first virtual object to squat. This application embodiment does not limit this.

[0054] The first operation refers to the operation used to trigger the first function of the first control. This application embodiment does not limit the first operation, which may include at least one of the following: a click operation, a press operation, a slide operation, or a double-click operation. Optionally, if the terminal device has a touch screen, the first operation can be implemented through the touch screen; if the terminal device has an external device (such as a mouse, keyboard, or joystick), the first operation can also be implemented through the external device. This application embodiment does not limit this.

[0055] Optionally, in response to the user's first operation on the first control, the client triggers the first function of the first control. The first function of the first control being triggered means controlling the movement of the first virtual object based on the first function.

[0056] For example, refer to Figure 3 In response to a click operation on the first control 301, the user interface 300 displays the process of the first virtual object 302 jumping to leave the ground and enter a state of airborne flight.

[0057] When the first function of the first control is triggered by the first operation, the first virtual object enters the target state. The target state refers to the state that the first function causes the first virtual object to enter, such as the above-mentioned air state, driving state (i.e., the state of using a virtual vehicle), crouching state, etc.

[0058] After the first virtual object enters the target state, in response to the second operation for the first control, the client adds and displays a second control in the user interface. The second operation is different from the first operation; it is used to invoke the second control and to control the first virtual object to use the first virtual item by controlling the second control. This application embodiment does not limit the first virtual item; it can be a virtual projectile, such as a javelin, spear, dagger, dart, Molotov cocktail, or grenade; it can also refer to a virtual launching device, such as a bow and arrow, crossbow, or gun.

[0059] Optionally, the second control is hidden under normal conditions. After the first virtual item is selected, the client cancels the hiding / showing of the second control. This means the second operation can trigger the display of the second control simultaneously with the selection of the first virtual item, thus reducing operational complexity and improving ease of use. The display of the second control does not obscure the main display elements of the user interface.

[0060] In this embodiment of the application, after adding the display of the second control, the operation target of the second operation is switched from the first control to the second control, so as to achieve seamless connection and use of the second control without having to re-operate on the second control, thereby further improving the convenience of operation.

[0061] Optionally, if the first function of the first control is not triggered by the first operation, the client does not display the second control in response to the second operation on the first control, so as to avoid affecting the triggering of the first function.

[0062] In one example, the second operation described above is a swipe operation, which can refer to the user's finger moving from a first position to a second position on the touch screen. Therefore, in response to the second operation on the first control, displaying the second control includes: in response to a swipe operation originating from the first control, displaying the second control.

[0063] In other words, after clicking the first control, the user can immediately perform a sliding operation starting from the first control to trigger the display of the second control, without having to select the first virtual item to trigger the display of the second control. This saves the process of selecting the first virtual item and moving from the first control to the option of the first virtual item (such as the throw control), thus maintaining the continuity of the operation and making the use of the second control seamless, which is conducive to improving the convenience of operation.

[0064] For example, refer to Figure 4 When the first function of the first control 301 is triggered by the first operation, in response to the user's swipe operation starting from the first control 301, the client adds and displays a second control 303. At this time, the swipe operation is switched to control the second control 303. The second control 303 can be used to control the first virtual object 302 to use the virtual throwable object (i.e., the first virtual prop) corresponding to the throwing control 304. The throwing control 304 can also be used to trigger the display of the second control 303, but the user needs to move their finger from the first control 301 to the throwing control 304 and then click the throwing control 304, which is a rather cumbersome process.

[0065] In one example, to prevent the second control from being accidentally triggered, the client only adds and displays the second control when the sliding operation meets the set conditions. Therefore, embodiments of this application may further include at least one of the following:

[0066] 1. In response to a sliding operation starting from the first control, obtain the sliding distance of the sliding operation; if the sliding distance is greater than or equal to the distance threshold, display the second control.

[0067] The swipe distance is used to indicate the distance a user's finger moves on the touchscreen, such as the distance between the first and second positions mentioned above.

[0068] The aforementioned distance threshold can be set and adjusted according to actual usage needs, and this application embodiment does not limit this. For example, the distance threshold is less than or equal to the distance between the first control and the option of the first virtual prop (such as the throwing control 304 mentioned above). When the distance threshold is less than the distance between the first control and the option of the first virtual prop, the user can use the first virtual prop without having to move completely from the first control to the option of the first virtual prop, which helps to improve the efficiency of operation.

[0069] This application does not limit the sliding direction of the sliding operation in its embodiments. For example, the sliding direction can be an upward swipe starting from the first control, a downward swipe starting from the first control, or a swipe oriented towards the option of the first virtual prop.

[0070] For example, refer to Figure 4 When the first function of the first control 301 is triggered by the first operation, in response to the user's upward swipe operation starting from the first control 301, if the swipe distance is equal to a distance threshold, the client will display the second control 303. The distance threshold is less than or equal to the distance between the first control 301 and the throwing control 304 corresponding to the first virtual prop.

[0071] 2. In response to a sliding operation originating from the first control, obtain the touch position of the sliding operation; if the touch position moves to the set area, display the second control.

[0072] Touch position can refer to the location where a user's finger contacts the touch screen, and this touch position changes as the finger moves.

[0073] The aforementioned setting area can be configured and adjusted according to actual usage needs, and this application embodiment does not limit this. For example, the setting area can be located between the options of the first control and the first virtual prop, or it can be located directly below the first control, or it can be located directly above the first control. In one example, the center point of the setting area coincides with the center point of the line connecting the options of the first control and the first virtual prop. The setting area can be circular, square, etc.

[0074] The size of the setting area is not limited in this embodiment; it can be determined based on the contact area between the finger and the touch screen. The setting area can be transparent. In response to the second operation, the client displays the setting area to guide the user to slide their finger to the setting area.

[0075] In one example, the process of displaying the second control may also include the following: in response to a sliding operation originating from the first control, obtaining the touch position of the sliding operation; and displaying the second control based on the touch position.

[0076] Optionally, if the swipe operation meets set conditions, the client can directly display a second control at the touch location. For example, if the swipe distance is greater than or equal to a distance threshold, the client obtains the current touch location and adds a second control at that location.

[0077] By displaying the second control based on the touch location, the second control can be controlled immediately upon its display via a second operation, without requiring the user to move their finger to the second control again (e.g., displaying the second control at a set location that does not overlap with the touch location) or to perform a new operation on the second control. This further reduces the complexity of the operation and improves its convenience.

[0078] For example, refer to Figure 4 When the sliding operation meets the set conditions, the client can directly add a second control 303 at the current touch position (i.e. the contact position between the finger and the touch screen).

[0079] In some feasible examples, if a second control is displayed when the touch position moves to the setting area, the second control can be added directly to the setting area. For example, if the center point of the first control coincides with the center point of the setting area, the user can continue to control the second control directly through the swipe operation.

[0080] In one example, the duration of the first function is limited. For instance, if the first virtual object is in a floating state based on the first function, the first virtual object will land again after the duration of the first function. This application does not limit the duration of the first function; it may be 1 minute, 2 minutes, etc.

[0081] Optionally, during the duration of the first function of the first control, the second control is triggered to be displayed by a second operation on the first control. That is, the second control can be triggered to be displayed by the second operation during the duration of the first function, which helps to improve the flexibility of operation.

[0082] For example, refer to Figure 5 In response to the user's click operation on the first control 301, the first virtual object 302 jumps off the ground to be in an air state. The first control 301 adds a prompt message 305 to display the duration of the first function (hereinafter referred to as the air time). The prompt message 305 displays the duration of the first function (i.e. the remaining air time) in the form of a countdown, such as in the style of a progress bar used to indicate the countdown.

[0083] Before the countdown of the prompt message 305 is completed (that is, during the duration of the first function), the second control 303 can be triggered and displayed by the second operation on the first control 301.

[0084] Step 203, in response to the end of the second operation, displays the first virtual object using the first virtual prop in the virtual environment.

[0085] Optionally, the second operation can be switched to control a second control to adjust the usage direction of the first virtual item. Upon completion of the second operation, the usage direction of the first virtual item is determined, and the client will control the first virtual object to use the first virtual item along that usage direction.

[0086] For example, when the second operation is a swipe operation, in response to the user's finger leaving the touch screen (i.e., releasing the finger), the swipe operation ends, and the first virtual object is triggered to use the first virtual prop along the usage direction. Optionally, when the first virtual prop is a virtual throwable, the usage direction may refer to the throwing direction of the virtual throwable; when the first virtual prop is a virtual launching device, the usage direction may refer to the launching direction of the launchable corresponding to the virtual launching device. This application embodiment does not limit this.

[0087] In one example, the second control is a roulette wheel control, which is used to control the direction of use of the first virtual item. The roulette wheel control includes a movable element and a movable area. The position of the movable element within the movable area controls the direction of use of the first virtual item. A second operation controls the movement of the movable element within the movable area.

[0088] For example, refer to Figure 4 The second control 303 is a wheel control, which includes a movable element 3031 and a movable area 3032. Users can adjust the position of the movable element 3031 in the movable area 3032 by sliding to adjust the usage direction of the first virtual prop.

[0089] For example, when the second control is a roulette wheel control, the embodiments of this application may further include the following:

[0090] 1. In response to a second operation on the first control, display the usage direction information corresponding to the first virtual prop. The usage direction information is used to indicate the usage direction of the first virtual prop.

[0091] Optionally, when the second control is triggered, the first virtual item is selected and used by the first virtual object, and the client correspondingly displays the usage direction information of the first virtual item. The usage direction information in the initial state can be located in the center of the user interface, and this usage direction information can be adjusted as the movable element moves.

[0092] For example, this uses direction information displayed in a graphical style. For instance, refer to... Figure 4 The usage direction information 306 of the first virtual prop is displayed in the form of a "crosshair". It can be used to indicate the usage direction of the first virtual prop to help the user aim at the object to which the first virtual prop is used, such as the second virtual object 307.

[0093] In one example, the aforementioned use of directional information may include a prompt graphic indicating the remaining duration of a first function of the first control. The remaining duration refers to the remaining time the first function is active, that is, the remaining time the first virtual object is in the target state. This application embodiment does not limit the prompt graphic.

[0094] For example, refer to Figure 6 The directional information 306 includes a tooltip graphic 308, which can overlap with the crosshair and is presented as a progress bar indicating the remaining duration. Optionally, the tooltip graphic 308 displays the remaining duration as a countdown. Optionally, when the tooltip graphic 308 is added to the directional information, the first control 301 can cancel the display of the tooltip information 305.

[0095] In one example, when the user controls the second control through a second operation, a display prompt graphic is added to the directional information to show the user the remaining duration of the first function. This makes it easier for the user to quickly obtain the remaining duration of the first function while aiming at the object to be used by the first virtual prop, thus improving the convenience of information acquisition.

[0096] 2. In response to the second operation, adjust the direction information used.

[0097] The second operation allows you to move movable elements within the second control, with the position adjusted synchronously to follow the movement of the movable element using directional information. As time passes, the tooltip graphic also dynamically adjusts its display.

[0098] For example, refer to Figure 6 In response to the user's swipe gesture, moving the movable element 3031 to the upper left, the direction information 306 also moves synchronously to the upper left to aim at the second virtual object 307. In response to the user ending the swipe gesture, the client controls the first virtual object 302 to throw the first virtual item at the second virtual object 307.

[0099] This embodiment of the application places the second control onto the wheel control and displays usage direction information, making it easier for users to adjust the usage direction of the first virtual prop to aim at the target, thereby improving the user experience. Furthermore, the control of the wheel control can be seamlessly connected with the sliding operation, which helps to improve the continuity of the operation.

[0100] In one example, if the first virtual prop is a virtual projectile and the target of the first virtual prop is a second virtual object, the client displays the first virtual object throwing the virtual projectile towards the second virtual object to attack it. If the first virtual prop is a virtual launching device and the target of the first virtual prop is a second virtual object, the client displays the first virtual object controlling the first virtual prop to launch a projectile towards the second virtual object to attack it. The second virtual object can refer to any virtual object other than the first virtual object.

[0101] Optionally, the aforementioned first virtual item can be customized by the user, such as being selected by the user before playing the game. Alternatively, the client can recommend the first virtual item based on its priority, such as automatically selecting the highest-priority virtual item as the first virtual item. The client can also automatically recommend the first virtual item based on the state of the first virtual object, such as automatically determining the first virtual item based on the distance between the first virtual object and the attack target, and the current state of the first virtual object. This embodiment of the application does not limit this approach.

[0102] For example, taking the client's automatic recommendation based on the state of the first virtual object as an example, when the user of the first virtual item is the second virtual object, the process of determining the first virtual item can be as follows:

[0103] 1. Obtain the relative distance between the first virtual object and the second virtual object.

[0104] The client obtains the position of the first virtual object in the virtual environment and the position of the second virtual object in the virtual environment (e.g., represented by coordinates). Based on the positions of the first and second virtual objects, the relative distance between the first and second virtual objects is determined. For example, the length of the straight line between the first and second virtual objects can be used to determine the relative distance.

[0105] Alternatively, the client may use at least one of the following methods to calculate the relative distance: Euclidean distance, Manhattan distance.

[0106] 2. From the virtual items owned by the first virtual object, identify candidate virtual items that match the relative distance.

[0107] The virtual items possessed by the first virtual object refer to the virtual items that the first virtual object can use. Candidate virtual items that match the relative distance can refer to virtual items whose maximum attack range is less than or equal to the relative distance.

[0108] For example, for any virtual projectile, if the maximum throwing distance of the virtual projectile is less than or equal to the relative distance, the virtual projectile can be identified as a candidate virtual prop to ensure that the first virtual object can apply the first virtual prop to the second virtual object.

[0109] 3. From the candidate virtual props, determine the first virtual prop that matches the state of the first virtual object.

[0110] Optionally, if a candidate virtual item is obtained, it may be directly identified as the first virtual item; if multiple candidate virtual items are obtained, the candidate virtual item that matches the state of the first virtual object may be identified as the first virtual item.

[0111] Candidate virtual props that match the state of the first virtual object refer to those suitable for use in the current state. For example, in an airborne state, if a virtual projectile's throwing range is increased and aiming at the second virtual object is facilitated, then the virtual projectile among the candidate virtual props can be identified as the first virtual prop. In a driving / crouching / prone state, if throwing and aiming virtual projectiles are not conducive, then the virtual launching device among the candidate virtual props can be identified as the first virtual prop.

[0112] Based on the distance and state of the first virtual object, the client can accurately and automatically determine the first virtual item applicable in the current state, which helps to improve the effectiveness of the first virtual item and thus increase user stickiness.

[0113] In summary, the technical solution provided by the embodiments of this application, in the process of controlling the first virtual object through the first operation on the first control, supports the second operation on the first control to quickly trigger the display of the second control and control the second control, so that the first virtual object can use the first virtual prop without the user having to click on the option of the first virtual prop to trigger the display of the second control, and without having to move from the option of the first virtual prop to the second control, reduces the complexity of the operation, thereby improving the convenience of the operation for controlling the virtual object, and further improving the efficiency of the operation for controlling the virtual object.

[0114] In some embodiments, the first control described above may correspond to different states, and the first control in different states has different functions. For example, the first control in the initial state has a first function, and the first control in the first state has a second function, and the first function and the second function are different. In response to the user's first operation on the first control, the client switches the first control from the initial state to the first state, and the first control in the first state can be triggered to perform the second function.

[0115] For example, refer to Figure 7 The embodiments of this application may further include the following steps:

[0116] Step S11: When the first function of the first control is triggered by the first operation, in response to the third operation on the first control, the second function of the first control is triggered.

[0117] The second function refers to another function of the first control. The second function of the second control can only be triggered if the first function of the first control is triggered; that is, the second function is implemented based on the first function. If the first function of the first control is not triggered by the first operation, the client will not trigger the second function of the first control in response to a third operation on the first control.

[0118] The third operation refers to the action used to trigger the action. The third operation may include at least one of the following: a click operation, a press operation, a swipe operation, or a double-click operation that activates the second function of the first control. Optionally, the third operation may be the same as the first operation. For example, both the first and third operations may be click operations on the first control.

[0119] When the second function of the first control is triggered, the client can control the movement of the first virtual object according to the second function.

[0120] In one example, if the first function of the first control is to cause the first virtual object to leave the ground and enter a state of levitation, and the second function of the first control is to cause the first virtual object in the state of levitation to jump again, then the embodiments of this application also include at least one of the following:

[0121] 1. In response to a first operation on the first control, display the process of the first virtual object jumping off the ground.

[0122] Optionally, the client controls the first virtual object to perform a jumping action to enter a state of airborne flight, in which the first virtual object does not contact the ground.

[0123] The height of the first virtual object can be set and adjusted according to actual usage needs, the movement trajectory of the first virtual object in the air state can also be set and adjusted according to actual usage needs, and the air time of the first virtual object can also be set and adjusted according to actual usage needs. This application embodiment does not limit these aspects.

[0124] Optionally, the initial state of the first virtual object includes at least one of the following: standing state, walking state, and running state.

[0125] 2. During the duration of the first function, in response to the third operation on the first control, the process of the first virtual object jumping again is displayed.

[0126] That is, when the first virtual object is in a state of being airborne, in response to the third operation on the first control, the client displays the process of the first virtual object jumping again in the air. Here, the airborne state corresponding to the first function can be called the first-order airborne state, and the airborne state corresponding to the second function can be called the second-order airborne state.

[0127] Optionally, outside the duration of the first function, in response to a third operation on the first control, the process of the first virtual object leaving the ground by jumping is displayed, but the process of the first virtual object jumping again in the air is not displayed. That is, the starting position of the second-order air state is in the air rather than on the ground.

[0128] In one example, if the first function of the first control is to control the first virtual object to use the first virtual vehicle, and the second function of the first control is to control the first virtual object to switch to using the second virtual vehicle, then the embodiments of this application further include at least one of the following:

[0129] 1. In response to a first operation on a first control, display the process of the first virtual object using the first virtual vehicle.

[0130] The embodiments of this application do not limit the first virtual vehicle, such as the first virtual vehicle may include at least one of the following: a ship, a hot air balloon, or an airplane.

[0131] For example, in response to the user's first action on the first control, the client displays the process of the first virtual object taking off into the sky using a hot air balloon.

[0132] 2. During the duration of the first function, in response to the third operation on the first control, the process of the first virtual object switching to use the second virtual vehicle is displayed.

[0133] The embodiments of this application do not limit the second virtual vehicle, which can be any virtual vehicle other than the first virtual vehicle.

[0134] For example, when the first virtual object takes off using a hot air balloon, in response to a third user action on the first control, the client displays the process of the first virtual object switching to using a paraglider and gliding.

[0135] In one example, if the first function of the first control is to control the first virtual object to squat, and the second function of the first control is to control the first virtual object to lie prone, then the embodiments of this application further include at least one of the following:

[0136] 1. In response to the first operation on the first control, display the process of the first virtual object crouching.

[0137] Optionally, in response to a first operation on the first control, the client controls the first virtual object to perform a squatting and bending motion, so that the first virtual object switches from a standing state to a squatting state.

[0138] 2. During the duration of the first function, in response to the third operation on the first control, the process of displaying the first virtual object lying on the ground is shown.

[0139] Optionally, when the first virtual object is in a crouching state, in response to the user's third operation on the first control, the client controls the first virtual object to perform a prone action, so that the first virtual object switches from the crouching state to the prone state.

[0140] For example, taking levitation as an example, refer to Figure 8 When the user uses the first function of the first control 301 to put the first virtual object 302 into a first-order air state, in response to the user's click operation on the first control 301 again, the client controls the first virtual object 302 to jump in the air again to enter the second-order air state.

[0141] Optionally, when the second function of the first control is triggered, the duration of the first virtual object in the target state is extended. For example, when the first virtual object enters the second-order airborne state, the corresponding airborne duration of the first virtual object is extended, such as by 1 minute or 2 minutes.

[0142] For example, the duration of the first function can be extended. If the duration of the first function is 1 minute, the extended vacancy time is 2 minutes. The duration of the first function can also be extended. If the duration of the first function is 1 minute and the remaining duration is 30 seconds, the extended vacancy time is 1 minute and 30 seconds. This application embodiment does not limit this.

[0143] For example, refer to Figure 8 The client adjusts the prompt information 305 corresponding to the first control 301 according to the extended vacancy time, such as adjusting the total time indicated by the prompt information 305 to 2 minutes, and determining the proportion of the extended vacancy time relative to the total time. Finally, the progress bar is adjusted according to this proportion.

[0144] Optionally, the extended duration can be determined as the remaining duration of the second function.

[0145] In step S12, when the second function of the first control is triggered, in response to the second operation on the first control, the second control is displayed, and the second operation is switched to control the second control.

[0146] In other words, when the function of the first control is triggered, the user can trigger the display of the second control by performing a second operation on the first control.

[0147] In one example, the second control is triggered and displayed by a second operation on the first control during the duration of the second function of the first control. For instance, when the first virtual object is in a second-order airborne state, the user can quickly trigger the display of the second control by sliding an operation on the first control.

[0148] In one example, if the second function of the first control is triggered, in response to a subsequent first / third operation on the first control, the client will no longer trigger any function corresponding to the first control. Optionally, if the second function is triggered or the second control is added to the display, the client can de-display the first control.

[0149] Optionally, when the second function of the first control is triggered, the aforementioned usage direction information also includes a graphic indicator to show the remaining duration of the second function of the first control. This remaining duration is the extended duration described above.

[0150] In summary, the technical solutions provided by the embodiments of this application can be combined with different virtual vehicles, different movement postures, and different states, thereby effectively expanding the scope of application of the technical solutions provided by the embodiments of this application. For example, the first virtual prop can be used quickly in an airborne state, in a driving state, and in a non-standing state (such as a crouching state and a prone state), which helps to improve the flexibility of operation.

[0151] In addition, it supports quickly triggering the use of a second control by performing a second operation on the first control when different functions of the first control are triggered, which helps to further improve the flexibility of operation.

[0152] In some embodiments, reference Figure 9 Taking the first control used to control the first virtual object to levitate as an example, the technical solution provided in the embodiments of this application will be described. The embodiments of this application may also include the following:

[0153] 1. The player clicks the jump control.

[0154] The user interface of the game application displays a jump control (i.e., the first control mentioned above). When the client of the game application detects that the player clicks the jump control, the client controls the first virtual object to perform a jump action to leap from the ground and enter a first-level air state.

[0155] Optionally, the first virtual object in the initial state is in a walking state. At this time, the jump control can be clicked but not swiped up, and the wheel control (i.e. the second control mentioned above) is hidden.

[0156] In one example, in a first-order airborne state, the trajectory of the first virtual object follows a parabolic pattern. For example, refer to... Figure 10 Curve 1001 represents the trajectory of the first virtual object in its airborne state. This trajectory can be decomposed into horizontal and vertical directions. Similarly, the initial velocity and acceleration can also be decomposed into horizontal and vertical directions.

[0157] For example, the first virtual object moves at a constant speed Vx in the horizontal direction. In the vertical direction, the first virtual object undergoes variable-speed motion due to gravity. If the initial velocity is Vyinit and the fixed acceleration is -g (g is the acceleration due to gravity), then Vy = Vyinit - gt, where t is time. Combining Vx and Vy, the trajectory of the first virtual object can be implemented as a parabola.

[0158] Optionally, from the start of the jump until Vy becomes 0, that is, between the start of the jump of the first virtual object from the ground to the highest point of the parabola, the client controls the first virtual object to perform the jump and ascent action.

[0159] When the first virtual object reaches the highest point of its parabola, the client controls the first virtual object to perform a hovering flight action.

[0160] After the first virtual object reaches the highest point of the parabola, the client controls the first virtual object to perform a falling action.

[0161] 2. Display a countdown timer on the jump control.

[0162] Optionally, when the client detects that the first virtual object has just left the ground, it can add a display of the remaining duration of the first-order airborne state to the jump control, such as displaying the remaining duration of the first-order airborne state in a countdown style.

[0163] For example, a countdown progress bar is displayed around the edge of the jump control, with a total duration of Tg, which is the remaining duration of the first-order airborne state.

[0164] At this point, the wheel control is hidden. Within time Tg, the user can trigger the display of the wheel control by swiping up on the jump control. After time Tg has elapsed, swiping up on the jump control will no longer trigger the display of the wheel control. Optionally, if the jump control has not been swiped up after time Tg, the client will hide the jump control.

[0165] In the first-order air state, the operation response logic of the jump control is as follows: when the jump control is clicked again, the client controls the first virtual object to perform the jump action again, and at the same time adjusts the position of the first virtual object to enter the second-order air state.

[0166] Alternatively, for the swipe operation of the jump control, if the swipe operation meets the set conditions, a wheel control for controlling the virtual projectile will appear at the point where the finger is pressed, and a crosshair (i.e., the aforementioned direction information) will be displayed in the center of the screen. A countdown progress bar will be displayed around the crosshair to indicate Tg (remaining air time). Optionally, the client may also hide the jump control.

[0167] In the second-order airborne state, the operation response logic of the jump control is as follows: when the jump control is clicked again, the client does not perform any task.

[0168] Alternatively, for the swipe operation of the jump control, if the swipe operation meets the set conditions, a wheel control for controlling the virtual projectile will appear at the point where the finger is pressed, and a crosshair (i.e., the aforementioned direction information) will be displayed in the center of the screen. A countdown progress bar will be displayed around the crosshair to indicate Tg (i.e., the updated remaining air time). Optionally, the client may also hide the jump control.

[0169] In one example, in a second-order airborne state, the trajectory of the first virtual object also follows a parabolic pattern. For example, refer to... Figure 11Curve 1002 represents the trajectory of the first virtual object in a second-order airborne state. This trajectory can be decomposed into horizontal and vertical directions. The initial velocity and acceleration can also be decomposed into horizontal and vertical directions. The difference from the first-order airborne state is that the starting point of curve 1002 is a point in curve 1001, not the ground.

[0170] For example, the first virtual object moves at a constant speed Vx in the horizontal direction. In the vertical direction, the first virtual object undergoes variable-speed motion due to gravity. If the initial velocity is Vyinit and the fixed acceleration is -g (g is the acceleration due to gravity), then Vy = Vyinit - gt, where t is time. Combining Vx and Vy, the trajectory of the first virtual object in its second-order airborne state can be implemented as a parabola.

[0171] Optionally, from the start point to when Vy becomes 0, that is, between the start point and the highest point of curve 1002 reached by the first virtual object, the client controls the first virtual object to perform the start-up action.

[0172] When the first virtual object reaches the highest point of curve 1002, the client controls the first virtual object to perform a hovering flight action.

[0173] After the first virtual object reaches the highest point of curve 1002, the client controls the first virtual object to perform a falling action.

[0174] In the second-order air state, the jump control is not clickable, and a countdown progress bar is displayed around the edge of the jump control. The total duration is updated to: Tg = Tg + Te (extended duration), which is the remaining duration of the second-order air state.

[0175] At this point, the wheel control is hidden. Within time Tg, the user can trigger the display of the wheel control by swiping up on the jump control. After time Tg has elapsed, swiping up on the jump control will no longer trigger the display of the wheel control. Optionally, if the jump control has not been swiped up after time Tg, the client will hide the jump control.

[0176] Optionally, within time Tg, in response to the user's swipe operation on the jump control, the client adds a display wheel control.

[0177] 3. Use the joystick controls to aim at the target.

[0178] Optionally, users can continue to control the wheel controls by sliding to control the direction of the virtual projectile.

[0179] In one example, the operation response logic of the roulette control is as follows: within time Tg, in response to the user's sliding operation on the roulette control, the client synchronously adjusts the crosshair to aim at the attack target. When it is detected that the user releases the hand to end the sliding operation, the first virtual object is controlled to throw the virtual projectile at the attack target, so as to obtain a relatively perfect throwing damage.

[0180] 4. Release.

[0181] When the client detects that the user has released their finger to end the swipe operation, it controls the first virtual object to throw the virtual projectile at the target.

[0182] Optionally, when the user controls the wheel via a swipe, if the user locks the crosshair onto the target and releases the control within time Tg, the client will trigger remote response logic:

[0183] 1. Adjust the orientation of the first virtual object to face the attack target, that is:

[0184] player.direction = normalize(target.pos - player.pos); where normalize is a normalization function, player.direction is the orientation of the first virtual object, target.pos is the position of the target, and player.pos is the position of the first virtual object.

[0185] 2. Camera Turning Synchronization: Set the player's camera orientation (i.e., the viewpoint corresponding to the first virtual object) to match the orientation of the first virtual object.

[0186] Clientscene.camera.direction = player.direction; where Clientscene.camera.direction is the player's camera orientation (used to observe the virtual environment).

[0187] 3. When an attack target is being targeted, the client displays the attack target, such as by adding a red outline to the rendering of the attack target.

[0188] In summary, the technical solution provided in this application, during the process of controlling the first virtual object through a click operation on the jump control, supports a sliding operation on the jump control to quickly trigger the display of the wheel control and control the wheel control, so that the first virtual object can use the first virtual prop without the user having to click on the option of the first virtual prop to trigger the display of the wheel control, and without having to move from the option of the first virtual prop to the wheel control, reducing the complexity of the operation, thereby improving the convenience of the operation for controlling the virtual object, and further improving the efficiency of the operation for controlling the virtual object.

[0189] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0190] refer to Figure 12 This diagram illustrates a block diagram of a control device for a virtual object according to an embodiment of this application. The device has the functionality to implement the method example described above; this functionality can be implemented in hardware or by hardware executing corresponding software. The device can be the terminal device described above, or it can be installed within a terminal device. For example... Figure 12 As shown, the device 1200 includes: a user interface display module 1201, a second control display module 1202, and a virtual prop usage module 1203.

[0191] The user interface display module 1201 is used to display a user interface, wherein the user interface displays a first control for controlling a first virtual object.

[0192] The second control display module 1202 is used to display a second control in response to a second operation on the first control when the first function of the first control is triggered by a first operation. The second operation is switched to control the second control, and the second control is used to use a first virtual prop.

[0193] The virtual props usage module 1203 is used to display the first virtual object using the first virtual props in the virtual environment in response to the end of the second operation.

[0194] In some embodiments, the second operation is a sliding operation; the second control display module 1202 is used to display the second control in response to the sliding operation starting from the first control.

[0195] In some embodiments, the second control display module 1202 is further configured to, in response to a sliding operation originating from the first control, obtain the sliding distance of the sliding operation; and display the second control if the sliding distance is greater than or equal to a distance threshold; or, in response to a sliding operation originating from the first control, obtain the touch position of the sliding operation; and display the second control if the touch position moves to a set area.

[0196] In some embodiments, the second control display module 1202 is further configured to, in response to a sliding operation originating from the first control, obtain the touch position of the sliding operation; and display the second control based on the touch position.

[0197] In some embodiments, such as Figure 13 As shown, the device 1200 further includes a first control module 1204.

[0198] The first control module 1204 is used to trigger the second function of the first control in response to a third operation on the first control when the first function of the first control is triggered by the first operation.

[0199] The second control display module 1202 is further configured to display the second control in response to the second operation on the first control when the second function of the first control is triggered, wherein the second operation is switched to control the second control.

[0200] In some embodiments, the second control is triggered to be displayed by the second operation on the first control during the duration of the first function of the first control; or, the second control is triggered to be displayed by the second operation on the first control during the duration of the second function of the first control.

[0201] In some embodiments, the first function of the first control is to cause the first virtual object to leave the ground and enter a state of levitation, and the second function of the first control is to cause the first virtual object in the levitation state to jump again; such as Figure 13 As shown, the device 1200 also includes a process display module 1205.

[0202] The process display module 1205 is used to display the process of the first virtual object jumping off the ground in response to a first operation on the first control; or, during the duration of the first function, in response to a third operation on the first control, to display the process of the first virtual object jumping again.

[0203] In some embodiments, the second control is a roulette wheel control, which is used to control the direction of use of the first virtual item; such as Figure 13 As shown, the device 1200 also includes a direction information display module 1206.

[0204] The direction information display module 1206 is used to, in response to a second operation on the first control, add the display of usage direction information corresponding to the first virtual prop, wherein the usage direction information is used to indicate the usage direction of the first virtual prop; and in response to the second operation, adjust the usage direction information.

[0205] In some embodiments, the use of directional information includes a prompt graphic indicating the remaining duration of a first function of the first control or the remaining duration of a second function of the first control.

[0206] In some embodiments, the first function of the first control is used to control the first virtual object to use the first virtual vehicle, and the second function of the first control is used to control the first virtual object to switch to using the second virtual vehicle.

[0207] The process display module 1205 is further configured to, in response to a first operation on the first control, display the process of the first virtual object using the first virtual vehicle; or, during the duration of the first function, in response to a third operation on the first control, display the process of the first virtual object switching to use the second virtual vehicle.

[0208] In some embodiments, the first function of the first control is to control the first virtual object to squat, and the second function of the first control is to control the first virtual object to lie prone.

[0209] The process display module 1205 is further configured to display the process of the first virtual object crouching in response to a first operation on the first control; or, during the duration of the first function, to display the process of the first virtual object lying on the ground in response to a third operation on the first control.

[0210] In some embodiments, the first virtual prop is used by a second virtual object; such as Figure 13 As shown, the device 1200 further includes: a relative distance acquisition module 1207, a candidate prop determination module 1208, and a first prop determination module 1209.

[0211] The relative distance acquisition module 1207 is used to acquire the relative distance between the first virtual object and the second virtual object.

[0212] The candidate prop determination module 1208 is used to determine candidate virtual props that match the relative distance from the virtual props owned by the first virtual object.

[0213] The first item determination module 1209 is used to determine the first virtual item that matches the state of the first virtual object from the candidate virtual items.

[0214] In summary, the technical solution provided by the embodiments of this application, in the process of controlling the first virtual object through the first operation on the first control, supports the second operation on the first control to quickly trigger the display of the second control and control the second control, so that the first virtual object can use the first virtual prop without the user having to click on the option of the first virtual prop to trigger the display of the second control, and without having to move from the option of the first virtual prop to the second control, reduces the complexity of the operation, thereby improving the convenience of the operation for controlling the virtual object, and further improving the efficiency of the operation for controlling the virtual object.

[0215] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0216] Please refer to Figure 14 This diagram illustrates a structural block diagram of a terminal device according to an embodiment of this application. The terminal device 1400 is used to implement the virtual object control method provided in the above embodiments. The terminal device 1400 may be... Figure 1 Terminal device 10 in the implementation environment shown. Specifically:

[0217] Typically, terminal device 1400 includes a processor 1401 and a memory 1402.

[0218] Optionally, processor 1401 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1401 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1401 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1401 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1401 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0219] Optionally, memory 1402 may include one or more computer-readable storage media, which may be non-transitory. Memory 1402 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in memory 1402 is used to store a computer program configured to be executed by one or more processors to implement the control method for the virtual object described above.

[0220] In some embodiments, the terminal device 1400 may also optionally include a peripheral device interface 1403 and at least one peripheral device. The processor 1401, memory 1402, and peripheral device interface 1403 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1404, a display screen 1405, an audio circuit 1406, and a power supply 1407.

[0221] Those skilled in the art will understand that Figure 14 The structure shown does not constitute a limitation on the terminal device 1400, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0222] In some embodiments, a computer-readable storage medium is also provided, wherein a computer program is stored therein, which, when executed by a processor, implements the control method for the virtual object described above.

[0223] Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives), or optical disc, etc. The random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0224] In some embodiments, a computer program product is also provided, the computer program product including a computer program stored in a computer-readable storage medium. A processor of a terminal device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, causing the terminal device to perform the control method for the virtual object described above.

[0225] It should be noted that, in this application embodiment, before and during the collection of user data, a prompt interface, pop-up window, or voice prompt message can be displayed. This prompt interface, pop-up window, or voice prompt message is used to inform the user that their data is currently being collected. This ensures that the application only begins executing the steps related to collecting user data after receiving confirmation from the user regarding the prompt interface or pop-up window; otherwise (i.e., without receiving confirmation from the user), the steps to collect user data end, meaning no user data is collected. In other words, all user data collected in this application is processed strictly in accordance with the requirements of relevant national laws and regulations. The informed consent or separate consent of the personal information subject is obtained only with the user's consent and authorization. Subsequent data use and processing are conducted within the scope of laws, regulations, and the personal information subject's authorization. Furthermore, the collection, use, and processing of relevant user data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the virtual environment, virtual props, first operation, and second operation involved in this application are all obtained with full authorization.

[0226] It should be understood that "multiple" as used herein refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, the step numbers described herein are merely illustrative of one possible execution order. In some other embodiments, the steps may not be executed in numerical order, such as two steps with different numbers being executed simultaneously, or two steps with different numbers being executed in the reverse order of the illustration. This application does not limit this.

[0227] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A control method of a virtual object, characterized by, The method comprises: displaying a user interface, wherein a first control for controlling a first virtual object is displayed in the user interface; in a case where a first function of the first control is triggered by a first operation, displaying a second control in response to a second operation on the first control, the second operation being switched to be used for controlling the second control, the second control being used for using a first virtual prop; in response to an end of the second operation, displaying the first virtual object using the first virtual prop in a virtual environment.

2. The method of claim 1, wherein, The second operation is a sliding operation; The displaying the second control in response to the second operation on the first control comprises: in response to a sliding operation starting from the first control, displaying the second control.

3. The method of claim 2, wherein, The displaying the second control in response to the sliding operation starting from the first control comprises: in response to a sliding operation starting from the first control, obtaining a sliding distance of the sliding operation; in a case where the sliding distance is greater than or equal to a distance threshold, displaying the second control; or, in response to a sliding operation starting from the first control, obtaining a touch position of the sliding operation; in a case where the touch position moves to a setting area, displaying the second control.

4. The method according to any one of claims 2 to 3, characterized in that, The displaying the second control in response to the sliding operation starting from the first control comprises: in response to a sliding operation starting from the first control, obtaining a touch position of the sliding operation; based on the touch position, displaying the second control.

5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: in a case where the first function of the first control is triggered by the first operation, triggering a second function of the first control in response to a third operation on the first control; in a case where the second function of the first control is triggered, displaying the second control in response to the second operation on the first control, the second operation being switched to be used for controlling the second control.

6. The method of any one of claims 1 to 5, wherein: in a duration of the first function of the first control, the second control is triggered to be displayed by the second operation on the first control; or, in a duration of the second function of the first control, the second control is triggered to be displayed by the second operation on the first control.

7. The method according to any one of claims 1 to 6, characterized in that, The first function of the first control is used to make the first virtual object leave the ground into a floating state, and the second function of the first control is used to make the first virtual object in the floating state jump again; The method further comprises: in response to the first operation on the first control, displaying a process in which the first virtual object leaves the ground by jumping; or, in a duration of the first function, in response to a third operation on the first control, displaying a process in which the first virtual object jumps again.

8. The method according to any one of claims 1 to 7, characterized in that, The second control is a wheel disc control, and the wheel disc control is used to control a use direction of the first virtual prop; the method further comprises: in response to a second operation on the first control, display use direction information corresponding to the first virtual prop, the use direction information being used to indicate a use direction of the first virtual prop; in response to the second operation, adjust the use direction information.

9. The method of claim 8, wherein, The use direction information includes a prompt graphic used to indicate a remaining duration of a first function of the first control or a remaining duration of a second function of the first control.

10. The method according to any one of claims 1 to 6, characterized in that, The first function of the first control is used to control the first virtual object to use a first virtual vehicle, and the second function of the first control is used to control the first virtual object to switch to use a second virtual vehicle; the method further comprises: in response to a first operation on the first control, display a process in which the first virtual object uses the first virtual vehicle; or, in response to a third operation on the first control within a duration of the first function, display a process in which the first virtual object switches to use the second virtual vehicle.

11. The method according to any one of claims 1 to 6, characterized in that, The first function of the first control is used to control the first virtual object to crouch, and the second function of the first control is used to control the first virtual object to crawl; the method further comprises: in response to a first operation on the first control, display a process in which the first virtual object crouches; or, in response to a third operation on the first control within a duration of the first function, display a process in which the first virtual object crawls.

12. The method according to any one of claims 1 to 11, characterized in that, The use object of the first virtual prop is a second virtual object; the method further comprises: obtain a relative distance between the first virtual object and the second virtual object; from virtual props possessed by the first virtual object, determine a candidate virtual prop that matches the relative distance; from the candidate virtual prop, determine the first virtual prop that matches a state of the first virtual object.

13. A control device of a virtual object, characterized by, The apparatus comprises: a user interface display module configured to display a user interface, the user interface displaying a first control used to control a first virtual object; a second control display module configured to, in a case where a first function of the first control is triggered by a first operation, display a second control in response to a second operation on the first control, the second operation being switched to be used to control the second control, the second control being used to use a first virtual prop; a virtual prop use module configured to, in response to an end of the second operation, display the first virtual object using the first virtual prop in a virtual environment.

14. A terminal device, comprising: The terminal device comprises a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the virtual object control method of any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, the computer program being loaded and executed by the processor to implement the virtual object control method of any one of claims 1 to 12.

16. A computer program product, characterised in that, The computer program product comprises a computer program stored in a computer readable storage medium, and a processor reads and executes the computer program from the computer readable storage medium to implement the control method of the virtual object according to any one of claims 1 to 12.