Method and apparatus for controlling avatar, and terminal and storage medium

By setting two controls in the user interface of the shooting game, the problem of too large display area for virtual props is solved, achieving a simpler user interface and a more efficient operating experience.

WO2023029828A9PCT designated stage expired Publication Date: 2024-09-12TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2022/108500
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-08-30
Filing Date
2022-07-28
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

In shooting games, the display method of virtual props requires a large display area, resulting in an excessively high screen-to-body ratio and affecting the aesthetics and operating experience of the user interface.

Method used

By setting two controls in the user interface, the first control is used to display and switch the usage status of the virtual props currently used by the virtual object, and the second control is used to switch the virtual props used by the virtual object. Only the first control is retained to display the currently used virtual props. virtual props, reducing the screen-to-body ratio of the prop display area.

Benefits of technology

On the premise of ensuring the display and switching functions of virtual props, the screen-to-body ratio of the prop display area is reduced, making the user interface more concise and improving the visual experience and operating efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2022108500_12092024_PF_FP_ABST
    Figure CN2022108500_12092024_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of computers and the Internet. Disclosed are a method and apparatus for controlling an avatar, and a terminal and a storage medium. The method comprises: displaying a user interface, wherein the user interface displays a virtual environment picture, a first control and a second control; in response to an operation on the first control, controlling an avatar to hold the currently used first virtual prop in their hands or withdraw same; and in response to an operation on the second control, controlling the avatar to switch the currently used first virtual prop to a second virtual prop, and switch, to the icon of the second virtual prop, the icon of the first virtual prop that is displayed in an area corresponding to the first control. In the present application, only a virtual prop that is currently used by an avatar is displayed, such that the screen occupation proportion of a prop display area is reduced while it is ensured that a prop display function, a prop ownership state switching function and a prop switching function are realized by means of controls.
Need to check novelty before this filing date? Find Prior Art

Description

Virtual object control method, device, terminal and storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on August 30, 2021, application number 202111007282.4, and application name “Virtual Object Control Method, Device, Terminal and Storage Medium”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of Internet technology, and in particular to a method, device, terminal, and storage medium for controlling a virtual object. Background Art

[0003] In shooting games, users can control virtual objects and use virtual props to perform shooting, close combat, and other actions.

[0004] In related technologies, in order to facilitate users to operate virtual props and realize various functions of virtual props, the virtual props owned by the virtual object can be displayed in the bottom center position of the game interface. Usually, the virtual object has two to three virtual props, and the two to three virtual props are displayed flatly on the left and right.

[0005] However, the display method of the above-mentioned virtual props requires a large display area, and the screen-to-body ratio of the display area is too high.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a method, device, terminal, and storage medium for controlling a virtual object, which can reduce the screen-to-body ratio of the prop display area. The technical solution is as follows:

[0008] According to one aspect of an embodiment of the present application, a method for controlling a virtual object is provided, the method being executed by a terminal, the method comprising:

[0009] Displaying a user interface, wherein the user interface displays a virtual environment screen, a first control, and a second control; wherein the virtual environment screen is a screen for observing the virtual environment from the perspective of a virtual object;

[0010] In response to an operation on the first control, controlling the virtual object to switch the use state of the first virtual prop currently in use; wherein the icon of the first virtual prop is displayed in the area corresponding to the first control;

[0011] In response to an operation on the second control, the virtual object is controlled to switch the first virtual prop currently in use to a second virtual prop, and the icon of the first virtual prop displayed in the area corresponding to the first control is switched to the icon of the second virtual prop.

[0012] According to one aspect of an embodiment of the present application, a device for controlling a virtual object is provided. The device is deployed on a terminal and includes:

[0013] A display module is configured to display a user interface, wherein the user interface displays a virtual environment image, a first control, and a second control; wherein the virtual environment image is an image of observing the virtual environment from the perspective of a virtual object;

[0014] A first control module is configured to control the virtual object to switch the use state of a first virtual item currently in use in response to an operation on the first control; wherein an icon of the first virtual item is displayed in the area corresponding to the first control;

[0015] The second control module is used to control the virtual object to switch the first virtual prop currently in use to a second virtual prop in response to an operation on the second control, and to switch the icon of the first virtual prop displayed in the area corresponding to the first control to the icon of the second virtual prop.

[0016] According to one aspect of an embodiment of the present application, a terminal is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the above-mentioned virtual object control method.

[0017] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the above-mentioned virtual object control method.

[0018] According to one aspect of an embodiment of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the aforementioned virtual object control method.

[0019] The technical solutions provided in the embodiments of the present application can bring the following beneficial effects:

[0020] By setting two controls in the user interface, namely the first control and the second control. The first control is used to display the icon of the virtual prop currently used by the virtual object, so that the user can control the virtual object to switch the usage status of the currently used virtual prop (such as the first virtual prop) by performing operations on the first control. The user can also switch the virtual prop currently used by the virtual object by performing operations on the second control, for example, controlling the virtual object to switch the currently used first virtual prop to the second virtual prop, and switching the icon of the first virtual prop displayed in the area corresponding to the first control to the icon of the second virtual prop. In other words, this solution adds a second control for prop switching, and only retains the first control to display the virtual prop currently used by the virtual object, that is, only one virtual prop is displayed, thereby reducing the screen ratio of the prop display area while ensuring that the functions of virtual prop display, virtual prop usage status switching, and virtual prop switching are realized through the controls (first control and second control). BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0022] FIG1 is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;

[0023] FIG2 is a flow chart of a method for controlling a virtual object provided by one embodiment of the present application;

[0024] FIG3 is a schematic diagram of a user interface provided by an embodiment of the present application;

[0025] FIG4 is a flow chart of a method for controlling a virtual object provided by one embodiment of the present application;

[0026] FIG5 is a schematic diagram of a virtual prop in a handheld and folded state provided by an embodiment of the present application;

