Control method, device, apparatus, storage medium, and program product of virtual object

CN117427332BActive Publication Date: 2026-10-09TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210822326.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-12
Publication Date
2026-10-09
Estimated Expiration
2042-07-12

AI Technical Summary

Technical Problem

[0004]然而,在上述相关技术中,虚拟对象的最大速度是不可变的,虚拟对象的控制方式比较单一

Benefits of technology

[0028] By setting multiple trigger areas with different sensitivities, the movement speed of the virtual object is determined based on the sensitivity of the trigger area where the user's initial sliding operation is located, and the virtual object is controlled to move at that speed. Users can start sliding operations in trigger areas with different sensitivities according to different needs, thus enabling the virtual object to move at different speeds. This enriches the control methods of the virtual object and improves the efficiency of human-computer interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117427332B_ABST
    Figure CN117427332B_ABST
Patent Text Reader

Abstract

The application discloses a virtual object control method, device, equipment, storage medium and program product, and relates to the technical field of computers and Internet. The method comprises the following steps: displaying a user interface, the user interface displays a joystick control for controlling the movement of a virtual object, the joystick control has a plurality of trigger areas corresponding to different sensitivities; in response to a first sliding operation in which a starting position is located in a first trigger area in the plurality of trigger areas, determining a first movement speed of the virtual object according to the sensitivity corresponding to the first trigger area; and controlling the virtual object to move at the first movement speed. The user can start to perform a sliding operation in a trigger area with different sensitivity according to different requirements, so that the virtual object can be controlled to move at different speeds, the control mode of the virtual object is enriched, and the human-computer interaction efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of computer and internet technology, and in particular to a method, apparatus, device, storage medium, and program product for controlling virtual objects. Background Technology

[0002] In shooting game matches, users can use joystick controls to move virtual objects.

[0003] In related technologies, when a user touches a joystick control with their finger, the direction of movement of a virtual object can be controlled by the direction of the finger's sliding motion.

[0004] However, in the aforementioned related technologies, the maximum speed of the virtual object is immutable, and the control method of the virtual object is relatively simple. Summary of the Invention

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

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

[0007] The user interface displays a joystick control for controlling the movement of virtual objects. The joystick control has multiple corresponding trigger areas, and different trigger areas correspond to different sensitivities.

[0008] In response to a first sliding operation in a first trigger area whose starting position is located in the plurality of trigger areas, a first moving speed of the virtual object is determined based on the sensitivity corresponding to the first trigger area;

[0009] The virtual object is controlled to move at the first moving speed.

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

[0011] The user interface displays a joystick control for controlling the movement of virtual objects, and the joystick control has multiple corresponding trigger areas;

[0012] In response to a first sliding operation in a first trigger area whose starting position is located in the plurality of trigger areas, the virtual object is controlled to move at a first moving speed;

[0013] In response to a second sliding operation in a second trigger area whose starting position is located in one of the plurality of trigger areas, the virtual object is controlled to move at a second moving speed;

[0014] The first triggering area and the second triggering area are different, and the first moving speed and the second moving speed are different.

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

[0016] The interface display module is used to display the user interface, which displays a joystick control for controlling the movement of virtual objects. The joystick control has multiple corresponding trigger areas, and different trigger areas correspond to different sensitivities.

[0017] A speed determination module is used to determine the first moving speed of the virtual object in response to a first sliding operation in a first trigger area whose starting position is located in the plurality of trigger areas, based on the sensitivity corresponding to the first trigger area.

[0018] A movement control module is used to control the virtual object to move at the first movement speed.

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

[0020] The interface display module is used to display the user interface, which displays a joystick control for controlling the movement of virtual objects. The joystick control has multiple corresponding trigger areas.

[0021] The movement control module is configured to control the virtual object to move at a first movement speed in response to a first sliding operation in a first trigger area whose starting position is located in the plurality of trigger areas;

[0022] The movement control module is further configured to control the virtual object to move at a second movement speed in response to a second sliding operation of a second trigger area whose starting position is located in the plurality of trigger areas;

[0023] The first triggering area and the second triggering area are different, and the first moving speed and the second moving speed are different.

[0024] 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 method.

[0025] 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.

[0026] According to one aspect of the embodiments of this application, a computer program product is provided, the computer program product including computer instructions stored in a computer-readable storage medium. A processor of a terminal device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, causing the terminal device to perform the method described above.

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

[0028] By setting multiple trigger areas with different sensitivities, the movement speed of the virtual object is determined based on the sensitivity of the trigger area where the user's initial sliding operation is located, and the virtual object is controlled to move at that speed. Users can start sliding operations in trigger areas with different sensitivities according to different needs, thus enabling the virtual object to move at different speeds. This enriches the control methods of the virtual object and improves the efficiency of human-computer interaction. Attached Figure Description

[0029] Figure 1 This is a schematic diagram of the implementation environment of a solution provided in one embodiment of this application;

[0030] Figure 2 This is a schematic diagram of a virtual object control method provided in one embodiment of this application;

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

[0032] Figure 4 This is a schematic diagram of a user interface provided in one embodiment of this application;

[0033] Figure 5 This is a schematic diagram of a user interface provided in another embodiment of this application;

[0034] Figure 6 This is a schematic diagram of a user interface provided in another embodiment of this application;

[0035] Figure 7 This is a schematic diagram of a user interface provided in another embodiment of this application;

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

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

[0038] Figure 10 This is a schematic diagram of a user interface provided in another embodiment of this application;

[0039] Figure 11 This is a schematic diagram of a user interface provided in another embodiment of this application;

[0040] Figure 12 This is a schematic diagram of a user interface provided in another embodiment of this application;

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

[0042] Figure 14 This is a schematic diagram of a user interface provided in another embodiment of this application;

[0043] Figure 15 This is a schematic diagram of a user interface provided in another embodiment of this application;

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

[0045] Figure 17 This is a schematic diagram of a user interface provided in another embodiment of this application;

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

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

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

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

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

[0051] 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.

[0052] Please refer to Figure 1 This diagram illustrates an implementation environment provided by an embodiment of this application. This implementation environment can realize a control system that functions as a virtual object. The implementation environment may include: a terminal device 10 and a server 20.

[0053] Terminal device 10 can be an electronic device such as a mobile phone, tablet computer, game console, e-book reader, multimedia playback device, wearable device, PC (Personal Computer), or in-vehicle terminal. A client for a target application (such as a game application) can be installed on terminal device 10. Optionally, the target application can be an application that requires downloading and installation, or it can be an application that can be used instantly; this embodiment of the application does not limit this.

[0054] In this application embodiment, the target application can be a shooting application, a racing application, a multiplayer online tactical competitive game, etc., and this application is not limited thereto. In some embodiments, the above-mentioned target application can be a shooting application that can provide a virtual environment for user-operated virtual objects to move within that virtual environment. Typically, the shooting application can be any application with shooting product functions, such as TPS (Third-Person Shooting Game), FPS (First-person shooting game), MOBA (Multiplayer Online Battle Arena), multiplayer shooting survival game, Virtual Reality (VR) shooting application, Augmented Reality (AR) application, 3D mapping application, social application, interactive entertainment application, etc. Furthermore, the form or shape of the virtual objects provided by different applications will also be different, and the corresponding functions will also be different. This can be designed according to actual needs, and this application embodiment is not limited thereto. Optionally, the terminal device 10 runs a client of the above-mentioned application. In some embodiments, the above-mentioned application is an application developed based on a three-dimensional virtual environment engine, such as the Unity engine. This virtual environment engine can construct three-dimensional virtual environments, virtual objects, and virtual props, bringing users a more immersive gaming experience.

[0055] The aforementioned virtual environment refers to a scene displayed (or provided) by the client of the target application (such as a game application) when it runs on a terminal device. This virtual environment is a created scenario for virtual objects to perform activities (such as game competitions), such as virtual houses, virtual islands, and virtual maps. 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 two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment; this application does not limit this.

