Method for controlling virtual objects, and device, terminal, and computer program therefor
The method simplifies the control of virtual objects in game applications by allowing automatic transition from a first to a second moving state based on stay time within a recognition area, enhancing operational efficiency and convenience with single-finger operations.
Patent Information
- Application Number
- JP2024564587
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-08-18
- Filing Date
- 2023-06-12
- Publication Date
- 2025-05-13
AI Technical Summary
Current methods for controlling virtual objects in game applications are overly complex and inconvenient, particularly when transitioning from a first moving state to a second moving state, which often requires multiple hand or finger operations.
A method and device for controlling virtual objects that automatically transition from a first moving state to a second moving state by detecting the stay time of an operation control within a recognition area, allowing the transition to occur with a single finger operation.
This solution simplifies the operation for transitioning between moving states, improving operational consistency, convenience, and efficiency by reducing the complexity of the trigger operation and allowing state changes with a single finger.
Smart Images

Figure 2025515018000001_ABST
Abstract
Description
[Technical field]
[0001] [Related Applications] This application claims priority based on a Chinese patent application filed on August 18, 2022, bearing application number 202210992629.3, and entitled "Virtual object control method and device, terminal, storage medium, and program product," the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the technical fields of computers and the Internet, and in particular to a method for controlling a virtual object, and an apparatus, a terminal, a storage medium, and a program product thereof. [Background technology]
[0003] Currently, in game application programs, a player may control the movement of a virtual character via a virtual joystick, and may also control the virtual character to automatically enter a fast running state (i.e., a sprint state) via the virtual joystick.
[0004] Taking a shooting game application program as an example, a player may first slide the virtual joystick upwards with his / her left hand to trigger the virtual character to enter a normal sprint state (e.g., holding a virtual item), and then trigger another control with his / her right hand to complete the capture of the virtual item and enable the virtual character to sprint at a faster sprint speed.
[0005] However, such an operation for controlling a virtual character to sprint at a faster sprint speed is overly cumbersome, inconsistent, and not convenient. Summary of the Invention [Problem to be solved by the invention]
[0006] The embodiments of the present application provide a method for controlling a virtual object, which can reduce the complexity of triggering a second moving state, improve the consistency and convenience of the operation, and improve the operation efficiency, as well as a device, a terminal, a storage medium, and a program product thereof. [Means for solving the problem]
[0007] According to one aspect of an embodiment of the present application, there is provided a method for controlling a virtual object executed by a terminal, comprising: displaying manipulation controls for controlling a movement of a virtual object in the virtual scene; controlling the virtual object to automatically move in the virtual scene in a first movement state in response to sliding the operation control from a location of the operation control into a recognition area, the recognition area being for recognizing a location of the operation control after a sliding operation; and a step of controlling the virtual object so that the virtual object automatically moves in the virtual scene in a second movement state when a stay time of the operation control after the slide operation in the recognition area reaches a threshold, wherein a movement speed of the second movement state is faster than a movement speed of the first movement state. According to one aspect of the embodiment of the present application, a display module for displaying manipulation controls for controlling a movement of a virtual object in a virtual scene; a first state trigger module for controlling the virtual object to automatically move in a virtual scene in a first movement state in response to sliding the operation control from a location of the operation control into a recognition area, the recognition area being for recognizing a location of the operation control after a sliding operation; and and a second state trigger module for controlling the virtual object to automatically move in the virtual scene in a second movement state when a dwell time of the operation control after the slide operation in the recognition area reaches a threshold, wherein a movement speed of the second movement state is faster than a movement speed of the first movement state.
[0008] According to one aspect of an embodiment of the present application, there is provided a terminal device including a processor and a memory, in which a computer program is stored that is loaded and executed by the processor to realize the above-mentioned method for controlling a virtual object.
[0009] According to one aspect of an embodiment of the present application, there is provided a computer-readable storage medium storing a computer program that is loaded and executed by a processor to realize the above-described method for controlling a virtual object.
[0010] According to one aspect of the present invention, there is provided a computer program product or computer program including computer instructions stored in a computer-readable storage medium, the computer instructions being read by a processor of a terminal device from the computer-readable storage medium and executed to cause the terminal device to execute the method for controlling a virtual object. Effect of the Invention
[0011] According to the technical solutions provided by the embodiments of the present application, the following beneficial effects can be achieved:
[0012] When a virtual object is in a first movement state, the virtual object can be triggered to automatically move in the virtual scene in a second movement state simply by the dwell time of the position of the operation control in the recognition area reaching a threshold. This makes it possible to consistently trigger the first movement state and the second movement state simply by operating the recognition area with a single finger. Compared to related technologies in which the triggering of the second movement state is completed by a combination of both hands or a combination of multiple fingers, this reduces the complexity of the trigger operation for the second movement state and improves the consistency and convenience of the trigger operation, thereby improving operation efficiency. [Brief description of the drawings]
[0013] [Figure 1] 1 is a schematic diagram of a computer system of a technical solution provided by an embodiment of the present application; [Diagram 2] 1 is a flowchart of a method for controlling a virtual object provided by an embodiment of the present application; [Diagram 3] FIG. 2 is a schematic diagram of a virtual object in a first moving state provided by an embodiment of the present application. [Figure 4] FIG. 2 is a schematic diagram of a virtual object in a second moving state provided by an embodiment of the present application. [Diagram 5] FIG. 2 is a schematic diagram of a first state control and a second state control provided by an embodiment of the present application. [Figure 6] FIG. 2 is a schematic diagram of a virtual object that triggers a first state control provided by an embodiment of the present application. [Figure 7] FIG. 2 is a schematic diagram of a virtual object that triggers a second state control provided by an embodiment of the present application. [Figure 8] 4 is a flowchart of a method for controlling a virtual object provided by another embodiment of the present application; [Figure 9] 4 is a flowchart of a method for controlling a virtual object in a shooting game application program provided by an embodiment of the present application; [Figure 10]10 is a flowchart of a method for controlling a virtual object in a shooting game application program provided by another embodiment of the present application; [Figure 11] FIG. 2 is a block diagram of a virtual object control device provided by an embodiment of the present application. [Figure 12] FIG. 2 is a block diagram of a control device for a virtual object provided by another embodiment of the present application. [Figure 13] FIG. 2 is a block diagram of a terminal device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] 1, a schematic diagram of a computer system of a technical solution provided by an embodiment of the present application is shown. The computer system includes a terminal 10 and a server 20.
[0015] The terminal 10 may be an electronic device such as a mobile phone, a tablet, a game console, a multimedia player, a PC (Personal Computer), etc. The terminal 10 may have installed thereon a client of a target application program such as a game application program, a simulation learning application program, a Virtual Reality (VR) application program, an Augmented Reality (AR) application program, a social application program, an interactive entertainment application program, etc.
[0016] The server 20 is used to provide background services to clients of an application program (e.g., a game-type application program) in the terminal 10. For example, the server 20 may be a background server of the target application program (e.g., a game-type application program). The server 20 may be one server, a server cluster consisting of multiple servers, or one cloud computing service center.
[0017] The terminal 10 and the server 20 can communicate with each other via a network 30. The network 30 may be a wired network or a wireless network.
[0018] Take as an example a client that applies a game-type application program. The client displays a user interface including an operation control for controlling the movement of a virtual object, and in response to a position after a user operates the operation control sliding from the position of the operation control to a recognition area, the client controls the virtual object to automatically move in the virtual scene in a first moving state, and when the stay time of the operation control in the recognition area after the slide operation reaches a threshold, the client controls the virtual object to automatically move in the virtual scene in a second moving state, in which the moving speed of the second moving state is faster than the moving speed of the first moving state.
[0019] Referring to FIG. 2, a flowchart of a method for controlling a virtual object provided by an embodiment of the present application is shown. The execution entity of each step of the method may be the terminal 10 in the computer system of the technical solution shown in FIG. 1, and the method may include the following steps (steps 201 to 203).
[0020] In step 201, manipulation controls are displayed for controlling the movement of a virtual object in a virtual scene.
[0021] The virtual scene is displayed on a user interface. The user interface is a display interface of an application program, for example, the display interface of the target application program. Exemplarily, in a shooting game application program, the user interface may be a display interface of a game match, which is used to present a virtual scene of the game match to a user. In a simulation learning application program, the user interface may be a display interface of a learning scene, which is used to present a simulation environment in the learning scene to a user. Preferably, the user interface includes a display layer and a control layer. Among them, the display layer of the control layer is higher than the display layer. The display layer is used to display screen information (e.g., a virtual scene, a moving screen of a virtual object, etc.), and the control layer is used to display UI (User Interface) controls (e.g., operation controls, buttons, sliders, etc.).
[0022] The virtual object may be a virtual object controlled by a user account in an application program (e.g., a game application program). Taking a shooting game application program as an example, the virtual object may be a virtual character controlled by a user account in a game application program. The virtual object may be a virtual vehicle driven by a virtual character in an application program, such as a virtual car, a virtual airplane, a virtual hot air balloon, etc., and the embodiment of the present application is not limited to a virtual object.
[0023] The virtual scene is an environment displayed (or provided) when a client of an application program (e.g., a game-type application program) is executed on a terminal, and the virtual scene is an environment created for a virtual object to perform an activity (e.g., a game match), and may be, for example, a virtual room, a virtual island, a virtual sky, a virtual land, etc. The virtual scene may be a simulation environment for the real world, a semi-simulation semi-fictional environment, or a purely fictional environment, and is not limited thereto in the embodiments of the present application.
[0024] In an embodiment of the present application, a user can control a virtual object to move in a virtual scene through a manipulation control, which may be, for example, a joystick control, a gamepad control, a direction control, etc.
[0025] In step 202, in response to sliding the manipulation control from a location of the manipulation control into a recognition area in the user interface, the virtual object is controlled to automatically move in the virtual scene in a first movement state.
[0026] In some embodiments, the location of the navigation control is the location of the touch point on the navigation control.
[0027] A touch point is a contact point when performing an operation in a user interface, or a touch point that a user operates on a display screen of a terminal, such as a contact point between a user's finger and the display screen of a terminal. A recognition area is an area associated with an operation control, and is used to change the movement state of a virtual object or to recognize a touch point slid from an operation control. For example, the recognition area can switch a virtual character from a walking state to an automatic high-speed running state.
[0028] In some embodiments, the location of the control is the location of the control on a game control lever. Preferably, the location of the control is a start or default or home position of the control on a game control lever.
[0029] In an embodiment of the present application, the first moving state includes at least one of a moving speed, a moving posture, and a moving attribute.
[0030] In some embodiments, for example, when the virtual object is a virtual character, the movement speed may be the movement speed of the virtual character in a first movement state, the movement posture may include postures such as walking, running, squatting, sprinting, holding a virtual item, not holding a virtual item, etc., and the movement attributes may include using a virtual vehicle, not using a virtual vehicle, etc.
[0031] For example, a virtual character in a first movement state is sprinting with a virtual item at a movement speed of 2 m / s when the virtual character is not using a virtual vehicle.
[0032] In some other embodiments, for example, when the virtual object is a virtual vehicle, the movement speed may be a running speed of the virtual vehicle in a first movement state, the movement posture may be a running posture of the virtual vehicle, and the movement attributes may include flying in the air, running on water, running on land, etc.
[0033] For example, the virtual vehicle in the first moving state is one in which the virtual vehicle moves while floating on the water surface at a running speed of 20 m / s.
[0034] For example, referring to FIG. 3, in response to a user's trigger operation on the joystick control 302 in the user interface 301, the client controls the virtual object 303 to walk in the virtual scene. In response to the user sliding the joystick control 302 upward, the client displays a recognition area 304 at a position set distance upward from the joystick control 302. In response to the user sliding the position of the joystick control 302 from the position of the joystick control 302 to the recognition area 304, the client enters a first moving state, i.e., controls the virtual object 303 to automatically run in the virtual scene in the first moving state. Among them, the first moving state may be called a normal sprint state (i.e., an automatic high-speed running state), and the moving speed of the first moving state is faster than the moving speed of the walking state. Preferably, an icon corresponding to the first moving state is further displayed in the identification area 304 to present to the user that the virtual object 304 is in the first moving state. The icon may include text information such as "keep sprinting."
[0035] In one example, when a virtual object has a virtual item, the virtual object in the first movement state automatically moves in the virtual scene with the virtual item. For example, referring to FIG. 3, the virtual object 303 in the first movement state is automatically running in the virtual scene with the virtual item 305 at the movement speed of the first movement state. Preferably, when the virtual object does not have a virtual item, the virtual object can automatically move in the virtual scene with bare hands (i.e., not holding the virtual item).
[0036] In one example, in response to the operation control sliding from the location of the operation control after the slide operation into the identification area, the client displays a dynamic presentation icon in a vicinity of the identification area, the dynamic presentation icon being for indicating a dwell time.
[0037] The dynamic presentation icon may be for dynamically displaying the stay time, and the degree of filling of the elements in the dynamic presentation icon changes according to the stay time. Preferably, a first icon for indicating a first moving state is displayed at one end of the dynamic presentation icon, and a second icon for indicating a second moving state is displayed at the other end. Exemplarily, the dynamic presentation icon may be a progress bar, an hourglass, etc.
[0038] 3, in response to the position of the joystick control 302 sliding from its location into the recognition area 304, the client displays a dynamic presentation icon 306 above the recognition area 304. A first icon for indicating a first movement state is displayed on the left end of the dynamic presentation icon 306, and a second icon for indicating a second movement state is displayed on the right end.
[0039] Among them, the moving speed of the second moving state is faster than the moving speed of the first moving state. Preferably, the moving posture of the second moving state may be different from the moving posture of the first moving state. For example, the moving posture of the second moving state is a squat moving, and the moving posture of the first moving state is a standing moving. In one example, when a virtual object has a virtual item, the virtual object in the second moving state takes in the virtual item and moves automatically in the virtual scene. For example, referring to FIG. 3 and FIG. 4, the virtual object 303 in the second moving state takes in the virtual item 305 and automatically runs in the virtual scene at the moving speed of the second moving state. The moving attribute of the second moving state may be similar to the moving attribute of the first moving state. For example, neither the virtual object in the second moving state nor the virtual object in the first moving state uses a virtual vehicle.
[0040] In the embodiment of the present application, the staying time is the time that the operation control stays in the recognition area after the slide operation. Preferably, when the operation control slides into the recognition area and immediately leaves the recognition area, the dynamic presentation icon is not displayed.
[0041] In one example, the degree of filling of elements in the dynamic presentation icon has a positive correlation with the staying time, and the filling process of elements in the dynamic presentation icon may be as follows:
[0042] When the operation control after the slide operation stays in the recognition area, a video in which the elements in the dynamic presentation icon are dynamically filled is displayed, and when the stay time reaches a threshold, a video in which the filling of the elements in the dynamic presentation icon is completed is displayed, and the display of the dynamic presentation icon and the identification area is canceled.
[0043] For example, referring to Figures 3, 4 and 5, as the dwell time increases, the elements in the dynamic presentation icon 306 gradually fill the dynamic presentation icon 306, and when the dwell time reaches a threshold, the filling of the elements in the dynamic presentation icon 306 is completed, and at the same time, the client cancels the display of the dynamic presentation icon 306 and the identification area 304.
[0044] In this way, by visually displaying the dwell time using dynamic presentation icons, the user can more intuitively obtain the dwell time and perform subsequent operations, thereby improving the user experience.
[0045] In step 203, if the dwell time of the operation control after the slide operation in the recognition area reaches a threshold, the virtual object is controlled to automatically move in the virtual scene in a second moving state, in which the moving speed of the second moving state is faster than the moving speed of the first moving state.
[0046] Preferably, when the operation control after the slide operation is slid into the recognition area, calculation of the staying time is started. The threshold value can be adaptively set and adjusted according to actual use demand, for example, the threshold value may be 2s, 2.5s, 3s, etc. Exemplarily, when the virtual object is in a first moving state, in response to the staying time reaching the threshold value (i.e., being equal to or greater than the threshold value), the client controls the virtual object to enter a second moving state, i.e., controls the virtual object to automatically move in the virtual scene with a moving speed, moving posture, etc. corresponding to the second moving state.
[0047] For example, referring to FIG. 4 and FIG. 5, when the reading of the progress bar of the dynamic presentation icon 306 is completed, the virtual object 303 takes in the virtual item 305 and automatically runs in the virtual scene at a moving speed corresponding to the second moving state, that is, the virtual object 303 enters a state of taking in an item and sprinting. Preferably, the icon corresponding to the second moving state is updated and displayed in the identification area 304 so as to present to the user that the virtual object 303 is in the second moving state. Text information such as "taking in an item and sprinting" may be arranged on the icon. In response to the user ending the trigger operation on the joystick control 302, the presentation information "taking in an item and sprinting" is correspondingly displayed on the joystick control 302.
[0048] In one example, after the virtual object enters the second movement state, a first state control and a second state control are further displayed on the client, in which the first state control is for switching the movement state of the virtual object, and the second state control is for controlling the virtual object to stop the automatic movement.
[0049] For example, referring to FIG. 5, in response to the user terminating the trigger operation on the joystick control 302, the client continues to hold the virtual object 303 in the second movement state and displays the first state control 307 and the second state control 308 within the movable area of the joystick control 302. Among them, the first state control 307 is located above the second state control 308. Preferably, the first state control 307 and the second state control 308 may be buttons. Presentation information of switchable movement states is displayed correspondingly on the first state control 307. Presentation information of "Stop automatic movement" is displayed correspondingly on the second state control 308.
[0050] In one example, the client controls the virtual object to switch from the second movement state to the first movement state in response to a trigger operation on the first state control.
[0051] For example, with reference to FIGS. 5 and 6 , in response to a user triggering operation on the first state control 307, the virtual object 303 switches from automatic fast running without having the virtual item 305 to automatic fast running with the virtual item 305.
[0052] In another example, the client controls the virtual object to stop automatic movement and hold the virtual item in response to a trigger operation on the second state control.
[0053] 7, in response to a user's trigger operation on the second state control 308, the virtual object 303 stops the automatic high-speed running and scrapes out the virtual item 305, or the virtual object 303 scrapes out the virtual item 305 and stops the automatic high-speed running. In this way, the scraping out of the virtual item and the stopping of the automatic running can be realized with one touch, and compared with the related technology in which the virtual object is first controlled to stop running by the operation control, and then controlled to scrape out the virtual item by the possession control corresponding to the virtual item, the switching operation in the technical solution provided by the embodiment of the present application is simpler and more convenient.
[0054] Preferably, the client hides the first state control and the second state control in response to a trigger operation on the first state control or the second state control. In this way, the operation control can be restored to a normal state, and the user can continue to use the operation control normally.
[0055] In one example, in response to the manipulation control sliding from a location of the manipulation control into the recognition area, the client performs a step of controlling the virtual object to automatically move in the virtual scene in a first movement state if the virtual object has a virtual item, and a step of controlling the virtual object to automatically move in the virtual scene in a second movement state if the virtual object does not have the virtual item.
[0056] Illustratively, in response to the operation control sliding from a location of the operation control into the recognition area, the client controls the virtual object to automatically move in the virtual scene holding the virtual item at a movement speed of a first movement state when the virtual object is holding a virtual item, and to automatically move in the virtual scene barehanded at a movement speed of a second movement state when the virtual object is not holding the virtual item.
[0057] In one example, a method for determining the moving speed of a virtual object may be as follows.
[0058] If the staying time is equal to or greater than 0 and less than a threshold, the moving speed of the virtual object is determined to be a first moving speed, and if the staying time is equal to or greater than the threshold, the moving speed of the virtual object is determined to be a second moving speed, and the first moving speed is the sum of the product of the staying time and a set ratio and the first moving speed.
[0059] If the staying time is equal to or greater than 0 and less than the threshold, the virtual object is switched to a first moving state, i.e., the moving speed of the first moving state is fixed at the first moving speed. If the staying time is equal to or greater than the threshold, the virtual object is switched to a second moving state, i.e., the moving speed of the second moving state is increased in addition to the first moving speed as the staying time increases.
[0060] As described above, according to the technical solutions provided by the embodiments of the present application, when a virtual object is in a first movement state, the virtual object can be triggered to automatically move in the virtual scene in a second movement state simply by the dwell time of the operation control in the recognition area reaching a threshold. This makes it possible to consistently trigger the first movement state and the second movement state simply by operating the recognition area with a single finger. Compared with the related technology in which the triggering of the second movement state is completed by a combination of both hands or a combination of multiple fingers, this reduces the complexity of the trigger operation for the second movement state and improves the consistency and convenience of the trigger operation, thereby improving operation efficiency.
[0061] In addition, since the virtual item can be scraped out and the automatic running can be stopped with a single touch, compared with the related art in which the virtual object is first controlled to stop running by an operating control, and then the virtual object is controlled to scrape out the virtual item by a possessed control corresponding to the virtual item, the switching operation in the technical solution provided by the embodiments of the present application is simpler and more convenient, and the operation efficiency is further improved.
[0062] Referring to FIG. 8, a flowchart of a method for controlling a virtual object provided in another embodiment of the present application is shown. The execution entity of each step of the method may be the terminal 10 in the computer system of the technical solution shown in FIG. 1, and the method may include several steps (steps 801 to 803) as follows:
[0063] In step 801, manipulation controls for controlling the movement of a virtual object in a virtual scene are displayed.
[0064] In step 802, in response to sliding the manipulation control from a location of the manipulation control into a recognition area, the virtual object is controlled to automatically move in the virtual scene in a first movement state.
[0065] Steps 801 and 802 are similar to those explained in the above embodiment, and the above embodiment can be referred to for the contents not explained in the embodiment of the present application, so that the explanation thereof will be omitted here.
[0066] In step 803, in response to a quick click operation on the setting region, the virtual object is controlled to automatically move in the virtual scene in a second movement state.
[0067] Among them, the quick click operation is an operation in which a plurality of consecutive clicks are performed, and the time interval between two adjacent clicks among the plurality of consecutive clicks is smaller than a preset threshold. Preferably, the quick click operation may be a double click operation. The double click operation is an operation in which two consecutive clicks are performed, and the time interval between the two consecutive clicks is smaller than a preset threshold. In some embodiments, the quick click operation may be a triple click operation, a tetraclick operation, etc., and is not limited to this in the embodiments of the present application. In the embodiments of the present application, the setting area is not limited, and the setting area may be the above-mentioned recognition area. For example, in response to the user ending the slide operation on the operation control, the setting time is still continuously displayed in the identification area so that the user performs a quick click operation. The setting area may be a click operation detection area newly increased to detect the quick click operation. For example, in response to the user ending the slide operation on the operation control, the display of the identification area is canceled, and a click operation detection area is displayed at a display position corresponding to the identification area or in its vicinity so that the user performs a quick click operation.
[0068] Illustratively, when the virtual object is in a first movement state, in response to a user's double-click operation on the setting area, the client controls the virtual object to automatically move in the virtual scene in a second movement state.
[0069] In the embodiment of the present application, the process of obtaining the moving speed corresponding to the second moving state is as follows.
[0070] 1. Get attribute information of quick click operation.
[0071] Preferably, the attribute information of the quick click operation may be the number of clicks, the click speed, etc. of the quick click operation.
[0072] 2. Determine a moving speed corresponding to a second moving state based on attribute information of the quick click operation.
[0073] Preferably, there is a positive correlation between the movement speed corresponding to the second movement state and the attribute information of the quick click operation.
[0074] For example, the moving speed corresponding to the second moving state and the number of clicks of the quick click operation are positively correlated. For example, when the number of clicks of the quick click operation is 2, the moving speed corresponding to the second moving state is the first stage moving speed, when the number of clicks of the quick click operation is 3, the moving speed corresponding to the second moving state is the second stage moving speed, and when the number of clicks of the quick click operation is 4, the moving speed corresponding to the second moving state is the third stage moving speed. Among them, the third stage moving speed is faster than the second stage moving speed, and the second stage moving speed is faster than the first stage moving speed.
[0075] Preferably, the movement speed corresponding to the second movement state may be positively correlated with the click speed of the quick click operation, such that the faster the click speed of the quick click operation, the faster the movement speed corresponding to the second movement state.
[0076] 3. Controlling the virtual object to move automatically in the virtual scene in a second moving state.
[0077] Preferably, the client controls the virtual object to automatically move in the virtual scene at a movement speed corresponding to the second movement state determined as above.
[0078] As described above, according to the technical solutions provided by the embodiments of the present application, when a virtual object is in a first movement state, a quick click operation on a set area can be simply performed to trigger the virtual object to automatically move in the virtual scene in a second movement state. This makes it possible to consistently trigger the first movement state and the second movement state by simply performing an operation on the recognition area with one hand. Compared with the related technology in which the triggering of the second movement state is completed by a combination of both hands or a combination of multiple fingers, this reduces the complexity of the trigger operation for the second movement state and improves the consistency and convenience of the trigger operation, thereby improving operation efficiency.
[0079] In one exemplary embodiment, referring to FIG. 9 , taking a virtual character in a shooting game application program as an example, the method for controlling a virtual object provided by the embodiment of the present application may further include the following content.
[0080] The client displays a user interface on which a virtual scene view is displayed, in which a virtual character is holding a virtual shooting item, and preferably the user interface further displays a joystick control for controlling movement of the virtual character.
[0081] In response to a user sliding the joystick control upward, the client displays an identification region associated with the joystick control, which may be used to control the virtual character to enter a first sprint state, wherein the virtual character in the first sprint state automatically runs fast in the virtual scene with the virtual shooting item.
[0082] The client detects whether the virtual character has a virtual shooting item. If it detects that the virtual character has a virtual shooting item, the client displays a progress bar (i.e., the dynamic presentation icon described above) above the identification area. If not, the client does not display the progress bar and continues to detect whether the virtual character has a virtual shooting item. Among them, the progress bar is used to visualize and indicate the time that the slide operation continues to stay in the recognition area, and the reading progress of the progress bar is positively correlated with the staying time.
[0083] Preferably, a first sprint icon corresponding to a first sprint state is displayed at the left end of the progress bar, and a second sprint icon corresponding to a second sprint state is displayed at the right end of the progress bar, whereby the virtual character in the second sprint state takes in a virtual shooting item and automatically runs faster in the virtual scene, the running speed of the second sprint state being faster than the running speed of the first sprint state.
[0084] The client detects whether the current position of the operation control has reached the recognition area, i.e., detects whether the current position of the operation control has touched or overlapped the recognition area. If it detects that the current position of the operation control has reached the recognition area, it starts filling the progress bar from left to right, i.e., increases the progress bar reading progress (e.g., 0%-100%). If it does not detect that the current position of the operation control has reached the recognition area, the client continues to detect whether the current position of the operation control has reached the recognition area.
[0085] At the same time, the client controls the virtual object to enter a first sprint state. Illustratively, the virtual object holds the virtual shooting item and automatically runs at a running speed in the first sprint state in the virtual scene. The user interface displays the text "sprint with item."
[0086] If the current position of the operation control does not leave the recognition area, the client continues to count the stay time corresponding to the operation control and detects whether the stay time reaches 2s. When the stay time reaches 2s, the client controls the virtual object to enter a second sprint state. Exemplarily, the virtual object captures a virtual shooting item and automatically runs at a running speed of the second sprint state in the virtual scene. The user interface displays the words "capture item and sprint". Otherwise, the client continues to detect whether the stay time reaches 2s.
[0087] After the virtual object enters the second sprint state, in response to the user ending the slide operation, the client determines the running speed of the second sprint state based on the stay time, and at the same time, the client cancels the display of the identification area and displays a screen in which the display of the progress bar is canceled after it is filled up to 100%.
[0088] Preferably, after the virtual object enters the second sprint state, a first state control and a second state control are displayed in the movable area of the joystick control, among which the first state control controls the virtual object to switch from the second sprint state to the first sprint state, and the second state control controls the virtual object to stop automatic fast running and to have a virtual shooting item.
[0089] Referring to FIG. 10, after displaying the first state control and the second state control, the client detects the first state control and the second state control.
[0090] When the user triggers the first state control, the client controls the virtual object to switch from the second sprint state to the first sprint state, and causes the first state control and the second state control to be hidden, i.e., the joystick to be in a default rest state, and displays the text "sprint with item" on the user interface.
[0091] When the user triggers the second state control, the client stops sprinting, scoops out the virtual shooting item, and controls the virtual object to wait for further control by the user. At the same time, the client makes the first state control and the second state control invisible. The display of the text "sprint with item" in the user interface is canceled.
[0092] As described above, according to the technical solutions provided by the embodiments of the present application, when a virtual object is in a first movement state, the virtual object can be triggered to automatically move in the virtual scene in a second movement state simply by the dwell time of the operation control in the recognition area reaching a threshold. This makes it possible to consistently trigger the first movement state and the second movement state simply by operating the recognition area with a single finger. Compared with the related technology in which the triggering of the second movement state is completed by a combination of both hands or a combination of multiple fingers, this reduces the complexity of the trigger operation for the second movement state and improves the consistency and convenience of the trigger operation, thereby improving operation efficiency.
[0093] The following are examples of an apparatus according to the present application, which can be used to perform the method embodiments according to the present application. For details not described in the apparatus embodiments according to the present application, please refer to the method embodiments according to the present application.
[0094] Referring to FIG. 11, a block diagram of a control device for a virtual object provided by an embodiment of the present application is shown. The device has a function for implementing the embodiment of the above method, and the function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The device may be the above-described terminal device, or may be provided in the terminal device. As shown in FIG. 11, the device 1100 includes a display module 1101, a first state trigger module 1102, and a second state trigger module 1103.
[0095] The display module 1101 is used to display manipulation controls for controlling the movement of a virtual object in a virtual scene.
[0096] A first state trigger module 1102 is used to control the virtual object to automatically move in the virtual scene in a first movement state in response to sliding the operation control from a location of the operation control into a recognition area in the user interface, the recognition area being used to recognize the position of the operation control after the sliding operation.
[0097] A second state trigger module 1103 is used to control the virtual object to automatically move in the virtual scene in a second moving state when the dwell time of the operation control after the slide operation in the recognition area reaches a threshold, wherein the moving speed of the second moving state is faster than the moving speed of the first moving state.
[0098] In one exemplary embodiment, as shown in FIG. 12, the apparatus 1100 further includes a presentation icon display module 1104 .
[0099] The presentation icon display module 1104 is used to display a dynamic presentation icon in a vicinity area of the identification area in response to sliding the operation control from a location of the operation control to the identification area, and the dynamic presentation icon is used to indicate the dwell time.
[0100] In one exemplary embodiment, the presentation icon display module 1104 displays an animation in which elements in the dynamic presentation icon are dynamically filled when the operation control after the slide operation stays in the recognition area, where the degree of filling of elements in the dynamic presentation icon is positively correlated with the staying time;
[0101] When the stay time reaches the threshold, displaying a video in which the filling of elements in the dynamic presentation icon is completed;
[0102] It is used to cancel the display of the dynamic presentation icon and the identification area.
[0103] In one exemplary embodiment, a first icon for indicating the first moving state is displayed at one end of the dynamic presentation icon, and a second icon for indicating the second moving state is displayed at the other end.
[0104] In one exemplary embodiment, as shown in FIG. 12, the device 1100 further includes a state control display module 1105 .
[0105] The state control display module 1105 is used for displaying a first state control and a second state control, in which the first state control is used for switching a movement state of the virtual object, and the second state control is used for controlling the virtual object to stop automatic movement.
[0106] In one exemplary embodiment, as shown in FIG. 12, the apparatus 1100 further includes a third condition trigger module 1106 .
[0107] A first state trigger module 1102 is used for controlling the virtual object to switch from the second movement state to the first movement state in response to a trigger operation on the first state control.
[0108] Or, the third state trigger module 1106 is used to control the virtual object to stop automatic movement and hold a virtual item in response to a trigger operation on the second state control.
[0109] In one exemplary embodiment, the state control display module 1105 is used to hide the first state control and the second state control in response to a trigger operation on the first state control or the second state control.
[0110] In one exemplary embodiment, the first state trigger module 1102 is also used to perform a step of controlling the virtual object to automatically move in the virtual scene in a first movement state when the virtual object is holding the virtual item in response to the manipulation control sliding from a location of the manipulation control into the recognition area.
[0111] The second state trigger module 1103 is also used to perform a step of controlling the virtual object to automatically move in the virtual scene in a second movement state in response to the operation control sliding from a location of the operation control into the recognition area, if the virtual object does not have a virtual item.
[0112] In one exemplary embodiment, the virtual object in the first movement state automatically moves in the virtual scene with a virtual item, and the virtual object in the second movement state automatically moves in the virtual scene with the virtual item captured.
[0113] In one exemplary embodiment, as shown in FIG. 12, the device 1100 further includes a movement speed determination module 1107 .
[0114] The moving speed determination module 1107 is used for determining the moving speed of the virtual object as a first moving speed when the staying time is equal to or greater than 0 and less than the threshold.
[0115] The movement speed determination module 1107 is also used to determine the movement speed of the virtual object as a second movement speed when the staying time is greater than or equal to the threshold, and the second movement speed is the sum of the product of the staying time and a set ratio and the first movement speed.
[0116] In one exemplary embodiment, the second state trigger module 1103 is also used to control the virtual object to automatically move in the virtual scene in the second movement state in response to a quick click operation on a setting area when the virtual object is in the first movement state.
[0117] In one exemplary embodiment, the second condition trigger module 1103 is determining a moving speed corresponding to the second moving state based on attribute information of the quick click operation; It is also used to control the virtual object to move automatically in the virtual scene in the second movement state.
[0118] As described above, according to the technical solutions provided by the embodiments of the present application, when a virtual object is in a first movement state, the virtual object can be triggered to automatically move in the virtual scene in a second movement state simply by the dwell time of the operation control in the recognition area reaching a threshold. This makes it possible to consistently trigger the first movement state and the second movement state simply by operating the recognition area with a single finger. Compared with the related technology in which the triggering of the second movement state is completed by a combination of both hands or a combination of multiple fingers, this reduces the complexity of the trigger operation for the second movement state and improves the consistency and convenience of the trigger operation, thereby improving operation efficiency.
[0119] In addition, the above embodiment provides an apparatus that realizes its functions by only taking the partitions of each functional module as an example, but in actual applications, the above functions may be allocated to different functional modules as necessary, that is, the internal structure of the apparatus may be partitioned into different functional modules to complete all or part of the above functions. In addition, the above embodiment provides an apparatus that belongs to the same concept as the method embodiment, and the specific implementation process thereof may be referred to the method embodiment, so that the description thereof will be omitted here.
[0120] Referring to FIG. 13, a structural block diagram of a terminal device 1300 provided by an embodiment of the present application is shown. The terminal device is used to implement the virtual object control method provided by the above embodiment. The terminal device may be the terminal 10 in the computer system shown in FIG. 1. Specifically, Typically, the terminal device 1300 includes a processor 1301 and a memory 1302 .
[0121] Preferably, the processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1301 may be implemented by at least one type of hardware among DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1301 may include a main processor and a co-processor, where the main processor is a processor for processing data in an active state and is also called a CPU (Central Processing Unit). The co-processor is a low-power processor for processing data in an idle state. In some embodiments, the processor 1301 may be integrated with a GPU (Graphics Processing Unit) responsible for rendering and drawing content to be displayed on a display screen. In some embodiments, the processor 1301 may further include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
[0122] Preferably, memory 1302 may include one or more non-transitory computer readable storage media. Memory 1302 may further include high speed random access memory, and non-volatile memory, such as one or more magnetic disk storage devices, flash memory, etc. In some embodiments, the non-transitory computer readable storage media in memory 1302 is used to store computer programs arranged to be executed by one or more processors to implement the above-described method for controlling a virtual object.
[0123] In some embodiments, the terminal device 1300 may further include a peripheral interface 1303 and at least one peripheral device. The processor 1301, the memory 1302, and the peripheral interface 1303 may be connected by a bus or a signal line. Each peripheral device may be connected to the peripheral interface 1303 via a bus, a signal line, or a circuit board. Specifically, the peripheral device includes at least one of an RF (radio frequency) circuit 1304, a display screen 1305, an audio circuit 1306, and a power supply 1307.
[0124] As will be appreciated by those skilled in the art, the terminal device 1300 is not limited to the structure shown in FIG. 13, but may include more or fewer elements than those shown, combine some elements, or employ a different arrangement of elements.
[0125] In one exemplary embodiment, there is further provided a computer-readable storage medium having stored thereon a computer program that, when executed by a processor, realizes the above-described method for controlling a virtual object.
[0126] Preferably, the computer-readable storage medium may include ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives), or optical disks, etc. Among them, RAM may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0127] In one exemplary embodiment, a computer program product or computer program product is further provided, the computer program product or computer program product including computer instructions stored in a computer-readable storage medium, the computer instructions being read by a processor of a terminal device from the computer-readable storage medium, and the processor executing the computer instructions to cause the terminal device to perform the above-mentioned method for controlling a virtual object.
[0128] In addition, the information (including but not limited to target device information, target personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals related to this application are all obtained with permission from the target or sufficient permission from each party, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the virtual objects, operations, etc. related to this application are all obtained on the premise of sufficient permission. [Explanation of symbols]
[0129] 10 Terminal 20 Servers 30 Network 201 Steps 202 Steps 203 Steps 301 User Interface 302 Operation Control 303 Virtual Objects 304 Recognition area 304 Virtual Objects 305 Virtual Items 306 Dynamic Presentation Icon 307 First State Control 308 Second State Control 1100 equipment 1101 Display module 1102 First State Trigger Module 1103 Second State Trigger Module 1104 Presentation icon display module 1105 Status Control Display Module 1106 Third State Trigger Module 1107 Movement Speed Determination Module 1300 Terminal Equipment 1301 Processor 1302 Memory 1303 Peripheral Device Interface 1304 RF (Radio Frequency) Circuits 1305 Display Screen 1306 Audio Circuit 1307 Power supply
Claims
1. A method for controlling a virtual object executed by a terminal, comprising: displaying manipulation controls for controlling a movement of a virtual object in the virtual scene; controlling the virtual object to automatically move in the virtual scene in a first movement state in response to sliding the operation control from a location of the operation control into a recognition area, the recognition area being for recognizing a location of the operation control after a sliding operation; a step of controlling the virtual object to automatically move in the virtual scene in a second movement state when a stay time of the operation control after the slide operation in the recognition area reaches a threshold, wherein a movement speed of the second movement state is faster than a movement speed of the first movement state; A method for controlling a virtual object, comprising:
2. a step of displaying a dynamic presentation icon in a vicinity of the identification area in response to sliding the operation control from a position where the operation control is located to the identification area, the dynamic presentation icon being for indicating the stay time; 2. The method of claim 1 .
3. a step of displaying a moving image in which elements in the dynamic presentation icon are dynamically filled in when the operation control after the slide operation stays in the recognition area, wherein a degree of filling of elements in the dynamic presentation icon is positively correlated with the stay time; When the stay time reaches the threshold, displaying a video in which the filling of elements in the dynamic presentation icon is completed; canceling the display of the dynamic presentation icon and the identification area; The method of claim 2 further comprising:
4. a first icon for indicating the first moving state is displayed at one end of the dynamic presentation icon, and a second icon for indicating the second moving state is displayed at the other end of the dynamic presentation icon; 3. The method of claim 2 .
5. after the step of controlling the virtual object to automatically move in the virtual scene in the second movement state, displaying a first state control and a second state control, the first state control being for switching a movement state of the virtual object, and the second state control being for controlling the virtual object to stop automatic movement; The method of claim 1 further comprising:
6. controlling the virtual object to switch from the second movement state to the first movement state in response to a trigger operation on the first state control; or In response to a trigger operation on the second state control, controlling the virtual object to stop automatic movement and to hold a virtual item.
6. The method of claim 5, further comprising:
7. The method further includes the step of hiding the first state control and the second state control in response to a trigger operation on the first state control or the second state control.
6. The method of claim 5 .
8. in response to the operation control sliding from a position of the operation control into the recognition area, if the virtual object has a virtual item, performing a step of controlling the virtual object to automatically move in the virtual scene in a first movement state, and if the virtual object does not have a virtual item, performing a step of controlling the virtual object to automatically move in the virtual scene in the second movement state.
2. The method of claim 1 .
9. the virtual object in the first movement state moves automatically in the virtual scene with a virtual item; the virtual object in the second movement state automatically moves in the virtual scene, incorporating the virtual item. The method according to any one of claims 1 to 8.
10. determining a moving speed of the virtual object as a first moving speed when the staying time is equal to or greater than 0 and less than the threshold; a step of determining a moving speed of the virtual object as a second moving speed when the staying time is equal to or greater than the threshold value, the second moving speed being a sum of a product of the staying time and a set ratio and the first moving speed; The method according to any one of claims 1 to 8, further comprising:
11. and controlling the virtual object to automatically move in the virtual scene in the second movement state in response to a quick click operation on a setting area when the virtual object is in the first movement state.
2. The method of claim 1 .
12. The step of controlling the virtual object to automatically move in the virtual scene in the second movement state in response to a quick click operation on a setting region includes: determining a moving speed corresponding to the second moving state based on attribute information of the quick click operation; controlling the virtual object to move automatically in the virtual scene in the second movement state; 12. The method of claim 11, comprising:
13. a display module for displaying manipulation controls for controlling a movement of a virtual object in the virtual scene; a first state trigger module for controlling the virtual object to automatically move in the virtual scene in a first movement state in response to sliding the operation control from a location of the operation control into a recognition area, the recognition area being for recognizing a location of the operation control after a sliding operation; and a second state trigger module for controlling the virtual object to automatically move in the virtual scene in a second movement state when a stay time of the operation control after the slide operation in the recognition area reaches a threshold, wherein a movement speed of the second movement state is faster than a movement speed of the first movement state; A control device for a virtual object comprising:
14. A processor and a memory are included. The memory stores a computer program that realizes the virtual object control method according to any one of claims 1 to 12 by being loaded and executed by the processor. A terminal device comprising:
15. A computer program for implementing the virtual object control method according to any one of claims 1 to 12 by being loaded and executed by a processor is stored. A computer-readable storage medium comprising:
16. computer instructions stored on a computer readable storage medium; A processor reads the computer instructions from the computer-readable storage medium and executes them to realize the method for controlling a virtual object according to any one of claims 1 to 12.
23. A computer program product comprising:
Citation Information
Patent Citations
Virtual object motion control method and device, electronic equipment and storage medium
CN107185232A
Virtual object control method and device, terminal and storage medium
CN110523085A
Method and device for controlling movement of virtual object in game, electronic equipment and storage medium
CN113181651A
Game control method and device, equipment and storage medium
CN113900570A
Virtual character control method, nonvolatile storage medium and electronic device
CN113908550A