[0027] FIG6 is a schematic diagram of switching virtual props provided by an embodiment of the present application;

[0028] FIG7 is a flow chart of a method for controlling a virtual object provided by one embodiment of the present application;

[0029] FIG8 is a schematic diagram showing a display of candidate virtual props provided by one embodiment of the present application;

[0030] FIG9 is a schematic diagram of switching virtual props provided by an embodiment of the present application;

[0031] FIG10 is a schematic diagram of switching virtual props provided by an embodiment of the present application;

[0032] FIG11 is a flow chart of a method for controlling a virtual object provided by one embodiment of the present application;

[0033] FIG12 is a schematic diagram of switching virtual props provided by one embodiment of the present application;

[0034] FIG13 is a block diagram of a device for controlling a virtual object according to an embodiment of the present application;

[0035] FIG14 is a block diagram of a device for controlling a virtual object according to an embodiment of the present application;

[0036] FIG15 is a block diagram of a terminal structure provided by an embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0038] Please refer to Figure 1, which shows a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application. The implementation environment of the solution can be implemented as a control system for a virtual object. The implementation environment may include: a terminal 10 and a server 20.

[0039] The terminal 10 may be an electronic device such as a mobile phone, tablet computer, game console, e-book reader, multimedia player, wearable device, PC (Personal Computer), etc. The client of the target application (such as a game application) may be installed in the terminal 10 .

[0040] In the embodiments of the present application, the target application refers to an application that provides a shooting scene. The target application can provide a virtual environment for the user to immerse and operate a virtual character to perform activities in the virtual environment, such as walking, shooting, etc. In one possible implementation, the target application may include a shooting application. Exemplarily, shooting applications include shooting game applications, virtual reality (VR) shooting applications, augmented reality (AR) shooting applications, three-dimensional map applications, military simulation applications, social applications, interactive entertainment applications, etc. Typically, the target application can be a TPS (Third-Person Shooting Game), an FPS (First-Person Shooting Game), a MOBA (Multiplayer Online Battle Arena) game, a multiplayer gunfight survival game, etc. In addition, for different target applications, the form of the virtual objects provided may vary, and the corresponding functions may also vary. This can be pre-configured according to actual needs, and the embodiments of the present application are not limited to this.

[0041] Among them, the above-mentioned virtual environment can be a scene displayed (or provided) when the client of the target application (such as a game application) is running on the terminal 10. The virtual environment can refer to a scene created for virtual objects to carry out activities (such as game competitions), such as a virtual house, a virtual island, a virtual map, etc. The virtual environment can be a simulation environment of the real world, a semi-simulated and semi-fictitious environment, or a purely fictitious environment. The virtual environment can be a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment, which is not limited in the embodiments of the present application. When the client of the target application is running on the terminal 10, different virtual environments can be displayed (or provided) in different time periods.

[0042] The above-mentioned virtual object may refer to an object controlled by a user account in a target application. Taking the target application as a game application as an example, a virtual object may refer to an object controlled by a user account or AI (Artificial Intelligence) in a game application. A virtual object may be in the form of a person, an animal, a cartoon or other form, which is not limited in the embodiments of the present application. A virtual object may be displayed in a three-dimensional form or in a two-dimensional form, which is not limited in the embodiments of the present application. In one possible implementation, when the virtual environment is a three-dimensional virtual environment, the virtual object is a three-dimensional stereo model created based on animation skeleton technology. Each virtual object has its own shape and volume in the three-dimensional virtual environment, and occupies a part of the space in the three-dimensional virtual environment.

[0043] In an embodiment of the present application, the above-mentioned virtual objects use virtual props for fighting. Virtual props refer to props provided by the system for virtual objects to fight, including virtual guns, virtual swords, virtual shells, etc. Virtual props can be displayed in three-dimensional form or in two-dimensional form, and this embodiment of the present application does not limit this. In one possible implementation, when the virtual environment is a three-dimensional virtual environment, the virtual props are three-dimensional models. Each virtual prop has its own shape and volume in the three-dimensional virtual environment and occupies a part of the space in the three-dimensional virtual environment. The server 20 is used to provide background services for the client of the target application in the terminal 10. For example, the server 20 can be the background server of the above-mentioned target application. The server 20 can be a single server, or a server cluster composed of multiple servers, or a cloud computing service center. In a possible implementation, the server 20 provides background services for the target applications in multiple terminals 10 at the same time.

[0044] The terminal 10 and the server 20 can communicate with each other via a network 30. The network 30 can be a wired network or a wireless network.

[0045] In embodiments of the present method, each step may be performed by a terminal, such as a client of the target application running on the terminal. In some embodiments, the target application may be an application developed based on a three-dimensional virtual environment engine that can construct a three-dimensional virtual environment, virtual objects, and virtual props, thereby providing a more immersive gaming experience for users.

[0046] Please refer to Figure 2, which shows a flow chart of a method for controlling a virtual item according to an embodiment of the present application. The method may include the following steps (steps 210 to 230):

[0047] Step 210 , displaying a user interface, wherein the user interface displays a virtual environment screen, a first control, and a second control; wherein the virtual environment screen is a screen for observing the virtual environment from the perspective of a virtual object.

[0048] The virtual environment screen displays the virtual environment from the perspective of a virtual object, which can be either a first-person or third-person perspective. Elements of the virtual environment, such as virtual buildings, virtual props, and virtual objects, are displayed in the virtual environment screen. In addition to displaying the virtual environment screen, the user interface also displays first and second controls, which can be buttons, sliders, scroll bars, icons, and the like, for user operation.