[0056] The aforementioned virtual objects refer to virtual characters, virtual vehicles, virtual items, etc., controlled by a user account in the target application, and this application does not limit this. Taking a game application as an example, a virtual object refers to a game character controlled by a user account in the game application. Virtual objects can be in human form, or in animal, cartoon, or other forms, and this application embodiment does not limit this. Virtual objects can be displayed in three-dimensional or two-dimensional form, and this application embodiment does not limit this. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual object is a three-dimensional model created based on animation skeletal technology. Each virtual object has its own shape and volume in the three-dimensional virtual environment and occupies a portion of the space in the three-dimensional virtual environment. Optionally, virtual objects are virtual vehicles in the virtual environment, such as virtual cars, virtual hot air balloons, virtual motorcycles, and other virtual props that can be controlled by the user.

[0057] Server 20 provides background services for clients of the target application installed and running on terminal device 10. For example, server 20 can be the background server for the aforementioned game application. Server 20 can be a single server, a server cluster consisting of multiple servers, or a cloud computing service center. Optionally, server 20 can simultaneously provide background services for target applications on multiple terminal devices 10.

[0058] Terminal device 10 and server 20 can communicate with each other via a network.

[0059] Please refer to Figure 2 This illustration shows a schematic diagram of a virtual object control method provided in one embodiment of this application. In such... Figure 1 The terminal device 10 shown displays a user interface with multiple trigger areas: trigger area z1, trigger area z2, and trigger area z3. Each trigger area has a different sensitivity, and the sensitivity of the trigger area is related to the movement speed of the virtual object. When the user's sliding operation starts at trigger area z1, the movement speed of the virtual object is determined based on the sensitivity of trigger area z1, and the movement of the virtual object is controlled by this speed.

[0060] In existing technologies, users can adjust the sensitivity of the joystick control in the settings interface. However, when the virtual object being controlled is in danger and needs to be moved quickly, the sensitivity needs to be readjusted in the settings interface. This distraction during competitive gameplay makes the virtual object vulnerable to attack, resulting in a poor gaming experience and hindering user control. Furthermore, existing technologies only allow setting the sensitivity of one trigger area, not multiple trigger areas. This means that in competitive gameplay, if the user needs to adjust the sensitivity again after resetting it, they must do so multiple times within a single match, which is not very user-friendly.

[0061] Unlike other solutions, the technical solution provided in this application sets multiple trigger areas on the user interface. Different trigger areas correspond to different sensitivities, and these sensitivities correspond to different movement speeds of the virtual object. When the user's swipe operation starts at the target trigger area, the movement speed of the virtual object is determined based on the sensitivity of the target trigger area, and the virtual object is controlled to move at that speed. In other words, before the start of a competitive match, the user can set the trigger areas according to their operating habits. These settings include, but are not limited to, the size and sensitivity of the areas. During the competitive match, the user can adjust the starting position of the swipe operation according to the real-time situation, allowing the movement speed of the virtual object to change, further improving the user's control over the virtual object and enhancing the user's gaming experience.

[0062] Please refer to Figure 3 The diagram illustrates a flowchart of a virtual object control method provided in one embodiment of this application. The execution entity for each step of this method can be... Figure 1 In the implementation environment of the illustrated scheme, the terminal device 10 may be a client of the target application, where the execution subject of each step is a client of the target application. In the following method embodiments, for ease of description, the execution subject of each step will only be described as a "client". The method may include at least one of the following steps (320-360):

[0063] Step 320: Display the user interface, which shows a joystick control for controlling the movement of the virtual object. The joystick control has multiple corresponding trigger areas, and different trigger areas correspond to different sensitivities.

[0064] Joystick control: Also known as a virtual joystick, it consists of a dial section and a remote sensing section. The dial section is the operable area of ​​the virtual joystick, and the position of the remote sensing section does not change when the user is not operating it. Optionally, the remote sensing section will slide within the range of the dial section as the user slides the finger, allowing the user to slide the remote sensing section freely within the range of the dial section. In some embodiments, the joystick control can control the movement direction of a virtual object.

[0065] A trigger area refers to a specific area within the interface, with different trigger areas corresponding to different sensitivities. This area can be set by the server or by the user. In this embodiment, the size and shape of the trigger area are not limited. For example, the shape of the trigger area can be rectangular, circular, rounded rectangle, etc., and the size of the trigger area can be reasonably set in conjunction with the interface layout. Furthermore, different trigger areas can have the same size and different shapes, and this application does not impose any limitations on this.

[0066] The sensitivity in this embodiment refers to motion sensitivity, which can be understood as the speed at which a virtual object moves when the same swipe operation is performed by the user in different trigger areas. In some embodiments, the user performs a swipe operation on the user interface, but the trigger areas where the swipe operation starts are different, and the movement speed of the virtual object is different in different trigger areas. Optionally, in one trigger area, the movement speed of the virtual object is 10 meters per second, and in another trigger area, the movement speed of the virtual object is 20 meters per second.

[0067] Please refer to Figure 4 This diagram illustrates a user interface provided in one embodiment of this application. The user interface displays a joystick control Y1 for controlling the movement of a virtual object. The joystick control has two trigger areas, trigger area Q1 and trigger area Q2. Different trigger areas correspond to different sensitivities. Optionally, the sensitivity of trigger area Q1 is x, and the sensitivity of trigger area Q2 is y, where x and y are positive numbers. Figure 4 The joystick control Y1 shown is in the trigger area Q1, and the sensitivity of the joystick control Y1 is x.

[0068] Step 340: In response to a first sliding operation in a first trigger area whose starting position is located in a plurality of trigger areas, determine a first moving speed of the virtual object based on the sensitivity corresponding to the first trigger area.

[0069] The first swipe operation is an action performed by the user. Optionally, the terminal device is a handheld device, and the user's first swipe operation is an operation performed directly on the terminal device, such as a swipe operation, a press operation, a drag operation, etc., on a mobile phone screen. Optionally, the terminal device is not a handheld device, and the user's first interactive operation can be an operation performed on a peripheral device of the terminal device, such as a double-click operation on a mouse, a click operation on a keyboard, a click operation on a gamepad, a shake operation, etc. This application does not limit the type of the first swipe operation. In some embodiments, the swipe operation has a starting position and a real-time position. For example, if the swipe operation is a swipe operation on a mobile phone screen, then the starting position is the position where the hand first touches the screen, and then the hand swipes on the screen to perform the swipe operation. The current position where the hand touches the screen in the swipe operation is the real-time position of the swipe operation. When the hand leaves the screen, the swipe operation ends.

[0070] Please refer to Figure 5 This illustrates a schematic diagram of a user interface provided in another embodiment of this application. The user interface displays a joystick control for controlling the movement of a virtual object. The joystick control has three trigger areas: trigger area Q3, trigger area Q4, and trigger area Q5. Different trigger areas correspond to different sensitivities. Optionally, the sensitivity of trigger area Q3 is 10, the sensitivity of trigger area Q4 is 8, and the sensitivity of Q5 is 5. Figure 5 The joystick control shown is in trigger area Q5, and the sensitivity of the joystick control Y1 is 5.

[0071] In some embodiments, the server pre-sets different movement speeds corresponding to different sensitivities. Optionally, sensitivity 1 represents a movement speed of 1 m / s for the virtual object, sensitivity 2 represents a movement speed of 2 m / s for the virtual object, and so on. Figure 5 Based on the sensitivity of the trigger area Q5 being 5, the first moving speed of the virtual object is determined to be 5 m / s.

[0072] In some embodiments, the sensitivity of different trigger areas can be customized by the user. This can be set before entering a game or adjusted by the user based on the real-time situation of the game. Optionally, the initial settings... Figure 5 The sensitivities of trigger areas Q3, Q4, and Q5 are 10, 8, and 5 respectively. However, considering that the sensitivity of trigger area Q5 does not need to reach 5, the user can set the sensitivity of trigger area Q5 themselves. After adjusting the sensitivity, when the sensitivity of the joystick control in trigger area Q5 changes, the movement speed of the virtual object will also change accordingly in response to the user's sliding operation. For example, if the sensitivity of trigger area Q5 is adjusted from 5 to 3, the movement speed of the virtual object will be adjusted to 3m / s.