[0049] It should be noted that the display layer where the first control and the second control are located may be different from the virtual environment screen. In one possible implementation, the user interface includes a virtual environment screen and a control display layer located above the virtual environment screen. Among them, the virtual environment screen is a screen that observes the virtual environment from the perspective of a virtual object, which is used to display the virtual environment and the elements located in the virtual environment. The control display layer is used to display operation controls, such as the first control and the second control, to realize human-computer interaction functions. Generally, operation controls may include buttons, sliders, sliding bars, icons, etc., which are not limited in the embodiments of the present application. For example, please refer to Figure 3, the client displays a user interface 310. The first control 320 and the second control 330 may be displayed in the user interface 310. In addition, a virtual object 340 is also displayed in the user interface 310.

[0050] Step 220 : In response to the operation on the first control, the client controls the virtual object to switch the usage state of the first virtual prop currently in use; wherein the icon of the first virtual prop is displayed in the area corresponding to the first control.

[0051] In an embodiment of the present application, the first control is used to control the virtual object to switch the usage state of the currently used virtual prop. The usage state of the virtual prop includes a holding state and a retracted state. The above-mentioned operation on the first control includes but is not limited to any of the following: click, long press, and slide.

[0052] The handheld state may refer to a state in which the virtual object holds the virtual prop in its hand, as shown in FIG5(a); the retracted state may refer to a state in which the virtual prop is not held by the virtual object. For example, the virtual prop is carried on the back of the virtual object, as shown in FIG5(b).

[0053] Exemplarily, the usage state of the first virtual prop currently used by the virtual object is a handheld state, and the user clicks the first control, and the client controls the virtual object to put away the first virtual prop currently used, that is, the first virtual prop is switched from the handheld state to the put away state; exemplarily, the usage state of the first virtual prop currently used by the virtual object is a put away state, and the user clicks the first control, and the client controls the virtual object to hold the first virtual prop currently used, that is, the first virtual prop is switched from the put away state to the handheld state.

[0054] The area corresponding to the first control is used to display the virtual item currently used by the virtual object. If the virtual item currently used by the virtual object is the first virtual item, the area corresponding to the first control displays the icon of the first virtual item. The area corresponding to the first control refers to the display area of ​​the first control. As shown in Figure 3, the area corresponding to the first control 320 is its display area.

[0055] In one example, when the first virtual item is in a handheld state, the first control is displayed in a first display style; when the first virtual item is in a retracted state, the first control is displayed in a second display style; wherein the first display style and the second display style are different. In one possible implementation, the difference between the first display style and the second display style is related to a display factor, including but not limited to any of the following: brightness and color.

[0056] As shown in Figure 4, when responding to an operation on the first control, it can be determined whether the first virtual prop currently used by the virtual object is in a handheld state. If so, the virtual object is controlled to retract the first virtual prop, and the first control is displayed in the second display style; if not, the virtual object is controlled to hold the first virtual prop, and the first control is displayed in the first display style.

[0057] Exemplarily, the first display style and the second display style are different in brightness. As shown in FIG5 , when the first virtual prop is in a handheld state, the first control 320 displays the icon of the first virtual prop in a highlighted state (such as the first control corresponding to the figure shown in FIG5 (a)); when the first virtual prop is in a retracted state, the first control 320 displays the icon of the first virtual prop in a non-highlighted state (such as the first control corresponding to the figure shown in FIG5 (b)).

[0058] The first control is displayed in different display styles according to the usage status of the currently used virtual prop, so that the user can intuitively know the usage status of the virtual prop according to the display style of the first control, thereby improving the user experience.

[0059] In one possible implementation, the first control also supports operations such as discarding, configuring, and switching the currently used virtual props, integrating multiple functions on the same control, and further saving the screen ratio of the virtual props display area.

[0060] In one possible implementation, in response to a discard operation on a first control, the client controls the virtual object to discard the first virtual item currently in use. The discard operation includes, but is not limited to, any of the following: clicking, long pressing, and sliding. For example, if the discard operation is a slide, and the first virtual item currently in use by the virtual object is a dagger, and the user controls the touch position to slide the dagger icon displayed in the area corresponding to the first control to outside the area corresponding to the first control, the client controls the virtual object to discard the dagger.

[0061] In one possible implementation, after the virtual object discards the first virtual item currently in use, the client controls the virtual object to use a second virtual item, and displays the icon for the second virtual item in the area corresponding to the first control. Typically, the second virtual item is the item immediately following the first virtual item. For example, after the user controls the virtual object to discard a dagger, the client controls the virtual object to use an automatic rifle, and displays the icon for the automatic rifle in the area corresponding to the first control.

[0062] In one possible implementation, in response to a configuration operation on the first control, the client configures the accessories of the first virtual prop currently in use. The accessories of the above-mentioned virtual props refer to devices used to improve the performance of the virtual props, such as magazines, stocks, grips, scopes, etc. The configuration operation includes but is not limited to any of the following: click, slide, long press. Taking the configuration operation as a long press as an example, long press the first control, the client displays the accessory information of the first virtual prop currently used by the virtual object, and the user can disassemble, assemble and replace the accessories of the first virtual prop. Among them, the accessory information may include the accessories that are already assembled on the virtual prop currently used by the virtual object. In addition, the accessory information may also include accessories that can be assembled on the virtual prop currently used by the virtual object.

[0063] In one possible implementation, in response to a switching operation on the first control, the attack mode of the currently used first virtual prop is adjusted. The switching operation includes, but is not limited to, any of the following: clicking, sliding, and long pressing. The attack mode refers to the attack state of the virtual prop when the virtual object uses the virtual prop in combat. Attack modes may include melee and shooting, continuous shooting, and single-shot shooting. If the attack mode of the first virtual prop includes continuous shooting and single-shot shooting, as shown in Figure 5, the user double-clicks the first control 320 to adjust the current gun from continuous shooting to single-shot shooting.

[0064] In order to achieve different functions, the corresponding operations are also different. For example, if the discard operation is achieved by clicking the first control, then the configuration operation cannot be achieved by clicking the first control. This application does not limit the operations corresponding to each specific function.

[0065] By combining multiple functions on the same control, the screen ratio of the virtual prop display area can be further reduced while realizing various functions for the currently used virtual props.