[0073] In some embodiments, there is no overlap between any two trigger regions among the plurality of trigger regions, for example, in... Figure 4 , Figure 5 In the user interface shown, there are no overlapping areas between trigger areas. The trigger area where the starting position of the user's swipe operation falls is determined as the selected trigger area; for example, the trigger area where the starting position of the first swipe operation falls is determined as the first trigger area. Optionally, when the starting position of the swipe operation falls on the boundary of the trigger area, the trigger area with the highest sensitivity near the boundary can be set as the first trigger area, or the trigger area with the lowest sensitivity near the boundary can be set as the first trigger area. Optionally, the starting position of the swipe operation falls on, for example, Figure 4 At the boundary B1 of the user interface shown (as indicated by the dashed line in the figure), the trigger area Q1 or Q2 is determined as the first trigger area, or the trigger area Q1 and the trigger area Q2 with higher sensitivity are determined as the first trigger area.

[0074] In some embodiments, at least two of the multiple trigger regions overlap. Upon detecting a first sliding operation, the starting position of the first sliding operation is obtained; the distance between the starting position of the first sliding operation and the reference points of each trigger region is determined; wherein the positions of the reference points of each trigger region are different; from the multiple trigger regions, the trigger region with the smallest distance is determined as the first trigger region. The "overlapping between two trigger regions" described in this application embodiment means that there is an overlapping area between the two trigger regions, but correspondingly, there are also non-overlapping areas, that is, the two trigger regions do not completely overlap, but only partially overlap. For example, in... Figure 6 In the user interface shown, there are trigger areas Q6, Q7, and Q8, which overlap. Trigger areas Q6 and Q7 overlap, but there are non-overlapping portions relative to both Q6 and Q7. Optionally, the trigger area where the starting position of the sliding operation falls is defined as the first trigger area. When the starting position of the sliding operation falls within an overlapping area, the trigger area with the highest sensitivity near the boundary can be set as the first trigger area, or the trigger area with the lowest sensitivity near the boundary can be set as the first trigger area. Optionally, the closest trigger area is selected based on the distance between the starting position of the sliding operation and the reference points of each trigger area. Optionally, the reference point is the center point of the trigger area or other location that can characterize the trigger area. Figure 6As shown, the starting position of the sliding operation is D0, D1 is the center position of the trigger area Q6, D2 is the center position of the trigger area Q7, and D3 is the center position of the trigger area Q8. At this time, the starting position D0 of the sliding operation is in the overlapping area of ​​the trigger areas Q6 and Q7. The distance from D0 to D1 and the distance from D0 to D2 are judged. The distance from D0 to D2 is smaller, so the trigger area Q7 where D2 is located is determined as the first trigger area to be selected.

[0075] In this embodiment, on the one hand, overlapping multiple trigger areas can reduce the interface area occupied by the trigger areas and avoid affecting the layout of other controls in the interface; on the other hand, when multiple trigger areas overlap, the trigger area closest to the operation position is selected as the trigger area selected by the user, ensuring that the trigger area can be correctly selected.

[0076] In this embodiment of the application, the area, shape, and arrangement of the sliding operation are not limited, for example, in Figure 6 The three trigger areas are vertically distributed; however, in some embodiments, they can also be horizontally distributed, such as... Figure 7 As shown, trigger regions Q9, Q10, and Q11 are horizontally distributed. In this embodiment, the positions of the multiple trigger regions are arranged in an increasing or decreasing order of sensitivity corresponding to each trigger region. Optionally, Figure 7 The sensitivity of the trigger regions Q9, Q10, and Q11, which are horizontally distributed, increases progressively. Optionally, Figure 6 The sensitivity of trigger areas Q6, Q7, and Q8 decreases in that order. This prevents accidental touches by the user and the consistent increasing / decreasing order makes it easier for the user to remember and operate.

[0077] The technical solution provided in this application, through the setting of the trigger area, can meet different user needs. When the trigger area is not desired to occupy too large an area of ​​the user interface, it can be arranged horizontally to reduce the area required. When the user needs to increase the trigger area, a vertically distributed trigger area can also be selected. The larger the trigger area, the lower the operational requirements for the user; the smaller the trigger area, the higher the operational requirements for the user. Therefore, it can meet the needs of different users, being friendly to novice players while also satisfying the needs of experienced players, resulting in a better user experience.

[0078] Step 360: Control the virtual object to move at the first moving speed.

[0079] Once the client determines the first moving speed of the virtual object, it can control the virtual object to move at that first moving speed.

[0080] Optionally, the initial movement speed of the virtual object is related not only to the sensitivity of the triggering area, but also to various other factors, such as the vehicle the virtual object is riding in, the environment in which the virtual object is located, and the clothing worn by the virtual object. See the following embodiments for details, which will not be elaborated upon here.

[0081] In some embodiments, the user interface displays a numerical value of the first movement speed, allowing the user to monitor the movement speed of the currently controlled virtual object. The user can also adjust the starting position of the swipe operation in real-time based on the virtual environment to obtain different movement speeds corresponding to different trigger areas. This allows the user to adjust their actions promptly based on the numerical information, enhancing the strategic depth of the game. In some embodiments, different movement speeds correspond to different animation effects, thereby increasing the user's immersion in the virtual object and improving the overall experience.

[0082] The technical solution provided in this application provides a method to control virtual objects by setting multiple trigger areas with different sensitivities. The moving speed of the virtual object is determined based on the sensitivity of the trigger area where the user's initial sliding operation is located, and the virtual object is controlled to move at that speed. Users can start to perform sliding operations in trigger areas with different sensitivities according to different needs, thereby enabling the virtual object to move at different speeds. This enriches the control methods of the virtual object and improves the efficiency of human-computer interaction.

[0083] Meanwhile, the technical solution provided in this application does not require users to manually set the sensitivity during the game, thereby simplifying the user's operation and helping to improve the flexibility and efficiency of the user's control over the movement of virtual objects.

[0084] Please refer to Figure 8 The diagram illustrates a flowchart of a virtual object control method provided in another embodiment of this application. The execution entity for each step of this method can be... Figure 1 In the implementation environment of the illustrated scheme, the terminal device 10 may be a client of the target application, where the execution subject of each step is a client of the target application. In the following method embodiments, for ease of description, the execution subject of each step will only be described as a "client". The method may include at least one of the following steps (320-360):

[0085] Step 320: Display the user interface, which shows a joystick control for controlling the movement of the virtual object. The joystick control has multiple corresponding trigger areas, and different trigger areas correspond to different sensitivities.

[0086] Step 330: In response to a first sliding operation in a first trigger area whose starting position is located in a plurality of trigger areas, a joystick control is displayed at the starting position of the first sliding operation.

[0087] In some embodiments, the joystick control is moved to the starting position of the first sliding operation and displayed, that is, the movement process of the first sliding operation from the original display position to the starting position is displayed; or, the joystick control is de-displayed at the original display position and displayed at the starting position of the first sliding operation.

[0088] Step 340-1: Determine the first moving speed of the virtual object based on the sensitivity corresponding to the first trigger area and the attribute information corresponding to the first sliding operation.

[0089] The attribute information is related to the first swipe operation. Optionally, the attribute information includes the distance between the real-time position of the first swipe operation and the starting position of the first swipe operation.

[0090] In some embodiments, the distance between the real-time position of the first sliding operation and the starting position of the first sliding operation is positively correlated with the moving speed. For example, if the distance between the real-time position of the first sliding operation and the starting position of the first sliding operation is 1 cm, the moving speed is 1 m / s; if the distance between the real-time position of the first sliding operation and the starting position of the first sliding operation is 2 cm, the moving speed is 2 m / s, and so on.

[0091] In some embodiments, the first moving speed of the virtual object is determined by the sensitivity corresponding to the first trigger area and the attribute information corresponding to the first sliding operation. In the above embodiments, the sensitivity can correspond to different moving speeds, and the attribute information of the sliding operation can also correspond to different moving speeds. The moving speed corresponding to the sensitivity of the sliding area where the initial position of the sliding operation is located can be recorded as the first moving speed, and the moving speed corresponding to the attribute information of the first sliding operation can be recorded as the second moving speed. The relationship between the first moving speed and the second moving speed is determined, and the larger moving speed is determined as the first moving speed of the virtual object.

[0092] In some embodiments, the first moving speed of the virtual object is determined by the sensitivity corresponding to the first trigger area and the attribute information corresponding to the first sliding operation. Optionally, the sensitivity corresponding to the first trigger area and the attribute information corresponding to the first sliding operation are assigned different weights. The moving speed corresponding to the sensitivity of the sliding area where the initial position of the sliding operation is located is recorded as the first moving speed, and the moving speed corresponding to the attribute information corresponding to the first sliding operation is recorded as the second moving speed. The final moving speed is determined according to the proportion of the two.

[0093] In some embodiments, a sensitivity correction parameter is determined based on the distance, and the sensitivity correction parameter is used to adjust the sensitivity corresponding to the trigger area; a first moving speed of the virtual object is determined based on the sensitivity correction parameter and the sensitivity corresponding to the first trigger area.

[0094] In some embodiments, the sensitivity correction parameter is related to distance; when the distance changes, the sensitivity correction parameter also changes, meaning that distance and the sensitivity correction parameter are positively correlated. Optionally, different distance intervals correspond to different sensitivity correction parameters. For example, when the distance is in the interval a1 to b1, the sensitivity correction parameter is d1; when the distance is in the interval a2 to b2, the sensitivity correction parameter is d2. This can also be understood as a range function, with different values ​​corresponding to different intervals, where a1, b1, d1, a2, b2, and d2 are all positive numbers.

[0095] The corrected sensitivity is determined based on the sensitivity correction parameters and the sensitivity corresponding to the first trigger area, and the first movement speed of the virtual object is determined based on the corrected sensitivity. The determination of the corrected sensitivity based on the sensitivity correction parameters and the sensitivity corresponding to the first trigger area can be done by addition or multiplication; the specific algorithm is not limited in this application.

[0096] In some embodiments, the attribute information is information related to the first swipe operation. Optionally, the attribute information includes: other attribute information of the first swipe operation besides distance, such as the pressure value of the first swipe operation. Optionally, the pressure value of the swipe operation and the movement speed of the virtual object are positively correlated. When the pressure value of the swipe operation is a first pressure value, the movement speed of the virtual object is a first speed; when the pressure value of the swipe operation is a second pressure value, the movement speed of the virtual object is a second speed. The first pressure value is greater than the second pressure value, and the first speed is greater than the second speed.

[0097] In some embodiments, the attribute information is information related to the first swipe operation. Optionally, the attribute information includes: other attribute information of the first swipe operation besides distance, such as the size of the trigger area covered by the first swipe operation. Optionally, the size of the trigger area covered by the swipe operation is positively correlated with the movement speed of the virtual object. When the size of the trigger area covered by the swipe operation is a first area, the movement speed of the virtual object is a third speed; when the size of the trigger area covered by the swipe operation is a second area, the movement speed of the virtual object is a fourth speed; if the first area is larger than the second area, then the third speed is greater than the fourth speed.

[0098] In some embodiments, the movement speed of a virtual object is also related to its current location / area in the virtual environment (e.g., flat ground, grassland, snow, river, etc.). In some embodiments, the movement speed is related to the complexity of the virtual environment in which the virtual object is currently located. Optionally, if the virtual environment is snow, the movement speed of the virtual object will be reduced. Optionally, if the virtual environment is flat ground, the movement speed of the virtual object will be significantly increased compared to the movement speed of a virtual object in snow.

[0099] The technical solution provided in this application embodiment determines the movement speed of the virtual object by combining the attribute information of the sliding operation with the sensitivity of the trigger area, which is more in line with the actual situation and makes the user's control over the virtual object more precise and accurate.

[0100] Step 360: Control the virtual object to move at the first moving speed.