[0066] Step 230: In response to the operation on the second control, the client controls the virtual object to switch the currently used first virtual prop to the second virtual prop, and switches the icon of the first virtual prop displayed in the area corresponding to the first control to the icon of the second virtual prop.

[0067] In an embodiment of the present application, the second control is used to switch the virtual prop currently used by the virtual object. The above-mentioned operations on the second control include but are not limited to any of the following: click, long press, and slide. In one example, the user clicks on the second control, and the client controls the virtual object to switch the first virtual prop currently used to the second virtual prop; and the client switches the icon of the first virtual prop displayed in the area corresponding to the first control to the icon of the second virtual prop. For example, as shown in Figure 6, the user clicks on the second control 330, and the client controls the virtual object 340 to switch the currently used gun to a dagger, and switches the icon of the gun displayed in the area corresponding to the first control 320 to the icon of the dagger.

[0068] One thing that needs to be explained is that the client switches the icon of the first virtual prop displayed in the area corresponding to the first control to the icon of the second virtual prop, which can be performed at the same time as the client controls the virtual object to switch the currently used first virtual prop to the second virtual prop, or before the client controls the virtual object to switch the currently used first virtual prop to the second virtual prop, or after the client controls the virtual object to switch the currently used first virtual prop to the second virtual prop. This application does not limit this.

[0069] It is understandable that before switching, the first virtual prop may be in different usage states, and according to the different usage states of the first virtual prop, the usage state of the second virtual prop may also be different after switching.

[0070] In one example, if the first virtual item is in either the held or folded state, the client can control the virtual object to hold a second virtual item. For example, if the virtual object is currently using a dagger and the second virtual item is an automatic rifle, regardless of whether the dagger is held or folded, after the user clicks the second control, the client controls the virtual object to switch from the dagger to the automatic rifle and hold the automatic rifle.

[0071] In another example, the usage state of the second virtual item after switching is the same as the usage state of the first virtual item before switching. That is, if the usage state of the first virtual item is in the handheld state, the client can control the virtual object to hold the second virtual item; or, if the usage state of the first virtual item is in the stowed state, the client can control the virtual object to stow the second virtual item. For example, if the virtual object is currently using a dagger and the second virtual item is an automatic rifle, if the dagger is in the handheld state, then after the user clicks the second control, the client controls the virtual object to switch the dagger to the automatic rifle and hold the automatic rifle; if the dagger is in the stowed state, then after the user clicks the second control, the client controls the virtual object to switch the dagger to the automatic rifle and stow the automatic rifle.

[0072] In a possible implementation, the first control and the second control may be displayed below the center of the screen of the user interface.

[0073] In another possible implementation, the first control and the second control can be displayed in a corner area of ​​the user interface. This corner area can be an area that is convenient for user operation. For example, in general, users may be accustomed to using their right hand for operation. Therefore, this corner area can be the upper right corner of the user interface. As shown in Figure 3, the first control 320 and the second control 330 are displayed in the upper right corner of the user interface.

[0074] By displaying the first control and the second control in the corner area of ​​the user interface, the user can operate the first control and the second control more easily and conveniently, thereby easily and conveniently realizing functions such as switching the usage status of virtual props and switching the currently used virtual props, thereby improving the operating experience.

[0075] In one possible implementation, the positions of the first control and the second control can be customized by the user. This application does not limit the relative positions of the first control and the second control. For example, as shown in FIG3 , the first control 320 is located to the left of the second control 330, and the two are closely adjacent. Since the first control is more obvious, the user can quickly find the position of the second control based on the position of the first control, thereby achieving the effect of quickly switching virtual props.

[0076] In summary, the technical solution provided by the embodiment of the present application is to set two controls in the user interface, namely a first control and a second control. The first control is used to display the icon of the virtual prop currently used by the virtual object, so that the user can control the virtual object to switch the usage status of the currently used virtual prop (such as the first virtual prop) by performing operations on the first control. The user can also switch the virtual prop currently used by the virtual object by performing operations on the second control, for example, controlling the virtual object to switch the currently used first virtual prop to the second virtual prop, and switching the icon of the first virtual prop displayed in the area corresponding to the first control to the icon of the second virtual prop. In other words, this solution adds a second control for prop switching, and only retains the first control to display the virtual prop currently used by the virtual object, that is, only one virtual prop is displayed, thereby ensuring that the functions of virtual prop display, virtual prop usage status switching, and virtual prop switching are realized through the controls (first control and second control), while reducing the screen ratio of the prop display area, making the user interface more concise, and providing users with a better visual experience.

[0077] Please refer to FIG7 , which shows a flow chart of a method for controlling a virtual object provided by another embodiment of the present application.

[0078] The above-mentioned operation on the second control includes a first operation and a second operation. Different operations on the second control result in different ways of switching the currently used virtual props.

[0079] If the operation on the second control is the first operation, then the second virtual prop is switched in response to the first operation on the second control. For example, the client determines the next virtual prop after the first virtual prop as the second virtual prop according to the prop sorting rule; and the client controls the virtual object to switch the first virtual prop to the second virtual prop.

[0080] In one example, the first operation may refer to a click operation. The prop sorting rule refers to a set prop sorting method, and the prop sorting rule may include multiple sorting criteria. In one possible implementation, the prop sorting rule may refer to sorting by prop type. In one example, the prop sorting rule refers to sorting virtual props in the order of automatic rifles, semi-automatic rifles, sniper rifles, and daggers. For example, the virtual object currently uses an automatic rifle as a virtual prop, and the user clicks on the second control. The client then determines the semi-automatic rifle as the second virtual prop and controls the virtual object to switch the automatic rifle to a semi-automatic rifle.

[0081] In an embodiment of the present application, different virtual props of the same type also have a certain order, and the order of their order may vary. In one possible implementation, different virtual props of the same type can be sorted in the order of collection. In another possible implementation, different props of the same type are sorted by the first letter of their names. For example, AKM (Avtomat Kalashnikov Modernizirovannyi, Kalashnikov automatic rifle improved version), M416 and M4 (M4A1 Carbine, M4A1 Carbine) are all automatic rifles, and are sorted in the order of AKM, M4, and M416.

[0082] In another possible implementation, the item sorting rule can be to sort virtual items in the order they were collected. In one example, if the user controls a virtual object to collect a dagger, an automatic rifle, a sniper rifle, and a semi-automatic rifle, the virtual items are sorted in the order of dagger, automatic rifle, sniper rifle, and semi-automatic rifle. For example, if the virtual object is currently using a dagger and the user clicks a second control, the client will determine the automatic rifle as the second virtual item and control the virtual object to switch from the dagger to the automatic rifle.

[0083] If the operation on the second control is the second operation, then in response to the second operation on the second control, the client displays icons of multiple candidate virtual props, including the second virtual prop; in response to the selection operation on the icon of the second virtual prop, the client controls the virtual object to switch the first virtual prop to the second virtual prop.

[0084] For example, the second operation may be a long press operation. In the embodiment of the present application, the first operation and the second operation are different, and the present application does not limit whether the first operation and the second operation are clicks, long presses, or other operations.

[0085] Taking the first operation as a click operation and the second operation as a long press operation as an example, a duration detection is added to the second control. For example, with a limit of 0.4 seconds, a touch duration of less than 0.4 seconds is a click operation, and a touch duration greater than or equal to 0.4 seconds is a long press operation. If the touch duration of the operation on the second control is less than 0.4 seconds, the client determines the next virtual prop of the first virtual prop as the second virtual prop according to the prop sorting rule; the client controls the virtual object to switch the first virtual prop to the second virtual prop; if the touch duration of the operation on the second control is greater than or equal to 0.4 seconds, the client displays multiple candidate virtual prop icons, including the second virtual prop; in response to the selection operation of the icon of the second virtual prop, the client controls the virtual object to switch the first virtual prop to the second virtual prop.

[0086] In one example, the multiple candidate virtual items may include virtual items owned by a virtual object. The virtual items owned by the virtual object may be virtual items collected during the current game. For example, if the user controls the virtual object to collect a dagger and an automatic rifle, the client will only display the dagger and automatic rifle. The virtual items owned by the virtual object may also be virtual items assigned by the system at the start of the game.

[0087] In one possible implementation, the virtual props that a user is accustomed to using may be different, or the virtual props that are suitable for use may be different in different time periods and current battle scenes. In this case, in order to facilitate the user to quickly select a suitable virtual prop, it can be determined whether any candidate virtual prop among multiple candidate virtual props is a recommended virtual prop (i.e., a virtual prop that is suitable for use). If so, the icon of the recommended virtual prop can be displayed separately from the icons of other virtual props among the multiple candidate virtual props. For example, the icon of the recommended virtual prop can be starred, while the icons of other virtual props are not starred.

[0088] In one possible implementation, the system can provide recommended virtual items based on the needs of the current combat scenario or the user's usage habits. For example, if the system determines that the current combat scenario is a melee combat scenario, the system will recommend melee items. For example, if the user's longest-used virtual item is an automatic rifle, the system will recommend the automatic rifle as a virtual item.

[0089] In one example, the multiple candidate virtual items include virtual items owned by the virtual object, as well as virtual items not owned by the virtual object. For example, if a user controls a virtual object to collect a dagger and an automatic rifle, the client will display the dagger, automatic rifle, and sniper rifle. The virtual items not owned by the virtual object may be system-provided virtual items. For example, the system provides appropriate virtual items based on the needs of the current combat scenario. For example, if an enemy of the virtual object appears within 5 meters of the virtual object, the system determines that close combat is appropriate and provides melee items such as a dagger, frying pan, machete, and crowbar. If an enemy of the virtual object appears within 200 meters of the virtual object, the system determines that the current engagement is medium-range and provides automatic rifles such as the AKM and M4. If an enemy of the virtual object appears within 200 to 500 meters of the virtual object, the system determines that the current engagement is long-range and provides a sniper rifle. For example, the system provides the user's most frequently used virtual items based on their usage habits. For example, based on the length of time users use various virtual props, the system provides users with virtual props that have been used the longest; based on the number of times users use various virtual props, the system provides users with virtual props that have been used the most times.

[0090] In one possible implementation, if a user selects a virtual item that the virtual object does not own, the client displays a pop-up window prompting the user to purchase the virtual item and / or to exchange the virtual item for another virtual item. For example, if the user owns an automatic rifle and a dagger, but does not own a semi-automatic rifle or a sniper rifle, and the user selects a sniper rifle. In one example, the client displays a pop-up window prompting the user to purchase the sniper rifle using gold coins, which can be obtained during the game. In another example, the client displays a pop-up window prompting the user to exchange a dagger or automatic rifle for a sniper rifle. In another example, the client displays a pop-up window prompting the user to purchase the sniper rifle using gold coins, or to exchange a dagger or automatic rifle for a sniper rifle.

[0091] In one possible implementation, icons for virtual items not owned by the virtual object (which can be used as other virtual items) can be displayed separately from icons for virtual items owned by the virtual object (which can be used as recommended virtual items). For example, virtual items not owned by the virtual object are marked with a lock, while virtual items owned by the virtual object are not marked with a lock.

[0092] In a possible implementation, when the client displays multiple candidate virtual prop icons, the first control is hidden to ensure the simplicity of the user interface display, reduce the screen ratio of the prop display area, and ensure the aesthetics of the user interface.