[0101] In some embodiments, the method further includes the following steps (361-365, Figure 8 At least one step in (not shown in the text).

[0102] Step 361: In response to the setting operation for the trigger area, display the range boxes corresponding to the multiple trigger areas respectively.

[0103] In some embodiments, the user can set the trigger area before or after the start of the game; this application does not limit this. This application also does not limit the type of setting operation; it can be a click operation on the trigger area or setting the trigger area through other controls. In response to the setting operation on the trigger area, multiple range boxes corresponding to each trigger area are displayed. These range boxes can be displayed as highlighted areas or as ordinary lines; the specific display method is not limited in this application.

[0104] Step 362: In response to the deletion operation of the target trigger region in multiple trigger regions, the range box corresponding to the target trigger region is canceled.

[0105] In some embodiments, users can delete unwanted trigger areas, such as... Figure 6 In the illustrated embodiment, the user can perform a deletion operation on the trigger region Q6. Optionally, if the user believes that the trigger region Q6 is not very useful and does not need the trigger region Q6, the user can delete the trigger region Q6.

[0106] Step 363, in response to the adjustment operation of the target trigger region in multiple trigger regions, adjust at least one of the size and position of the bounding box corresponding to the target trigger region.

[0107] In some embodiments, the user can adjust the size and position of the trigger area's bounding box. Optionally, the user can adjust the size of the trigger area's bounding box through a first adjustment operation, such as increasing the size of the bounding box; alternatively, the user can adjust the position of the trigger area's bounding box through a second adjustment operation. Optionally, the bounding box can be dragged to the desired position.

[0108] Step 364: In response to the addition of a trigger area, display the bounding box corresponding to the newly added trigger area.

[0109] In some embodiments, users can add trigger areas and display the bounding box corresponding to the newly added trigger area.

[0110] Step 365: In response to the completion of the setting operation for the trigger area, set multiple trigger areas corresponding to the joystick control according to the size and position of the range box corresponding to each currently displayed trigger area.

[0111] The technical solution provided in this application embodiment allows for the adjustment of the size and position of the trigger area's bounding box, enabling the addition or deletion of trigger areas. This satisfies different user needs and is suitable for different user groups. For novice users, a small number of large trigger areas can be set to avoid accidental touches. For experienced users, multiple small trigger areas can be set to facilitate improving their game skills, increase the possibility of human-computer interaction, and provide a better user experience.

[0112] In some embodiments, the method further includes the following steps (366-368, Figure 8 At least one step in (not shown in the image):

[0113] Step 366: Obtain real-time competitive data related to the virtual object. The real-time competitive data includes at least one of the following: real-time attribute data of the virtual object, real-time environment data of the virtual object, real-time equipment data of the virtual object, and real-time distance between the current position and the desired position of the virtual object.

[0114] In some embodiments, the real-time attribute data of a virtual object can be the current state of a virtual user, such as health points, whether the user is injured, whether the user is continuously losing health, etc.

[0115] In some embodiments, the real-time environmental data of a virtual object can be data about the real-time environment in which the virtual object is currently located, such as whether the virtual object is in the poison circle, whether it is in an unsafe swamp area, whether it is in a lightning strike area, etc.

[0116] In some embodiments, the real-time equipment data of a virtual object can be the data of the equipment currently held by the virtual object, such as the number of virtual items, the number of virtual weapons, etc.

[0117] In some embodiments, the real-time distance between the current position and the desired position of a virtual object can be the distance between the current position of the virtual object and the expected position. The desired position can be marked by the user or predicted by the server. For example, the desired position can be the center of the safe zone or a target position marked by the user.

[0118] Step 367: Determine the recommended trigger area from multiple trigger areas based on real-time competitive data.

[0119] In some embodiments, a recommended trigger area is determined from multiple trigger areas based on real-time competitive data. For example, when a virtual object has low health, poor equipment, and is in an unsafe area, the trigger area with the highest sensitivity is selected as the recommended trigger area from multiple trigger areas. Conversely, when a virtual object has very good health and excellent equipment, a trigger area with lower sensitivity is selected as the recommended trigger area from multiple trigger areas. Optionally, the recommended trigger area is one of multiple trigger areas.

[0120] In some embodiments, real-time competitive data is processed using a speed prediction model to predict the expected movement speed of virtual objects; wherein the speed prediction model is a machine learning model based on a neural network. Based on the expected movement speed, a recommended trigger area is determined from multiple trigger areas.

[0121] Step 368 displays the prompt information corresponding to the recommended trigger area.

[0122] In some embodiments, the prompt message is a joystick control, which is displayed in a recommended trigger area among multiple trigger areas. Optionally, the joystick control is displayed at a reference point position within the recommended trigger area, where the reference point position is the center point of the recommended trigger area. Figure 5 As shown, the joystick control T0 is directly displayed in the recommended trigger area of ​​the user interface.

[0123] In some embodiments, the prompt information is a recommended trigger area, which is displayed differently from other trigger areas among multiple trigger areas. For example, the recommended trigger area is highlighted in the user interface. Optionally, such as Figure 5 As shown, trigger area Q3 is highlighted on the recommended trigger area of ​​the user interface.

[0124] The technical solution provided in this application determines recommended trigger areas based on real-time competitive data of virtual objects. It can provide recommended trigger areas in real time according to the virtual object's situation. When a virtual object encounters danger or is in an unsafe state, the user can directly use the recommended trigger area without being distracted by considering which trigger area to use, reducing the user's reaction time and enhancing the user's competitive experience. Simultaneously, it improves the accuracy and efficiency of trigger area selection, allowing users to quickly and accurately select trigger areas suitable for the current competitive scenario to control the virtual object to move at a speed appropriate for the current competitive situation.

[0125] Please refer to Figure 9 The diagram illustrates a flowchart of a virtual object control method provided in another embodiment of this application. The execution entity for each step of this method can be... Figure 1 In the implementation environment of the illustrated scheme, the terminal device 10 may be a client of the target application, where the execution subject of each step is a client of the target application. In the following method embodiments, for ease of description, the execution subject of each step will only be referred to as the "client". The method may include at least one of the following steps (320-380):

[0126] Step 320: Display the user interface, which shows a joystick control for controlling the movement of the virtual object. The joystick control has multiple corresponding direction ranges, and different direction ranges correspond to different movement directions.

[0127] Step 370: In response to a first sliding operation on the joystick control, determine the first direction interval to which the real-time direction belongs from multiple direction intervals based on the real-time position of the first sliding operation relative to the real-time direction of the joystick control.

[0128] In the technical solution provided in this application embodiment, not only can the movement speed of the virtual object be determined based on the sensitivity of the target trigger area corresponding to the starting position of the sliding operation, but also the first direction interval to which the real-time direction belongs can be determined from multiple direction intervals based on the real-time position of the sliding operation relative to the real-time direction of the joystick control.

[0129] This application does not limit the number of direction intervals. Optionally, the number of direction intervals is 8.

[0130] In some embodiments, such as Figure 10 In the schematic diagram of the user interface shown, the real-time position of the user's first swipe operation relative to the real-time direction of the joystick control L1 is determined from multiple direction intervals to belong to a first direction interval. In some embodiments, Figure 10The middle section can be divided into 10 directional intervals. Taking the upper half as an example, it can be divided into five directional intervals: up, upper left, upper right, left, and right. In some embodiments, each directional interval corresponds to a certain range. Optionally, such as... Figure 11 As shown, the real-time position of the first sliding operation relative to the real-time direction of the joystick control L2 is the direction pointed to by arrow m3. The direction of m3 falls within the direction interval enclosed by m1 and m2. Therefore, the "upper left" direction interval enclosed by m1 and m2 is determined as the first direction interval. The direction corresponding to the first direction interval, which is 45 degrees west of north, is determined as the movement direction of the virtual object, just as the movement direction of the virtual object pointed to by arrow m4 is 45 degrees west of north.

[0131] Specifically, with Figure 12 Taking the schematic diagram of the joystick control shown as an example, there are a total of 8 directional intervals. The real-time position of the first interactive operation is E1, the center position of the joystick control L3 is E0, and the real-time position of the first sliding operation relative to the real-time direction of the joystick control is the direction from E0 to E1. It can be determined that the direction from E0 to E1 belongs to the directional interval P1 (P1 corresponds to one of the eight directional intervals, the upper right directional interval).

[0132] In some embodiments, a method is provided to determine the first direction interval to which the real-time position of the first sliding operation belongs relative to the real-time direction of the joystick control.

[0133] Based on user interaction, the number of pixels the user swipes on the screen can be determined, thus yielding the arc length of the swipe. Assuming the arc length is 5mm, the arc length formula is L = n × π × r / 180, where L = α × r. Here, n is the central angle, r is the radius, and L is the arc length of the central angle. In a circle with radius R, since the arc length subtended by a 360° central angle is equal to the circumference C = 2πr, the arc length subtended by an n° central angle is l = n°πr ÷ 180° (l = n° x 2πr / 360°). The arc length of a sector is essentially the length of one side of the circle. Since the angle of the sector is a fraction of 360 degrees, the arc length of the sector is a fraction of the circumference of the circle. Therefore, we can derive: Arc length of a sector = 2πr × angle / 360, where 2πr is the circumference of the circle, and the angle is the angle value of the sector. For example, the central angle corresponding to an arc length of 0.785cm with a radius of 1cm is: l=nπr / 180=n×π×1 / 180=n×3.14×1 / 180=0.785, so we know that n=45 degrees, and the angle corresponding to this arc is 45 degrees.

[0134] Based on the above method of determining the central angle from the arc length, the first direction interval to which the real-time position of the first sliding operation belongs relative to the real-time direction of the joystick control can be determined. Therefore, it is possible to... Figure 12 The arc length L corresponding to the central angle n° is calculated in reverse, and the specific value of n° is determined based on the value of n°. Optionally, if the value of n is 75, then the first direction interval to which the real-time position of the first sliding operation belongs relative to the real-time direction of the joystick control is P2.

[0135] Step 380: Control the virtual object to move in the direction corresponding to the first direction interval.

[0136] In some embodiments, a movement direction is defined for each direction interval. In some embodiments, the center direction of each direction interval is used as the movement direction corresponding to that direction interval. Figure 12 In the diagram, the direction of movement corresponding to the direction interval P1 is the direction from E0 to F, where F is a point in the center direction of the direction interval P1.

[0137] When the direction interval of the real-time direction changes from the first direction interval to the second direction interval, the movement direction of the virtual object is controlled to gradually change from the movement direction corresponding to the first direction interval to the movement direction corresponding to the second direction interval within a first time period. The second direction interval is the direction interval adjacent to the first direction interval. This gradual adjustment of direction prevents the virtual object's direction from changing abruptly, resulting in a better user experience.

[0138] exist Figure 12 In the process, when the real-time position of the sliding operation moves from point E1 to point E2, the direction interval changes from P1 to P2. The direction controlling the movement of the virtual object gradually changes from the direction from E0 to F1 to the direction from E0 to F2. The direction from E0 to F2 is the movement direction corresponding to the direction interval P2.

[0139] This application does not limit the order of the steps mentioned in the embodiments, and all steps can be arranged and combined to form new embodiments.

[0140] The technical solution provided in this application, by dividing the virtual object controlled by the user into multiple directional intervals, avoids the virtual object from changing direction too sensitively. At the same time, by setting multiple directional intervals, each corresponding to a movement direction, the processing overhead of the terminal device is greatly reduced. In some embodiments, when the game screen lags, the movement direction of the virtual object is set to the movement direction corresponding to the multiple directional intervals set in this application embodiment. This can reduce the operating cost of the terminal device, reduce screen lag, and make the screen smoother and the user experience better.

[0141] Please refer to Figure 13 The diagram illustrates a flowchart of a virtual object control method provided in another embodiment of this application. The execution entity for each step of this method can be... Figure 1 In the implementation environment of the illustrated scheme, the terminal device 10 may be a client of the target application, where the execution subject of each step is a client of the target application. In the following method embodiments, for ease of description, the execution subject of each step will only be referred to as the "client". The method may include at least one of the following steps (320-394):

[0142] Step 320-1: Display the user interface, which shows a joystick control for moving the virtual object.

[0143] Step 390: In response to a first sliding operation on the joystick control, obtain the distance between the real-time position of the first sliding operation and the starting position of the first sliding operation.

[0144] In some embodiments, such as Figure 14 As shown, when the real-time position of the first sliding operation is G1, the distance between the real-time position of the first sliding operation and the starting position of the first sliding operation is the distance between G1 and the starting position G0 of the first sliding operation.

[0145] Step 392: If the distance is greater than or equal to the first threshold, display the automatic movement control.

[0146] The auto-move control is used to make virtual objects move automatically. Figure 14 In the first scenario, when the real-time position of the first swipe operation is G1, the distance between the real-time position of the first swipe operation and its starting position is the distance between G1 and the starting position G0, which does not meet the first threshold, so the automatic movement control is not displayed. When the real-time position of the first swipe operation changes from G1 to G2, the distance between the real-time position of the first swipe operation and its starting position is the distance between G2 and the starting position G0, which meets the first threshold, so the automatic movement control H1 is displayed.

[0147] Step 394: If the distance is less than or equal to the second threshold while the automatic movement control is in the display state, then the automatic movement control is de-displayed.

[0148] exist Figure 15 In the process, when the real-time position of the first swipe operation is G5, the distance between the real-time position of the first swipe operation and the starting position of the first swipe operation is the distance between G5 and the starting position of the first swipe operation G6, which satisfies the first threshold, and the automatic movement control H2 is displayed. When the real-time position of the first swipe operation changes from G5 to G4, the distance between the real-time position of the first swipe operation and the starting position of the first swipe operation is the distance between G4 and the starting position of the first swipe operation G6, which does not satisfy the first threshold, and the automatic movement control H1 is canceled from display.

[0149] In this embodiment, the values ​​of the first threshold and the second threshold are not limited. When the distance between the real-time position of the first sliding operation and the starting position of the first sliding operation is greater than or equal to the first threshold, the automatic movement control is displayed. When the distance between the real-time position of the first sliding operation and the starting position of the first sliding operation is less than or equal to the first threshold, the automatic movement control is canceled. This can avoid the continuous disappearance and reappearance of the automatic movement control due to multiple user operations, thus improving the user experience and reducing the processing pressure on the terminal device.

[0150] Please refer to Figure 16 The diagram illustrates a flowchart of a virtual object control method provided in another embodiment of this application. The execution entity for each step of this method can be... Figure 1 In the implementation environment of the illustrated scheme, the terminal device 10 may be a client of the target application, where the execution subject of each step is a client of the target application. In the following method embodiments, for ease of description, the execution subject of each step will only be referred to as the "client". The method may include at least one of the following steps (410-430):

[0151] Step 410: Display the user interface, which shows a joystick control for controlling the movement of the virtual object. The joystick control has multiple corresponding trigger areas, and different trigger areas correspond to different sensitivities.

[0152] Step 420: In response to a first sliding operation in a first trigger area whose starting position is located in a plurality of trigger areas, control the virtual object to move at a first moving speed.

[0153] Step 430: In response to a second sliding operation in a second trigger area whose starting position is located in a plurality of trigger areas, control the virtual object to move at a second moving speed.

[0154] like Figure 17 In the user interface shown, in response to a sliding operation with the starting position at trigger area Q22, the virtual object is controlled to move at a low speed; in response to a sliding operation with the starting position at trigger area Q21, the virtual object is controlled to move at a medium speed; and in response to a sliding operation with the starting position at trigger area Q20, the virtual object is controlled to move at a high speed. Figure 17As shown, when enemy virtual objects appear in the virtual environment, it's necessary to control the virtual object (your own) to move at a relatively low speed. Therefore, the starting position of the swipe operation can be placed in trigger area Q21, making it easier for the virtual object to aim at enemy virtual objects. When it's necessary to control the virtual object to move quickly, such as when running from the poison gas, the starting position of the swipe operation can be placed in trigger area Q20 to control the virtual object to move at a higher speed. When the virtual object is crawling, the starting position of the swipe operation can be placed in trigger area Q22 to control the virtual object to move slowly.

[0155] In some embodiments, in response to a first sliding operation, a joystick control is displayed at the starting position of the first sliding operation. See the above embodiments for details, which will not be repeated here.

[0156] In some embodiments, in response to a setting operation for a trigger area, the bounding boxes corresponding to multiple trigger areas are displayed; in response to a deletion operation for a target trigger area among multiple trigger areas, the bounding box corresponding to the target trigger area is de-displayed; or, in response to an adjustment operation for a target trigger area among multiple trigger areas, at least one of the size and position of the bounding box corresponding to the target trigger area is adjusted; or, in response to an addition operation for a trigger area, the bounding box corresponding to the newly added trigger area is displayed; in response to a setting completion operation for a trigger area, multiple trigger areas corresponding to the joystick control are set according to the size and position of the bounding boxes corresponding to each currently displayed trigger area. For details, please refer to the above embodiments, which will not be repeated here.

[0157] In some embodiments, there is no overlap between any two trigger regions among the plurality of trigger regions; or, at least two trigger regions among the plurality of trigger regions overlap. For details, please refer to the above embodiments, which will not be repeated here.

[0158] In some embodiments, the joystick control is displayed in a recommended trigger area among multiple trigger areas; or, the recommended trigger area among multiple trigger areas is displayed differently from other trigger areas. For details, please refer to the above embodiments, which will not be repeated here.

[0159] The steps mentioned in the embodiments of this application are not limited to the few embodiments listed in this application. The steps can be combined with each other to form new embodiments, and this application does not limit them.

[0160] The technical solution provided in this application embodiment can control virtual objects to move at different speeds for sliding operations in different trigger areas, thereby refining the user's control over virtual objects and meeting the different needs of users in different situations.

[0161] Please refer to Figure 18 The diagram illustrates a flowchart of a virtual object control method provided in another embodiment of this application. The execution entity for each step of this method can be... Figure 1 In the implementation environment of the illustrated scheme, the terminal device 10 may be a client of the target application, where the execution subject of each step is a client of the target application. In the following method embodiments, for ease of description, the execution subject of each step will only be described as a "client". The method may include at least one of the following steps (S1 to S4):

[0162] After the game starts, enter the game and begin executing step S1.

[0163] Step S1: Determine if the player has touched a movement area. If so, enter the movement state; otherwise, re-enter the game.

[0164] After entering the moving state, proceed to step S2.

[0165] Step S2: Determine whether to slide other intervals. If yes, change the direction of movement; otherwise, re-enter the movement state.

[0166] After changing the movement state, proceed to step S3.

[0167] Step S3: Determine if the slider has moved upwards a certain distance. If so, display the "Lock Running" button.

[0168] Step S4: Determine if the run button has been touched. If yes, lock the run state; otherwise, continue to display the lock run button.

[0169] The game is over.

[0170] 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.

[0171] Please refer to Figure 19 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 19 As shown, the device 1800 may include: an interface display module 1810, a speed determination module 1820, and a movement control module 1830.

[0172] The interface display module 1810 is used to display a user interface, which displays a joystick control for controlling the movement of virtual objects. The joystick control has multiple corresponding trigger areas, and different trigger areas correspond to different sensitivities.

[0173] The speed determination module 1820 is used to determine the first moving speed of the virtual object in response to a first sliding operation of a first trigger area whose starting position is located in the plurality of trigger areas, based on the sensitivity corresponding to the first trigger area.

[0174] The movement control module 1830 is used to control the virtual object to move at the first movement speed.

[0175] In some embodiments, the speed determination module 1820 is used to determine the first moving speed of the virtual object based on the sensitivity corresponding to the first trigger area and the attribute information corresponding to the first sliding operation.

[0176] In some embodiments, the attribute information includes the distance between the real-time position of the first sliding operation and the starting position of the first sliding operation.

[0177] In some embodiments, the speed determination module 1820 is further configured to determine a sensitivity correction parameter based on the distance, the sensitivity correction parameter being used to adjust the sensitivity corresponding to the trigger area.

[0178] The speed determination module 1820 is further configured to determine the first moving speed of the virtual object based on the sensitivity correction parameter and the sensitivity corresponding to the first trigger area.

[0179] In some embodiments, at least two of the plurality of trigger regions have overlapping areas.

[0180] In some embodiments, such as Figure 20 As shown, the device also includes a starting position acquisition module 1840, a spacing determination module 1850, and a trigger area determination module 1860.

[0181] The starting position acquisition module 1840 is used to acquire the starting position of the first sliding operation when the first sliding operation is detected.

[0182] The spacing determination module 1850 is used to determine the spacing between the starting position of the first sliding operation and the reference points of each of the trigger areas; wherein the positions of the reference points of each of the trigger areas are different.

[0183] The trigger area determination module 1860 is used to determine the trigger area with the smallest spacing from the plurality of trigger areas as the first trigger area.

[0184] In some embodiments, such as Figure 20 As shown, the device also includes a data acquisition module 1870 and a prompt information display module 1880.

[0185] The data acquisition module 1870 is used to acquire real-time competitive data related to the virtual object. The real-time competitive data includes at least one of the following: real-time attribute data of the virtual object, real-time environment data of the virtual object, real-time equipment data of the virtual object, and real-time distance between the current position and the desired position of the virtual object.

[0186] The trigger area determination module 1860 is further configured to determine a recommended trigger area from the plurality of trigger areas based on the real-time competitive data.

[0187] The prompt information display module 1880 is used to display prompt information corresponding to the recommended trigger area.

[0188] In some embodiments, the trigger area determination module 1860 is further configured to process the real-time competitive data through a speed prediction model to predict the expected movement speed of the virtual object; wherein the speed prediction model is a machine learning model based on a neural network.

[0189] The trigger area determination module 1860 is further configured to determine the recommended trigger area from the plurality of trigger areas based on the desired movement speed.

[0190] In some embodiments, the positions of the plurality of trigger regions are arranged in an increasing or decreasing order of sensitivity corresponding to each of the plurality of trigger regions.

[0191] In some embodiments, the joystick control has multiple corresponding direction ranges, with different direction ranges corresponding to different movement directions.

[0192] In some embodiments, such as Figure 20 As shown, the device also includes an interval determination module 1890.

[0193] The interval determination module 1890 is used to determine the first direction interval to which the real-time direction belongs from the plurality of direction intervals based on the real-time position of the first sliding operation relative to the real-time direction of the joystick control.

[0194] The control movement module 1830 is also used to control the virtual object to move in the movement direction corresponding to the first direction interval.

[0195] In some embodiments, the control movement module 1830 is further configured to control the movement direction of the virtual object to gradually change from the movement direction corresponding to the first direction interval to the movement direction corresponding to the second direction interval within a first time period when the direction interval to which the real-time direction belongs changes from the first direction interval to the second direction interval; wherein, the second direction interval is a direction interval adjacent to the first direction interval.

[0196] In some embodiments, such as Figure 20 As shown, the device also includes a distance acquisition module 1892 and a control display module 1894.

[0197] The distance acquisition module 1892 is used to acquire the distance between the real-time position of the first sliding operation and the starting position of the first sliding operation.

[0198] The control display module 1894 is used to display an automatic movement control when the distance is greater than or equal to a first threshold, and the automatic movement control is used to trigger the virtual object to run automatically.

[0199] The control display module 1894 is further configured to, when the automatic movement control is in the display state, cancel the display of the automatic movement control if the distance is less than or equal to a second threshold; wherein the second threshold is less than the first threshold.

[0200] In some embodiments, the interface display module 1810 is used to display a user interface, which displays a joystick control for controlling the movement of a virtual object, and the joystick control has a plurality of corresponding trigger areas.

[0201] The movement control module 1830 is used to control the virtual object to move at a first movement speed in response to a first sliding operation in a first trigger area whose starting position is located in the plurality of trigger areas.

[0202] The movement control module 1830 is configured to control the virtual object to move at a second movement speed in response to a second sliding operation of a second trigger area whose starting position is located in the plurality of trigger areas; wherein the first trigger area and the second trigger area are different, and the first movement speed and the second movement speed are different.

[0203] In some embodiments, such as Figure 21 As shown, the device also includes a joystick control display module 2040.

[0204] The joystick control display module 2040 is used to display the joystick control at the starting position of the first sliding operation in response to the first sliding operation.

[0205] In some embodiments, such as Figure 21 As shown, the device also includes a range frame display module 2050, a range frame adjustment module 2060, and a trigger area setting module 2070.

[0206] The range box display module 2050 is used to display the range boxes corresponding to the plurality of trigger areas in response to the setting operation for the trigger area.

[0207] The range box display module 2050 is also used to cancel the display of the range box corresponding to the target trigger area in response to a deletion operation of the target trigger area in the plurality of trigger areas.

[0208] The range box adjustment module 2060 is used to adjust at least one of the size and position of the range box corresponding to the target trigger area in response to an adjustment operation for the target trigger area in the plurality of trigger areas.

[0209] The range box display module 2050 is also used to display the range box corresponding to the newly added trigger area in response to the addition operation of the trigger area.

[0210] The trigger area setting module 2070 is used to respond to the setting completion operation of the trigger area by setting multiple trigger areas corresponding to the joystick control according to the size and position of the range box corresponding to each currently displayed trigger area.

[0211] In some embodiments, there is no overlapping area between any two trigger areas among the plurality of trigger areas; or, at least two trigger areas among the plurality of trigger areas have overlapping areas.

[0212] In some embodiments, such as Figure 21 As shown, the device also includes a prompt information display module 2080.

[0213] The prompt information display module 2080 is used to display the joystick control in the recommended trigger area of ​​the plurality of trigger areas; or, the prompt information display module 2080 is used to distinguish the recommended trigger area from other trigger areas among the plurality of trigger areas.

[0214] 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.

[0215] Please refer to Figure 22 This diagram illustrates a structural block diagram of a terminal device 2100 provided in one embodiment of this application. The terminal device 2100 may be... Figure 1 The terminal device 10 in the illustrated implementation environment is used to implement the virtual object control method provided in the above embodiments. Specifically:

[0216] Typically, terminal device 2100 includes a processor 2101 and a memory 2102.

[0217] Processor 2101 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 2101 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 2101 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 2101 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 2101 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0218] The memory 2102 may include one or more computer-readable storage media, which may be non-transitory. The memory 2102 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 the memory 2102 are 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.

[0219] In some embodiments, the terminal device 2100 may also optionally include a peripheral device interface 2103 and at least one peripheral device. The processor 2101, memory 2102, and peripheral device interface 2103 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 2103 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 2104, a display screen 2105, an audio circuit 2107, and a power supply 2108.

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

[0221] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein a computer program is stored therein, which, when executed by a processor, implements a method for controlling a virtual object.

[0222] 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).

[0223] In an exemplary embodiment, a computer program product is also provided, the computer program product including computer instructions stored in a computer-readable storage medium. A processor of a terminal device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the terminal device to perform the aforementioned virtual object control method.

[0224] 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.

[0225] 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 method for controlling a virtual object, characterized in that, The method includes: The user interface includes multiple trigger areas corresponding to a joystick control. The joystick control is used to control the movement of virtual objects, and different trigger areas correspond to different sensitivities. In response to a first sliding operation in a first trigger area whose starting position is located in the plurality of trigger areas, the joystick control is displayed at the starting position, and a first movement speed of the virtual object is determined based on the sensitivity corresponding to the first trigger area; Based on the real-time position of the first sliding operation relative to the real-time direction of the joystick control, determine the first direction interval to which the real-time direction belongs from multiple direction intervals corresponding to the joystick control; The virtual object is controlled to move in the direction corresponding to the first direction interval at the first moving speed; When the direction interval to which the real-time direction belongs changes from the first direction interval to the second direction interval, the movement direction of the virtual object is controlled to gradually change from the movement direction corresponding to the first direction interval to the movement direction corresponding to the second direction interval within a first time period. The second direction interval is a direction interval adjacent to the first direction interval.

2. The method according to claim 1, characterized in that, Determining the first movement speed of the virtual object based on the sensitivity corresponding to the first trigger area includes: The first moving speed of the virtual object is determined based on the sensitivity corresponding to the first trigger area and the attribute information corresponding to the first sliding operation.