[0093] In one possible implementation, in response to the second operation on the second control, a switching wheel is displayed with the second control as the center, and icons and attribute information corresponding to multiple candidate virtual props are displayed in the switching wheel. For example, as shown in Figure 8, in response to the second operation on the second control 330, a switching wheel 350 is displayed with the second control 330 as the center. Icons and attribute information corresponding to multiple candidate virtual props are displayed in the switching wheel 350. The above-mentioned switching wheel can be in the shape of a wheel or other shapes, and this application does not limit this. The above-mentioned attribute information may include the amount of bullets, name, etc. of the virtual props, and this application does not limit this. In some embodiments, the above-mentioned switching wheel can only display 4 virtual props. However, this application does not limit how many virtual props the switching wheel can display.

[0094] In one possible implementation, in response to the touch position of the second operation moving from the second control to the icon of the second virtual prop, the client controls the virtual object to switch the first virtual prop to the second virtual prop. For example, as shown in FIG9 , the user controls the touch position to slide from the second control 330 to the icon of the second virtual prop, and the client controls the virtual object to switch the first virtual prop to the second virtual prop.

[0095] In a possible implementation, the icons of the plurality of candidate virtual items are displayed in a corner area of ​​the user interface. In some embodiments, the icons of the plurality of candidate virtual items are displayed in a fan-shaped manner in the upper right corner of the user interface.

[0096] In one possible implementation, in response to the disappearance of the touch signal of the second operation, the client cancels the display of the icons of the multiple candidate virtual props. For example, if the user lifts their finger and the touch signal disappears (see FIG7 ), the client controls the hiding of the icons of the multiple candidate virtual props and does not switch the currently used virtual weapon. As shown in FIG9 , if the user long-presses the second control 330 , the client displays the switch wheel 350 , and the user lifts their finger, the client hides the switch wheel 350 .

[0097] In one possible implementation, in response to the second operation, the touch position moves to the icon of the second virtual item, and the second virtual item is displayed distinctively. For example, the user controls the touch position to slide from the second control to the icon of the second virtual item, and the client controls the second virtual item icon to be highlighted. As shown in FIG9 , the user long-presses the second control 330 , the client displays the switch wheel 350 , and the user controls the touch position to slide from the second control 330 to the icon of the second virtual item, and the client controls the second virtual item icon to be highlighted.

[0098] In one possible implementation, in response to a selection operation on the icon of a second virtual prop from among multiple candidate virtual props, the client displays icons of available accessories corresponding to the second virtual prop; in response to a selection operation on the icon of a target accessory from among the available accessories, the client controls the second virtual prop to assemble the target accessory. In one possible implementation, icons of available accessories are displayed next to the icon of the second virtual prop. Exemplarily, the icons of available accessories are displayed in the form of an accessory switching wheel. Exemplarily, as shown in FIG10 , when the user controls the touch position to slide from the second control 330 to the icon of the second virtual prop, the client displays icons of available accessories next to the icon of the second virtual prop; when the user controls the touch position to continue sliding to the icon of the target accessory from among the available accessories, the client controls the second virtual prop to assemble the target accessory. The available accessories can be displayed via the accessory switching wheel 360 shown in FIG10 , which is a type of switching wheel in an embodiment of the present application.

[0099] One thing that needs to be explained is that this application does not limit the display format of the icons of the above-mentioned available accessories, and only takes the accessory switching wheel as an example.

[0100] To sum up, the technical solution provided in the embodiment of the present application achieves the effects of sequential switching and precise switching by providing two operations of the control, thereby improving the accuracy of the user's control of holding, folding, and switching virtual props of virtual objects. At the same time, only the virtual props currently used by the virtual object are displayed, highlighting the display effect of the virtual props and reducing the screen ratio of the virtual props display.

[0101] Based on FIG7 , please refer to FIG11 , which shows a flow chart of a method for controlling a virtual object provided by an embodiment of the present application, which includes the steps of the embodiment corresponding to FIG7 , and will not be repeated here.

[0102] The above-mentioned operation on the second control includes a first operation and a second operation.

[0103] In response to the first operation on the second control, the client determines the next virtual prop of the first virtual prop as the second virtual prop according to the prop sorting rule; and the client controls the virtual object to switch the first virtual prop to the second virtual prop.

[0104] In response to a second operation on the second control, the client displays icons of multiple candidate virtual props; in response to a selection operation on an icon of a second virtual prop among the multiple candidate virtual props, the client controls the virtual object to switch the first virtual prop to the second virtual prop.

[0105] For example, the second operation may be a long press. In the embodiment of the present application, the first operation and the second operation are different, and the present application does not limit whether the first operation and the second operation are clicks, long presses, or other operations.

[0106] In one possible implementation, in response to a selection operation on the icon of the second virtual prop, the client displays icons of available accessories corresponding to the second virtual prop; in response to a selection operation on the icon of a target accessory among the available accessories, the client controls the second virtual prop to assemble the target accessory. In one possible implementation, icons of available accessories are displayed next to the icon of the second virtual prop. For example, as shown in FIG12 , the user long presses the second control 330 , the client displays a switch wheel 350 , the user controls the touch position to slide from the second control 330 to the icon of the second virtual prop, and the client displays an accessory switch wheel 360 next to the icon of the second virtual prop. The accessory switch wheel 360 is used to display icons of available accessories corresponding to the second virtual prop. The user controls the touch position to continue sliding from the icon of the second virtual prop to the icon of the target accessory, and the client controls the second virtual prop to assemble the target accessory.

[0107] If the target accessory is not selected, determine whether the touch signal disappears. If so, switch to the second virtual prop, and the area corresponding to the first control displays the second virtual prop; if the target accessory is selected, display it differently, determine whether the touch signal disappears. If so, switch to the second virtual prop, configure the target accessory for the second virtual prop, and the area corresponding to the first control displays the second virtual prop.

[0108] One thing that needs to be explained is that the client can control the virtual prop to assemble the target accessories before the client controls the virtual object to switch the currently used first virtual prop to the second virtual prop, or after the client controls the virtual object to switch the currently used first virtual prop to the second virtual prop, or it can be performed at the same time as the client controls the virtual object to switch the currently used first virtual prop to the second virtual prop. This application does not limit this.