3. The method according to claim 2, characterized in that, The attribute information includes: the distance between the real-time position of the first sliding operation and the starting position of the first sliding operation; The step of determining the first movement speed of the virtual object based on the sensitivity corresponding to the first trigger area and the attribute information corresponding to the first sliding operation includes: A sensitivity correction parameter is determined based on the distance, and the sensitivity correction parameter is used to adjust the sensitivity corresponding to the triggering area; The first movement speed of the virtual object is determined based on the sensitivity correction parameter and the sensitivity corresponding to the first trigger area.

4. The method according to claim 1, characterized in that, Among the plurality of trigger regions, at least two trigger regions overlap; the method further includes: When the first sliding operation is detected, the starting position of the first sliding operation is obtained; Determine the distance between the starting position of the first sliding operation and the reference point of each of the trigger areas; wherein the positions of the reference points of each of the trigger areas are different. From the plurality of trigger regions, the trigger region with the smallest spacing is determined as the first trigger region.

5. The method according to claim 1, characterized in that, The method further includes: Acquire real-time competitive data related to the virtual object, wherein the real-time competitive data includes at least one of the following: real-time attribute data of the virtual object, real-time environment data of the virtual object, real-time equipment data of the virtual object, and real-time distance between the current position and the desired position of the virtual object; Based on the real-time competitive data, a recommended trigger area is determined from the multiple trigger areas; Display the prompt information corresponding to the recommended trigger area.