[0109] To sum up, the technical solution provided in the embodiment of the present application, by providing an icon of at least one available accessory, completes the operation of switching virtual props and assembling accessories with a one-step sliding, saving the time of assembling props, and is simple and efficient to operate, providing users with a better operating experience in intense combat scenes.

[0110] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0111] Please refer to Figure 13, which shows a block diagram of a virtual object control device provided by one embodiment of the present application. The device has the function of implementing the above-mentioned virtual object control method. The function can be implemented by hardware or by hardware executing corresponding software. The device can be a terminal or can be set in a terminal. The device 1300 may include: a display module 1310, a first control module 1320, and a second control module 1330.

[0112] The display module 1310 is used to display a user interface, in which a virtual environment screen, a first control, and a second control are displayed; wherein the virtual environment screen is a screen for observing the virtual environment from the perspective of a virtual object.

[0113] The first control module 1320 is configured to control the virtual object to switch the usage state of the first virtual prop currently in use in response to an operation on the first control; wherein the icon of the first virtual prop is displayed in the area corresponding to the first control.

[0114] The second control module 1330 is used to control the virtual object to switch the first virtual prop currently in use to a second virtual prop in response to an operation on the second control, and to switch the icon of the first virtual prop displayed in the area corresponding to the first control to the icon of the second virtual prop.

[0115] In an exemplary embodiment, the second control module 1330 is configured to, in response to a first operation on the second control, determine the next virtual prop of the first virtual prop as the second virtual prop according to a prop sorting rule; and control the virtual object to switch the first virtual prop to the second virtual prop.

[0116] In an exemplary embodiment, the second control module 1330 is configured to display icons of a plurality of candidate virtual props in response to a second operation on the second control, wherein the plurality of candidate virtual props includes the second virtual prop; and control the virtual object to switch the first virtual prop to the second virtual prop in response to a selection operation on the icon of the second virtual prop.

[0117] In an exemplary embodiment, the second control module 1330 is configured to display a switch wheel centered on the second control, wherein the switch wheel displays icons and attribute information corresponding to the plurality of candidate virtual props.

[0118] In an exemplary embodiment, the multiple candidate virtual props include recommended virtual props and other virtual props, and the other virtual props are candidate virtual props other than the recommended virtual props among the multiple candidate virtual props. The second control module 1330 is used to distinguish between displaying the icon of the recommended virtual prop and the icons of the other virtual props.

[0119] In an exemplary embodiment, the second control module 1330 is configured to control the virtual object to switch the first virtual prop to the second virtual prop in response to the touch position of the second operation moving from the second control to the icon of the second virtual prop.

[0120] In an exemplary embodiment, the second control module 1330 is configured to cancel display of the icons of the plurality of candidate virtual props in response to disappearance of the touch signal of the second operation.

[0121] In an exemplary embodiment, the second control module 1330 is configured to display icons of available accessories corresponding to the second virtual prop in response to a selection operation on the icon of the second virtual prop; and to control the second virtual prop to assemble the target accessory in response to a selection operation on the icon of the target accessory among the available accessories.

[0122] In an exemplary embodiment, the second control module 1330 is configured to control the virtual object to hold the second virtual prop if the first virtual prop is in a handheld state or a retracted state; or, if the first virtual prop is in a handheld state, control the virtual object to hold the second virtual prop; or, if the first virtual prop is in a retracted state, control the virtual object to retract the second virtual prop.

[0123] In an exemplary embodiment, the first control module 1320 is configured to control the virtual object to retract the first virtual prop if the first virtual prop is in a handheld state; or to control the virtual object to hold the first virtual prop if the first virtual prop is in a retracted state.

[0124] In an exemplary embodiment, if the first virtual prop is in a handheld state, the first control is displayed in a first display style; if the first virtual prop is in a folded state, the first control is displayed in a second display style; wherein the first display style and the second display style are different.

[0125] In an exemplary embodiment, the apparatus further includes: a third control module 1340 , a configuration module 1350 , and an adjustment module 1360 .

[0126] The third control module 1340 is configured to control the virtual object to discard the first virtual item currently in use in response to a discard operation on the first control.

[0127] The configuration module 1350 is configured to configure the accessories of the first virtual prop currently in use in response to a configuration operation on the first control.

[0128] The adjustment module 1360 is configured to adjust the attack mode of the first virtual item currently in use in response to a switching operation on the first control.

[0129] In summary, the technical solution provided by the embodiments of the present application provides two controls in the user interface. The user switches the usage status of the virtual props used by the virtual object through the first control. The first control is also used to display the virtual props used by the virtual object. The user switches the virtual props used by the virtual object through the second control, thereby meeting the user's need to quickly switch virtual props. This solution adds a second control for prop switching, retaining only the first control to display the virtual prop currently used by the virtual object, that is, only one virtual prop is displayed. This reduces the screen ratio of the prop display area while ensuring that the controls (first control and second control) can realize functions such as virtual prop display, virtual prop usage status switching, and virtual prop switching.

[0130] It should be noted that the apparatus provided in the above embodiments, when implementing its functions, is only illustrated by the division of the above functional modules. 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 are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0131] Please refer to Figure 15, which shows a block diagram of a terminal 1500 provided in one embodiment of the present application. The terminal 1500 can be an electronic device such as a mobile phone, tablet computer, game console, e-book reader, multimedia player, wearable device, PC, etc. The terminal is used to implement the control method of the virtual object provided in the above embodiment. The terminal can be the terminal 10 in the game running environment shown in Figure 1. Specifically:

[0132] Typically, the terminal 1500 includes a processor 1501 and a memory 1502 .

[0133] The processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1501 may also include an AI processor for processing computing operations related to machine learning.

[0134] The memory 1502 may include one or more computer-readable storage media, which may be non-transitory. The memory 1502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1502 is used to store at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is configured to be executed by one or more processors to implement the above-mentioned virtual object control method.

[0135] In some embodiments, terminal 1500 may optionally include a peripheral device interface 1503 and at least one peripheral device. The processor 1501, memory 1502, and peripheral device interface 1503 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1503 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 1504, a display screen 1505, a camera 1506, an audio circuit 1507, a positioning component 1508, and a power supply 1509.

[0136] Those skilled in the art will understand that the structure shown in FIG15 does not constitute a limitation on the terminal 1500 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0137] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction, at least one program, a code set or an instruction set is stored. When the at least one instruction, the at least one program, the code set or the instruction set is executed by a processor, the control method of the virtual object mentioned above is implemented.

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

[0139] In an exemplary embodiment, a computer program product is further provided. When the computer program product is executed by a processor, it is used to implement the above-mentioned virtual object control method.

[0140] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application do not limit this.

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

Claims

1. A method for controlling a virtual object, the method being executed by a terminal, the method comprising: Displaying a user interface, wherein the user interface displays a virtual environment screen, a first control, and a second control; wherein the virtual environment screen is a screen for observing the virtual environment from the perspective of a virtual object; In response to an operation on the first control, controlling the virtual object to switch the use state of the first virtual prop currently in use; wherein the icon of the first virtual prop is displayed in the area corresponding to the first control; In response to an operation on the second control, the virtual object is controlled to switch the first virtual prop currently in use to a second virtual prop, and to switch the icon of the first virtual prop displayed in the area corresponding to the first control to the icon of the second virtual prop.

2. The method according to claim 1, wherein in response to the operation on the second control, controlling the virtual object to switch the first virtual prop currently in use to a second virtual prop comprises: In response to a first operation on the second control, according to a prop sorting rule, determining the next virtual prop of the first virtual prop as the second virtual prop; The virtual object is controlled to switch the first virtual prop to the second virtual prop.

3. The method according to claim 1, wherein in response to the operation on the second control, controlling the virtual object to switch the first virtual prop currently in use to a second virtual prop comprises: In response to a second operation on the second control, displaying icons of a plurality of candidate virtual props, wherein the plurality of candidate virtual props include the second virtual prop; In response to a selection operation on the icon of the second virtual prop, the virtual object is controlled to switch the first virtual prop to the second virtual prop.

4. The method according to claim 3, wherein displaying icons of a plurality of candidate virtual props comprises: A switching wheel is displayed with the second control as the center, and icons and attribute information corresponding to the multiple candidate virtual props are displayed in the switching wheel.

5. The method according to claim 3, wherein the plurality of candidate virtual props include recommended virtual props and other virtual props, the other virtual props are candidate virtual props other than the recommended virtual props among the plurality of candidate virtual props, and the icons displaying the plurality of candidate virtual props include: The icon of the recommended virtual item and the icons of other virtual items are displayed separately.

6. The method according to claim 3, wherein in response to the selection operation of the icon of the second virtual prop, controlling the virtual object to switch the first virtual prop to the second virtual prop comprises: In response to the touch position of the second operation moving from the second control to the icon of the second virtual prop, the virtual object is controlled to switch the first virtual prop to the second virtual prop.

7. The method according to claim 6, after controlling the virtual object to switch the first virtual prop to the second virtual prop, further comprising: In response to the disappearance of the touch signal of the second operation, the icons of the plurality of candidate virtual props are cancelled from being displayed.

8. The method according to claim 3, further comprising: In response to a selection operation on the icon of the second virtual prop, icons of available accessories corresponding to the second virtual prop are displayed, wherein the available accessories include a target accessory; In response to a selection operation on the icon of the target accessory, the second virtual item is controlled to be equipped with the target accessory.

9. The method according to claim 2 or 3, wherein controlling the virtual object to switch the first virtual prop to the second virtual prop comprises: If the use state of the first virtual prop is a holding state or a retracted state, the virtual object is controlled to hold the second virtual prop; or, If the use state of the first virtual prop is the holding state, the virtual object is controlled to hold the second virtual prop; or if the use state of the first virtual prop is the retracted state, the virtual object is controlled to retract the second virtual prop.

10. The method according to claim 1, wherein controlling the virtual object to switch the use state of the first virtual prop currently in use comprises: If the first virtual prop is in a use state of being held, controlling the virtual object to retract the first virtual prop; or, If the usage state of the first virtual prop is a retracted state, the virtual object is controlled to hold the first virtual prop.

11. The method according to claim 1, If the first virtual item is in a handheld state, the first control is displayed in a first display style; If the usage state of the first virtual prop is the retracted state, the first control is displayed in a second display style; in, The first display style and the second display style are different.

12. The method according to claim 1, after displaying the user interface, further comprising at least one of the following: In response to a discard operation on the first control, controlling the virtual object to discard the first virtual prop currently in use; In response to the configuration operation on the first control, configuring the accessories of the first virtual prop currently in use; In response to the switching operation on the first control, the attack mode of the first virtual item currently in use is adjusted.

13. A virtual object control device, the device being deployed on a terminal, the device comprising: A display module, used to display a user interface, wherein the user interface displays a virtual environment screen, a first control, and a second control; wherein the virtual environment screen is a screen for observing the virtual environment from the perspective of a virtual object; A first control module, configured to control the virtual object to switch the use state of a first virtual item currently in use in response to an operation on the first control; wherein an icon of the first virtual item is displayed in an area corresponding to the first control; The second control module is used to control the virtual object to switch the first virtual prop currently in use to a second virtual prop in response to an operation on the second control, and to switch the icon of the first virtual prop displayed in the area corresponding to the first control to the icon of the second virtual prop.

14. A terminal comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the control method of a virtual object as described in any one of claims 1 to 12.

15. A computer-readable storage medium, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the storage medium, wherein the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the control method of a virtual object as described in any one of claims 1 to 12. 16 . A computer program product, which, when executed, enables the processor to implement the method for controlling a virtual object according to claim 1 .