6. The method according to claim 5, characterized in that, The step of determining a recommended trigger area from the multiple trigger areas based on the real-time competitive data includes: The real-time competitive data is processed by a speed prediction model to predict the expected movement speed of the virtual object; wherein, the speed prediction model is a machine learning model based on a neural network. The recommended triggering area is determined from the plurality of triggering areas based on the desired movement speed.

7. The method according to claim 1, characterized in that, The positions of the multiple trigger regions are arranged in order of increasing or decreasing sensitivity corresponding to each trigger region.

8. The method according to claim 1, characterized in that, The method further includes: Obtain the distance between the real-time position of the first sliding operation and the starting position of the first sliding operation; When the distance is greater than or equal to a first threshold, an automatic movement control is displayed, which is used to trigger the virtual object to run automatically; When the automatic movement control is in the display state, if the distance is less than or equal to the second threshold, the automatic movement control is de-displayed; wherein the second threshold is less than the first threshold.

9. A method for controlling a virtual object, characterized in that, The method includes: The user interface is displayed, which includes multiple trigger areas corresponding to a joystick control, and the joystick control is used to control the movement of virtual objects; In response to a first sliding operation in a first trigger area where the starting position is located in the plurality of trigger areas, the joystick control is displayed at the starting position, and the virtual object is controlled to move in a direction corresponding to a first direction interval at a first moving speed. The first direction interval is the direction interval to which the real-time position of the first sliding operation belongs relative to the real-time direction of the joystick control among the plurality of direction intervals corresponding to the joystick control. In response to a second sliding operation in response to a second trigger area whose starting position is located in the plurality of trigger areas, the virtual object is controlled to move at a second moving speed; wherein the first trigger area and the second trigger area are different, and the first moving speed and the second moving speed are different; When the direction interval to which the real-time direction belongs changes from the first direction interval to the second direction interval, the movement direction of the virtual object is controlled to gradually change from the movement direction corresponding to the first direction interval to the movement direction corresponding to the second direction interval within a first time period. The second direction interval is a direction interval adjacent to the first direction interval.

10. The method according to claim 9, characterized in that, The method further includes: In response to the setting operation for the trigger area, display the bounding boxes corresponding to the plurality of trigger areas respectively; In response to a deletion operation targeting a specific trigger area among the multiple trigger areas, the bounding box corresponding to the target trigger area is removed from the display; or... In response to an adjustment operation on a target trigger region among the plurality of trigger regions, at least one of the size and position of the bounding box corresponding to the target trigger region is adjusted; or... In response to the addition of the trigger area, the bounding box corresponding to the newly added trigger area is displayed; In response to the completion of the setting operation for the trigger area, multiple trigger areas corresponding to the joystick control are set according to the size and position of the range box corresponding to each currently displayed trigger area.

11. The method according to claim 9, characterized in that, Among the plurality of trigger regions, there is no overlap between any two trigger regions; or, Among the multiple trigger regions, at least two trigger regions have overlapping areas.

12. The method according to any one of claims 9 to 11, characterized in that, The method further includes: Display the joystick control in the recommended trigger area of ​​the multiple trigger areas; or, The recommended trigger area among the multiple trigger areas is displayed separately from other trigger areas.

13. A control device for a virtual object, characterized in that, The device includes: The interface display module is used to display the user interface, which includes multiple trigger areas corresponding to the joystick control. The joystick control is used to control the movement of virtual objects, and different trigger areas correspond to different sensitivities. A speed determination module is used to respond to a first sliding operation in a first trigger area whose starting position is located in the plurality of trigger areas, display the joystick control at the starting position, and determine a first movement speed of the virtual object based on the sensitivity corresponding to the first trigger area; The interval determination module is used to determine the first direction interval to which the real-time direction belongs from multiple direction intervals corresponding to the joystick control, based on the real-time position of the first sliding operation relative to the real-time direction of the joystick control. The movement control module is used to control the virtual object to move in the direction corresponding to the first direction interval at the first movement speed; The motion control module is further configured to control the movement direction of the virtual object to gradually change from the movement direction corresponding to the first direction interval to the movement direction corresponding to the second direction interval within a first time period when the direction interval to which the real-time direction belongs changes from the first direction interval to the second direction interval, wherein the second direction interval is a direction interval adjacent to the first direction interval.

14. A control device for a virtual object, characterized in that, The device includes: The interface display module is used to display the user interface, which includes multiple trigger areas corresponding to the joystick control. The joystick control is used to control the movement of virtual objects. A movement control module is configured to respond to a first sliding operation in a first trigger area where the starting position is located in the plurality of trigger areas, display the joystick control at the starting position, and control the virtual object to move in a movement direction corresponding to a first direction interval at a first movement speed. The first direction interval is the direction interval to which the real-time position of the first sliding operation belongs relative to the real-time direction of the joystick control among the plurality of direction intervals corresponding to the joystick control. The movement control module is further configured to control the virtual object to move at a second movement speed in response to a second sliding operation of a second trigger area whose starting position is located in the plurality of trigger areas; wherein the first trigger area and the second trigger area are different, and the first movement speed and the second movement speed are different; The motion control module is further configured to control the movement direction of the virtual object to gradually change from the movement direction corresponding to the first direction interval to the movement direction corresponding to the second direction interval within a first time period when the direction interval to which the real-time direction belongs changes from the first direction interval to the second direction interval, wherein the second direction interval is a direction interval adjacent to the first direction interval.

15. A terminal device, characterized in that, The terminal device includes a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the method as claimed in any one of claims 1 to 8, or to implement the method as claimed in any one of claims 9 to 12.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is loaded and executed by a processor to implement the method as described in any one of claims 1 to 8, or to implement the method as described in any one of claims 9 to 12.

17. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium, which a processor reads from and executes to implement the method as claimed in any one of claims 1 to 8, or the method as claimed in any one of claims 9 to 12.

Citation Information

Patent Citations

  • Displacement control method and device for virtual character

    CN113398573A

  • Touch screen game controller

    US20150182856A1