Method for controlling virtual objects, and related devices.
The joystick control method in shooting games allows for efficient and intuitive virtual object movement through quick-click or slide operations, simplifying the control process and improving interaction efficiency.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-10-02
- Publication Date
- 2026-04-07
AI Technical Summary
Existing shooting games require complex and inefficient operations for continuously moving virtual objects, necessitating repeated button presses or clicks to control movement.
Implementing a joystick control on the user interface that allows for quick-click or slide operations to automatically control virtual objects to run, including automatic switching to a standing or non-standing state based on the operation signal.
Enables efficient and intuitive control of virtual objects with a single key press, enhancing human-machine interaction by allowing users to perform other actions simultaneously while the object is running.
Smart Images

Figure 0007841793000001 
Figure 0007841793000002 
Figure 0007841793000003
Abstract
Description
Technical Field
[0001] This application claims the priority of a Chinese patent application with an application number of 201910812631.6 and an invention title of "Method, Apparatus, Terminal, and Storage Medium for Controlling Virtual Objects", which was filed on August 30, 2019, and incorporates all of its content herein by reference.
[0002] Embodiments of this application relate to the fields of computer and Internet technologies, and particularly to the control of virtual objects.
Background Art
[0003] Currently, in some shooting games on the mobile side, players can control virtual objects in the game scenes provided in the game battles, for example, control the movement of virtual objects.
[0004] In related technologies, buttons for controlling and moving virtual objects are provided in the user interfaces of shooting games. Users can realize the control of the movement of virtual objects by operating the buttons, for example, control the virtual objects to move in a certain direction in the virtual scene.
Summary of the Invention
Means for Solving the Problems
[0005] Embodiments of this application provide a method and related apparatus for controlling virtual objects to solve the technical problem of complex and inefficient operations when continuously moving a virtual object controlled according to related technologies. The technical solution is as follows.
[0006] According to one aspect, embodiments of this application provide a method for controlling a virtual object, the method including displaying a user interface including a joystick control for controlling the movement of the virtual object, A quick-click operation signal is received that acts on the target area corresponding to the joystick control. This includes controlling the virtual object to automatically run in the virtual scene displayed in the user interface in response to the quick-click operation signal.
[0007] In another embodiment, the present application provides a method for controlling a virtual object, the method being: It displays a user interface that includes joystick controls for controlling the movement of virtual objects. When the virtual object is in a non-standing state, if a slide operation signal is received that places the initial position at the joystick control, the virtual object is controlled to switch from the non-standing state to the standing state. This includes controlling the virtual object so that it automatically runs in the virtual scene displayed in the user interface after the virtual object has been switched to the standing position.
[0008] In another embodiment, the present invention provides a control device for a virtual object, the device being An interface display module for displaying a user interface that includes joystick controls for controlling the movement of virtual objects, A signal receiving module for receiving a quick-click operation signal that acts on a target area corresponding to the joystick control, The system includes a running control module for controlling the virtual object to automatically run in the virtual scene displayed in the user interface in response to the quick-click operation signal.
[0009] In another embodiment, the present invention provides a control device for a virtual object, the device being An interface display module for displaying a user interface that includes joystick controls for controlling the movement of virtual objects, When the virtual object is in a non-standing state, and a slide operation signal is received that positions the initial position at the joystick control, a posture switching module for controlling the virtual object to switch from the non-standing state to the standing state is provided. The system includes a running control module for controlling the virtual object to automatically run in the virtual scene displayed in the user interface after the virtual object has been switched to the standing state.
[0010] In a further embodiment, the present invention provides a mobile terminal comprising a processor and memory, the memory storing at least one instruction, at least one program, code set, or instruction set, the at least one program, the code set, or instruction set being loaded and executed by the processor to implement the method of controlling the virtual object described above.
[0011] In a further embodiment, the present invention provides a storage medium for storing a computer program for executing a virtual object control method according to the above embodiments.
[0012] In another embodiment, the present application provides a computer program product which, when executed on a computer, causes the computer to execute the above-described method for controlling virtual objects.
[0013] According to the invention provided in the embodiment of this application, by displaying a joystick control on the user interface, when a quick-click operation signal acting on the target area corresponding to the joystick control is received, a virtual object is controlled to automatically run in the virtual environment displayed on the user interface. This enables the function of the virtual object running automatically with a single key press, without the user having to repeatedly click or press an operation control, thereby improving operational efficiency. [Brief explanation of the drawing]
[0014] To more clearly illustrate the embodiments of this application or the technical concepts in the prior art, the following is a brief introduction to the drawings that may be used in the description of the embodiments or the prior art. Of course, the drawings described below are only a few embodiments of this application, and those skilled in the art can obtain other drawings based on these without any creative effort. [Figure 1] This is a schematic diagram of the implementation environment provided in one embodiment of this application. [Figure 2] This is a schematic diagram of the structure of a terminal provided in one embodiment of this application. [Figure 3] This is a flowchart of a method for controlling a virtual object provided in one embodiment of this application. [Figure 4] A schematic diagram of a user interface is shown as an example. [Figure 5] This is a flowchart of a method for controlling a virtual object provided in another embodiment of this application. [Figure 6] This is a flowchart of a method for controlling a virtual object provided in another embodiment of this application. [Figure 7] An illustrative schematic diagram of another user interface is shown. [Figure 8] This is a flowchart of a slide operation signal control method provided in one embodiment of this application. [Figure 9]It is a flowchart of a method for controlling virtual objects provided in yet another embodiment of the present application. [Figure 10] It is a schematic diagram of yet another user interface of the present application. [Figure 11] It is a schematic diagram of another user interface of the present application. [Figure 12] It is a flowchart of a method for controlling virtual objects provided in yet another embodiment of the present application. [Figure 13] It is a block diagram of a control device for virtual objects provided in an embodiment of the present application. [Figure 14] It is a block diagram of a control device for virtual objects provided in another embodiment of the present application. [Figure 15] It is a block diagram of a control device for virtual objects provided in yet another embodiment of the present application. [Figure 16] It is a block diagram of a control device for virtual objects provided in yet another embodiment of the present application. [Figure 17] It is a structural block diagram of a mobile terminal provided in an embodiment of the present application.
Embodiments for Carrying Out the Invention
[0015] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in more detail below in conjunction with the drawings.
[0016] Before describing the embodiments of the present application, first, related terms related to the present application will be interpreted and described.
[0017] 1. Virtual scene A virtual scene is a scene that is displayed (or provided) when a client of an application (e.g., a game application) is run on a terminal. The virtual scene is a scene created for virtual objects to move (e.g., a game competition), and may be, for example, a virtual house, a virtual island, or a virtual map. The virtual scene may be a simulated scene of the real world, a semi-simulated semi-fictional scene, or a completely fictional scene. The virtual scene may be a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene, but this is not limited to the embodiments of this application.
[0018] 2. Virtual Objects A virtual object is a virtual character controlled by a user account within an application. For example, assuming the application is a game application, the virtual object is a game character controlled by a user account within the game application. The virtual object may be in human form, animal, cartoon, or other form, but this is not limited to the embodiments of this application. The virtual object may be displayed in three-dimensional or two-dimensional form, but this is not limited to the embodiments of this application.
[0019] In different game applications, the operations that can be performed by virtual objects controlled by a user account may differ. For example, in a shooting game application, a user account can control virtual objects to perform operations such as shooting, running, jumping, picking up a gun, changing guns, and loading bullets into guns.
[0020] Of course, in addition to game applications, objects can be displayed to users and functions corresponding to virtual objects can be provided in other types of applications, such as augmented reality (AR) applications, social applications, or interactive entertainment applications, but the application is not limited to this embodiment. Furthermore, the form of virtual objects and their corresponding functions will differ depending on the application and can be pre-configured according to the actual requirements, and this is not limited to the embodiments of this application.
[0021] Referring to Figure 1, a schematic diagram of an implementation environment provided in one embodiment of this application is shown. This implementation environment may include a mobile terminal 10 and a server 20.
[0022] The mobile device 10 may be a portable electronic device such as a mobile phone, tablet PC, game console, e-reader, multimedia playback device, or wearable device. A client for a game application program, such as a client for a shooting game application program, can be installed on the mobile device 10.
[0023] Server 20 is used to provide background services to clients of applications (e.g., game applications) on the mobile device 10. For example, Server 20 may be the backend server for the above application (e.g., game application). Server 20 may be a single server, a server cluster consisting of multiple servers, or a cloud computing service center.
[0024] The mobile terminal 10 and the server 20 can communicate with each other via a network 30. This network 30 may be a wired network or a wireless network.
[0025] In the method embodiment of this application, the entity that performs each step may be a terminal. Referring to Figure 2, a schematic diagram of the structure of a terminal provided in one embodiment of this application is shown. The mobile terminal 10 may include a motherboard 110, an external output / input device 120, memory 130, an external interface 140, a touch system 150, and a power supply 160.
[0026] Here, the motherboard 110 integrates processing elements such as the processor and controller.
[0027] The external output / input device 120 may include a display component (e.g., a screen), an audio broadcasting component (e.g., a speaker), an audio acquisition component (e.g., a microphone), and various buttons.
[0028] The program code and data are stored in memory 130.
[0029] The external interface 140 may include an earphone interface, a charging interface, a data interface, and the like.
[0030] The touch system 150 can be integrated into the display component or button of the external output / input device 120, and the touch system 150 is used to detect touch operations performed by the user on the display component or button.
[0031] Power supply 160 is used to supply power to each of the other components in the mobile terminal 10.
[0032] In the embodiments of this application, the processor in the motherboard 110 can generate a user interface (e.g., a game interface) by executing or calling program code and data stored in memory, and can display the generated user interface (e.g., a game interface) via an external output / input device. While the user interface (e.g., a game interface) is being displayed, the touch system 150 can detect touch actions performed during interaction between the user and the user interface (e.g., a game interface) and respond to such touch actions.
[0033] Referring to Figure 3, a flowchart of a method for controlling a virtual object provided in one embodiment of this application is shown. The method is applicable to the mobile terminal described above, and for example, to a client of an application program for the mobile terminal (e.g., a shooting game application program). The method may include the following steps:
[0034] In step 301, a user interface is displayed that includes joystick controls for controlling the movement of virtual objects.
[0035] Taking a shooting game application program as an example, the user interface may be a display interface for game battles, and this user interface is used to display the virtual environment of the game battle to the user, and for example, the user interface may include elements of the virtual environment such as virtual buildings, virtual tools, and virtual objects. Optionally, the user interface may further include control elements such as buttons, sliders, and icons for the user to operate.
[0036] In the embodiments of this application, as shown in Figure 4, the user interface 40 includes a joystick control 41, which is an operation control for controlling and moving virtual objects. In the embodiments of this application, the display parameters of the joystick control 41 are not limited, and the shape, size, position, and style of the joystick control 41 are not limited. For example, the joystick control 41 may be circular or square, its area may be 1 / 10 of the area of the user interface 40 or 1 / 20 of the area of the user interface 40, the joystick control 41 may be located in the lower left corner of the user interface 40 or in the lower right corner of the user interface 40, and the joystick control 41 may be displayed in a transparent form or in a filled form. In the embodiments of this application, the display of the joystick control 41 does not obstruct the main display elements of the user interface 40.
[0037] Optionally, the user interface includes a first view layer and a second view layer, wherein the display level of the first view layer is higher than that of the second view layer. Joystick controls are located in the first view layer, and the game screen displaying the virtual environment of the game battle is located in the second view layer. Of course, the first view layer may include other control mechanisms in addition to the joystick controls described above, such as control mechanisms for controlling the posture of virtual objects and control mechanisms for controlling virtual equipment assembled on virtual objects, but this is not limited to the embodiments of this application.
[0038] In step 302, a quick-click operation signal is received that acts on the target area corresponding to the joystick control.
[0039] The target area corresponding to joystick control refers to the area that overlaps with the joystick control. Within this target area, the mobile device can respond to user touch actions, such as clicks or presses. After the user performs a click or press action on the target area, the mobile device receives a corresponding operation signal.
[0040] In one example, the target area corresponding to the joystick control completely overlaps with the joystick control; that is, the size and shape of the target area corresponding to the joystick control are exactly the same as the size and shape of the joystick control, and the center position of the joystick control overlaps with the center position of the target area.
[0041] In another example, the target area corresponding to the joystick control includes the joystick control, and the size of the target area corresponding to the joystick control is larger than the size of the joystick control. For example, as shown in Figure 4, the target area 42 is a rectangular area whose size is larger than the size of the joystick control 41. Optionally, the center position of the joystick control coincides with the center position of the target area.
[0042] In yet another example, the size of the target area corresponding to the joystick control is smaller than the size of the joystick control. Optionally, the center position of the joystick control coincides with the center position of the target area.
[0043] Furthermore, the target area may be an area visible to the user in the user interface, or an area invisible to the user in the user interface. For example, the target area may be a completely transparent area, but this is not limited to the embodiments of this application.
[0044] In the embodiments of this application, a quick-click operation signal refers to a signal generated by triggering multiple consecutive click operations, wherein the time interval between two adjacent click operations in these multiple consecutive click operations is smaller than a preset threshold. Optionally, the quick-click operation signal may also be a double-click operation signal. A double-click operation signal refers to two consecutive clicks, wherein the time interval between these two consecutive clicks is smaller than a preset threshold operation signal. Of course, in other examples, the quick-click operation signal may be a triple-click operation signal, a quadra-click operation signal, etc., but this is not limited to the embodiments of this application.
[0045] In step 303, the virtual object is controlled to automatically run in the virtual scene displayed in the user interface in response to the quick click operation signal.
[0046] In one example, when the quick-click operation signal is received, if the virtual object is in an upright position, the virtual object is controlled to automatically run in the virtual scene while remaining in an upright position.
[0047] In another example, if the virtual object is in a non-standing state when the quick-click operation signal is received, the virtual object is controlled to automatically run in the virtual scene while in a non-standing state.
[0048] Optionally, to provide users with diverse virtual object control methods and improve the human-machine interaction experience, the process further includes receiving a posture change command corresponding to the virtual object after step 303 above. A posture change command refers to an operation command for controlling the posture change of a virtual object. Such a posture change command may be triggered by the user via methods such as control operation, voice, or gesture. If the virtual object is in a non-standing state, the virtual object is controlled to switch from a non-standing state to a standing state according to the posture change command, and then controlled to automatically run in the virtual scene in the standing state. If the virtual object is in a standing state, the virtual object is controlled to switch from a standing state to a non-standing state according to the posture change command, and then controlled to automatically run in the virtual scene in the non-standing state. Optionally, referring to Figure 4, a posture change icon 43 is displayed in the user interface above, and when the user clicks the posture change icon 43, the mobile device receives a posture change command. Optionally, the posture change icon 43 may be a crouching icon.
[0049] Optionally, to more closely resemble how objects run in a real environment, the speed at which a virtual object automatically runs when not standing is slower than the speed at which it automatically runs when standing. For example, when a virtual object automatically runs in a virtual scene while crouching, the automatic running speed is 1 m / s. When a mobile device receives a posture change command, it controls the virtual object to switch from a crouching state to a standing state, and then controls the virtual object to automatically run in the virtual scene while standing, at which point the automatic running speed is 3 m / s.
[0050] Optionally, to improve the human-machine interaction experience and allow users to conveniently know the state of a virtual object, a first prompt information may be displayed in the user interface to indicate that the virtual object is in a non-standing state when the virtual object is in a non-standing state, and a second prompt information may be displayed in the user interface to indicate that the virtual object is in an standing state when the virtual object is in an standing state. Optionally, the first and second prompt information may be displayed based on the same icon. For example, as shown in Figure 4, both the first and second prompt information may be based on a posture switching icon 43 in the user interface, which is used to indicate whether the virtual object is in an standing or crouching state. When the virtual object is in a crouching state, the first prompt information may be displayed and the posture switching icon 43 may be highlighted. When the virtual object is in an standing state, the second prompt information may be displayed and, for example, the posture switching icon 43 may not be highlighted.
[0051] Furthermore, in the embodiments of this application, the standing state is a state in which the virtual object is standing, and the non-standing state is a state in which the virtual object is not standing. In one possible embodiment, the non-standing state may be a crouching state, that is, a state in which the virtual object is crouching. In the embodiments of this application, the direction and speed in which the virtual object automatically moves may be preset. For example, the direction in which the virtual object automatically moves may be preset to the forward direction, and the speed may be preset to 3 m / s. The forward direction refers to the direction in which the virtual object is facing.
[0052] In short, according to the invention provided in the embodiment of this application, by displaying a joystick control on the user interface, when a quick-click operation signal is received acting on the target area corresponding to the joystick control, a virtual object is controlled to automatically run in the virtual environment displayed on the user interface. This enables the user to trigger the function of the virtual object running automatically with a single key, without having to repeatedly click or press an operation control, thereby improving operational efficiency. Furthermore, after the user has triggered the virtual object to start running automatically, they can release their finger and complete other operations with the released finger, such as observing the virtual environment while running, changing equipment while running, or communicating with other users while running, resulting in richer interaction capabilities.
[0053] Furthermore, if the virtual object is in a non-standing state before receiving a quick-click operation signal in the target area, the virtual object can be triggered to automatically start running in a non-standing state. After that, the virtual object can be controlled by a posture change command to switch from a non-standing state to an standing state, and then controlled to automatically run in the standing state. This provides users with a variety of ways to control the virtual object to run automatically, further improving the human-machine interaction experience.
[0054] In one possible embodiment, to improve the flexibility of the human-machine interaction experience and the automatic running control of virtual objects, step 303 above includes obtaining an attribute value corresponding to a quick-click operation signal, determining the running speed of the virtual object according to the attribute value, and controlling the virtual object to run automatically in the virtual scene according to the running speed.
[0055] In the embodiments of this application, the attribute value refers to an operating parameter corresponding to a quick-click operation signal. For example, the attribute value may be an operation time interval, a number of operations, etc., but this is not limited to the embodiments of this application.
[0056] For example, if the quick-click operation signal is a double-click operation signal, the attribute value is the click time interval of the double-click operation signal. Optionally, the click interval time of the double-click operation signal has a negative correlation with the running speed of the virtual object; that is, the smaller the click interval time, the greater the running speed, and the longer the click interval time, the smaller the running speed.
[0057] For example, the attribute value of the quick-click operation signal may also be the number of clicks. Optionally, the number of clicks in the quick-click operation signal may have a positive correlation with the virtual object's running speed; that is, a higher number of clicks results in a higher running speed, and a lower number of clicks results in a lower running speed.
[0058] In another possible embodiment, to further improve the flexibility of the human-machine interaction experience and the automatic running control of the virtual object, step 303 above includes the mobile terminal detecting the operation position of the quick-click operation signal, determining the running direction of the virtual object according to the operation position, and controlling the virtual object to automatically run in the virtual scene according to the running direction. For example, the target area is equally divided into four areas, described as area 1, area 2, area 3, and area 4, with the direction corresponding to area 1 being east, the direction corresponding to area 2 being south, the direction corresponding to area 3 being west, and the direction corresponding to area 4 being north, and if it is detected that the operation position of the quick-click operation signal is within area 2, i.e., if it is determined that the running direction of the virtual object is south, the virtual object is controlled to automatically run in the direction of south in the virtual scene. Embodiments of this application are not limited to how many specific areas the target area is divided into or the direction corresponding to each area.
[0059] In actual application, combining the two methods described above makes it possible to simultaneously control the running speed and direction of a virtual object.
[0060] In one further possible embodiment, with reference to Figure 5, the method for controlling a virtual object provided in the embodiment of this application may include the following steps:
[0061] In step 501, it is determined whether the virtual object is in an upright position. If it is, step 502 is executed; otherwise, step 501 is executed again.
[0062] In step 502, it is determined whether a quick click operation signal has been received. If it has been received, step 503 is executed; otherwise, step 502 is continued.
[0063] In step 503, it is determined whether the quick click operation signal is located in the target area. If it is located, step 504 is performed; otherwise, step 503 is continued.
[0064] In step 504, the running speed and running direction of the virtual object are determined according to the attribute values and operation position of the quick click operation signal.
[0065] In step 505, the virtual object is controlled to automatically run at the specified speed and direction.
[0066] In short, the invention provided in the embodiments of this application provides users with more ways to control virtual objects and better meets their operational needs by determining the running speed and direction of the virtual object based on the attribute values and operation position of the quick-click operation signal.
[0067] Referring to Figure 6, a flowchart of a method for controlling a virtual object provided in another embodiment of this application is shown. This method is applicable to the mobile terminal described above and, for example, to a client of an application program for the mobile terminal (e.g., a shooting game application program). This method may include the following steps:
[0068] In step 601, a user interface is displayed that includes joystick controls for controlling the movement of virtual objects.
[0069] In step 602, if the virtual object is in a non-upright state, and a slide operation signal is received that places the initial position at the joystick control, the virtual object is controlled to switch from a non-upright state to an upright state.
[0070] In an exemplary embodiment, the steps further include obtaining the touch position of the slide operation signal before controlling the virtual object to switch from a non-standing state to an standing state, and controlling the virtual object to switch from a non-standing state to an standing state if the touch position of the slide operation signal is located at the display position of the quick rise icon. Optionally, if the touch position of the slide operation signal is located at the display position of the quick rise icon, the quick rise icon is highlighted to prompt that the state switch has been successfully triggered, thereby improving human-machine interaction efficiency.
[0071] In exemplary embodiments, after obtaining the touch position of the slide operation signal, the distance between the touch position of the slide operation signal and the target position is obtained, and if it is detected that the distance is greater than a distance threshold, a quick-start icon is displayed on the user interface. In embodiments of the present application, the magnitude of the distance threshold is set according to the size of the user interface of the mobile device to which it is applied. For example, the distance threshold is set to 5 cm when the mobile device is a tablet computer, and to 3 cm when the mobile device is a mobile phone. Such setting allows for flexible modification of the distance threshold according to the different sizes of the user interface of the mobile device to which it is applied, further improving the human-machine interaction experience.
[0072] In an exemplary embodiment, in order to provide more ways in which a virtual object can be controlled and to further improve the human-machine interaction experience, the distance between the touch position of the slide operation signal and the target position is obtained, and then the movement speed of the virtual object is determined according to that distance, wherein the distance is negatively correlated with the movement speed, that is, the greater the distance, the less the movement speed, and the smaller the distance, the greater the movement speed, and the movement speed of the virtual object increases as the touch position of the slide operation signal approaches the target position.
[0073] In step 603, after the virtual object is switched to an upright position, the virtual object is controlled to automatically run in the virtual scene displayed in the user interface.
[0074] In an exemplary embodiment, as shown in Figure 7(a), the user interface 70 includes a joystick control 71 and a quick-start icon 73, the joystick control 71 being used to control the movement of a virtual object, the quick-start icon 73 being used to switch the state of the virtual object, and controlling the virtual object to automatically run in the virtual scene after the state has been switched. Optionally, the joystick control 71 includes a drag icon 72 for changing the speed and direction of movement of the virtual object. Optionally, to improve the human-machine interaction experience, the drag icon 72 can change its position in real time in response to a slide operation signal, and the position change of the drag icon 72 reflects the position change of the virtual object. Optionally, the center position of the drag icon coincides with the center position of the touch position of the slide operation signal. For example, if the slide operation signal is a quick swipe to the upper left corner of the user interface, the drag icon 72 is also quickly moved to the upper left corner of the user interface, reflecting the virtual object moving quickly northwest in the virtual scene displayed in the user interface. Furthermore, if the distance between the center position of the drag icon and the center position of the joystick control is greater than a distance threshold, the quick stand-up icon 73 is displayed on the user interface 70. As shown in Figure 7(b), when the center position of the drag icon 72 is located at the display position of the quick stand-up icon 73, the virtual object is controlled to stand up quickly and then run automatically, and the quick stand-up icon 73 is highlighted. Optionally, as shown in Figure 7(a), the user interface 70 includes a crouch icon 74, and when the virtual object is in a crouched state, the crouch icon 74 is highlighted.Optionally, as shown in Figure 7(b), if the center position of the drag icon 72 is at the display position of the quick stand-up icon 73, the virtual object is controlled to stand up quickly and then automatically run, and the crouch icon 74 is not highlighted.
[0075] In short, the invention provided in the embodiments of this application provides a method for controlling a virtual object to quickly stand up and then automatically run when the virtual object is in a non-standing state. This avoids the need for several additional operations to control the virtual object to stand up and automatically run after it has been controlled to a non-standing state for automatic running, and further improves human-machine interaction efficiency and the human-machine interaction experience.
[0076] In one possible embodiment, referring to Figure 8, the method for controlling the slide operation signal in the embodiment of this application has the following steps:
[0077] In step 801, a slide operation signal is received.
[0078] In step 802, the distance between the center position of the slide operation signal and the center position of the joystick control is calculated.
[0079] In step 803, if the distance is greater than the distance threshold, the quick run icon is displayed.
[0080] In step 804, the center position of the slide operation signal is controlled to set the display position of the quick run icon.
[0081] In one possible embodiment, referring to Figure 9, the method for controlling a virtual object provided in the embodiment of this application may include the following steps:
[0082] In step 901, the virtual object is controlled to return to a non-standing state.
[0083] In step 902, it is determined whether a slide operation signal has been received. If it has been received, step 903 is executed; otherwise, step 902 is executed again.
[0084] In step 903, the distance between the touch position of the slide operation signal and the target position is calculated.
[0085] In step 904, it is determined whether the distance is greater than the distance threshold. If the distance is greater than the distance threshold, step 905 is performed. If the distance is not greater than the distance threshold, step 903 is performed.
[0086] In step 905, the quick startup icon is displayed.
[0087] In step 906, it is determined whether the touch position of the slide operation signal is located at the display position of the quick-start icon. If it is located, step 907 is executed; otherwise, step 906 is executed again.
[0088] In step 907, the virtual object is controlled to switch from a non-standing state to an standing state.
[0089] In step 908, the virtual object is controlled to run automatically.
[0090] In one possible embodiment, the above method may further include the following steps:
[0091] The system displays a user interface that includes an auto-run icon to control whether a virtual object runs automatically, receives a trigger signal that acts on the auto-run icon, and controls the virtual object to run automatically in response to the trigger signal.
[0092] For example, as shown in Figure 10, an auto-run icon 101 is displayed on the user interface 100, and when a trigger signal corresponding to the auto-run icon 101 is received, the virtual object is controlled to run automatically. Optionally, the auto-run icon 101 is highlighted after the virtual object has run automatically to prompt that the virtual object is in a state where it can run automatically. Optionally, the trigger signal may be a click signal or a press signal, but this is not limited to the embodiments of this application.
[0093] In another possible embodiment, the above method may further include the following steps.
[0094] When a slide operation signal is received with the initial position located at the joystick control, the touch position of the slide operation signal is obtained. If the distance between the center position of the touch position of the slide operation signal and the center position of the joystick control is greater than a distance threshold, an auto-run icon is displayed. When the touch position of the slide operation signal is located at the display position of the auto-run icon, the virtual object is controlled to run automatically.
[0095] Optionally, the joystick control described above includes a drag icon for controlling the movement of a virtual object, and the center position of the drag icon coincides with the center position of the touch position of the slide operation signal.
[0096] Optionally, the auto-run icon will be highlighted after the virtual object has automatically run, prompting the user that the virtual object is in a state where it can run automatically.
[0097] For example, as shown in Figure 11(a), a joystick control 111 including a drag icon 112 is displayed in the user interface 110, and the position of the drag icon 112 can be changed by receiving a slide operation signal. As shown in Figure 11(b), when the center position of the touch position of the slide operation signal coincides with the center position of the joystick control 111, that is, when the center position of the touch position of the slide operation signal coincides with the center position of the drag icon 112, an auto-run icon 113 is displayed in the user interface. When the center position of the drag icon 112 is located at the display position of the auto-run icon 113, the virtual object is controlled to run automatically, and the auto-run icon 113 is controlled to be highlighted.
[0098] In one possible embodiment, with reference to Figure 12, the method for controlling a virtual object provided in the embodiment of this application may include the following steps:
[0099] In step 1201, the virtual object is controlled to be in an upright position.
[0100] In step 1202, it is determined whether a slide operation signal has been received. If it has been received, step 1203 is executed. If it has not been received, step 1202 is executed again.
[0101] In step 1103, the distance between the touch position of the slide operation signal and the target position is calculated.
[0102] In step 1104, it is determined whether the distance is greater than the distance threshold. If the distance is greater than the distance threshold, step 1205 is performed. If the distance is not greater than the distance threshold, step 1203 is performed.
[0103] In step 1205, the automatic driving icon is displayed.
[0104] In step 1206, it is determined whether the touch position of the slide operation signal is located at the display position of the automatic running icon. If the touch position of the slide operation signal is located at the display position of the automatic running icon, step 1207 is performed. If the touch position of the slide operation signal is not located at the display position of the automatic running icon, step 1206 is performed again.
[0105] In step 1207, the virtual object is controlled to run automatically.
[0106] The following are embodiments of the apparatus relating to the present application, which can be used to carry out embodiments of the method relating to the present application. For details not shown in the embodiments of the apparatus relating to the present application, please refer to the embodiments of the method relating to the present application.
[0107] Referring to Figure 13, a block diagram of a control device for a virtual object provided in one embodiment of this application is shown. The device has exemplary functions that implement the above-described method example, which may be implemented by hardware or by running corresponding software in hardware. The device may be a mobile terminal or installed in a mobile terminal. The device 1300 may include an interface display module 1310, a signal receiving module 1320, and a running control module 1230.
[0108] The interface display module 1310 displays a user interface that includes joystick controls for controlling the movement of virtual objects.
[0109] The signal receiving module 1320 is used to receive quick-click operation signals that act on the target area corresponding to the joystick control.
[0110] The running control module 1330 is used to control the virtual object to automatically run in the virtual scene displayed in the user interface in response to the quick-click operation signal.
[0111] In an exemplary embodiment, as shown in Figure 14, the signal receiving module 1320 is used to receive a quick-click operation signal acting on a target area corresponding to the joystick control, or to receive a press operation signal acting on a target area corresponding to the joystick control.
[0112] In an exemplary embodiment, as shown in Figure 14, the running control module 1330 includes a speed control submodule 1331 for acquiring attribute values corresponding to the quick click operation signal, determining the running speed of the virtual object according to the attribute values, and controlling the virtual object to run automatically in the virtual scene according to the running speed.
[0113] In an exemplary embodiment, as shown in Figure 14, the running control module 1330 includes a direction control submodule 1332 for detecting an operation position corresponding to the quick click operation signal, determining the running direction of the virtual object according to the operation position, and controlling the virtual object to automatically run in the virtual scene according to the running direction.
[0114] In an exemplary embodiment, the running control module 1330 further controls the virtual object to automatically run in the virtual scene in the non-standing state when it receives the quick click operation signal and the virtual object is in a non-standing state.
[0115] In an exemplary embodiment, the running control module 1330 is further used to receive a posture switching command corresponding to the virtual object, to control the virtual object to switch from a non-standing state to an standing state in accordance with the posture switching command, and to control the virtual object to automatically run in the virtual scene in the standing state.
[0116] In short, according to the invention provided in the embodiment of this application, by displaying a joystick control on the user interface, when a quick-click operation signal is received acting on the target area corresponding to the joystick control, a virtual object is controlled to automatically run in the virtual environment displayed on the user interface. This enables the user to trigger the function of the virtual object running automatically with a single key, without having to repeatedly click or press an operation control, thereby improving operational efficiency. Furthermore, after the user has triggered the virtual object to start running automatically, they can release their finger and complete other operations with the released finger, such as observing the virtual environment while running, changing equipment while running, or communicating with other users while running, resulting in richer interaction capabilities.
[0117] Furthermore, if the virtual object is in a non-standing state before receiving a quick-click operation signal in the target area, the virtual object can be triggered to automatically start running in a non-standing state. After that, the virtual object can be controlled by a posture change command to switch from a non-standing state to an standing state, and then controlled to automatically run in the standing state. This provides users with a variety of ways to control the virtual object to run automatically, further improving the human-machine interaction experience.
[0118] Referring to Figure 15, a block diagram of a control device for a virtual object provided in another embodiment of this application is shown. The device has exemplary functions that implement the above-described method example, which may be implemented by hardware or by running corresponding software in hardware. The device may be a mobile terminal or installed on a mobile terminal. The device 1500 may include an interface display module 1510, a posture switching module 1520, and a running control module 1530.
[0119] The interface display module 1510 displays a user interface that includes joystick controls for controlling the movement of virtual objects.
[0120] The posture switching module 1520 is used to control the virtual object to switch from a non-standing state to an upright state when it receives a slide operation signal that positions the initial position at the joystick control while the virtual object is in a non-standing state.
[0121] The running control module 1530 is used to control the virtual object so that it automatically runs in the virtual scene displayed in the user interface after the virtual object has been switched to the standing state.
[0122] In an exemplary embodiment, the posture switching module 1520 is further used to acquire the touch position of the slide operation signal and to control the virtual object to switch from the non-standing state to the standing state when the touch position of the slide operation signal is located at the display position of the quick rise icon.
[0123] In an exemplary embodiment, the posture switching module 1520 further acquires the distance between the touch position of the slide operation signal and the target position, and if it is detected that the distance is greater than a distance threshold, it is used to display the quick rise icon on the user interface.
[0124] In an exemplary embodiment, the attitude switching module 1520 is further used to determine the movement speed of the virtual object according to the distance, wherein the distance has a negative correlation with the movement speed.
[0125] In an exemplary embodiment, as shown in Figure 16, the device 1500 further includes an information display module 1540 for displaying a first prompt information in the user interface to indicate that the virtual object is in the non-standing state when the virtual object is in the non-standing state, and for displaying a second prompt information in the user interface to indicate that the virtual object is in the standing state when the virtual object is in the standing state.
[0126] In short, the invention provided in the embodiments of this application provides a method for controlling a virtual object to quickly stand up and then automatically run when the virtual object is in a non-standing state. This avoids the need for several additional operations to control the virtual object to stand up and automatically run after it has been controlled to a non-standing state for automatic running, and further improves human-machine interaction efficiency and the human-machine interaction experience.
[0127] In the above embodiment, the device provided was described as being divided into the above-mentioned functional modules in order to realize its functions. However, in actual applications, the above functions may be completed in different functional modules as needed. In other words, the internal configuration of the device is divided into different functional modules to complete all or part of the functions described above. Furthermore, the device provided in the above embodiment belongs to the same concept as the method embodiment, and its specific implementation process is described in detail in the method embodiment, but the details are omitted here.
[0128] Referring to Figure 17, a structural block diagram of a mobile terminal 1700 provided in one embodiment of this application is shown. The mobile terminal 1700 may be a portable electronic device such as a mobile phone, tablet PC, game console, e-book reader, multimedia playback device, or wearable device. The mobile terminal is used to implement the method for controlling virtual objects provided in the above embodiment. The mobile terminal may be mobile terminal 10 in the implementation environment shown in Figure 1. Specifically, it is as follows:
[0129] Typically, terminal 1700 includes a processor 1701 and memory 1702.
[0130] The processor 1701 may include one or more processing cores, such as a 4-core processor or an 8-core processor. The processor 1701 can be implemented in at least one hardware form from among DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1701 may also include a main processor and a coprocessor. The main processor is a processor that processes data in the wake state and is also called a CPU (Central Processing Unit). The coprocessor is a low-power processor that processes data in the standby state. In some embodiments, the processor 1701 may also integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing content to be displayed on a display screen. In some embodiments, the processor 1701 may further include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
[0131] The memory 1702 may include one or more computer-readable storage media, which may be non-temporary. The memory 1702 may further include a high-speed random-access memory and one or more non-volatile memories such as magnetic storage devices or flash storage devices. In some embodiments, the non-temporary computer-readable storage media in the memory 1702 are for storing at least one instruction, at least one program, code set, or instruction set, and are configured to be executed by one or more processors 1701 to realize the method of controlling the virtual object described above.
[0132] In some embodiments, the mobile terminal 1700 may further include a peripheral device interface 1703 and at least one peripheral device. The processor 1701, memory 1702, and peripheral device interface 1703 may be connected via a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 1703 via a bus, signal lines, or circuit board. Specifically, the peripheral device may include at least one of the following: a radio frequency circuit 1704, a touchscreen 1705, a camera 1706, an audio circuit 1707, a positioning component 1708, and a power supply 1709.
[0133] Those skilled in the art will understand that the structure shown in Figure 17 is not limited to the mobile terminal 1700, and may include more or fewer components than shown, or combinations of some components, or different arrangements of components.
[0134] In an exemplary embodiment, a storage medium is further provided for storing a computer program, the computer program for executing the above-described method for controlling the virtual object.
[0135] The computer-readable storage medium may optionally include read-only memory (ROM), random access memory (RAM), solid-state drives (SSD), or optical discs. Random access memory may also include resistive random access memory (ReRAM) and dynamic random access memory (DRAM).
[0136] In an exemplary embodiment, a computer program product is further provided, which, when executed on a terminal device, causes the terminal device to execute the above-described method for controlling virtual objects.
[0137] It should be understood that "plural" as used herein means two or more. "And / or" describes the relationship between related objects and indicates that three relationships are possible; for example, A and / or B can represent three cases: A existing alone, A and B existing simultaneously, or B existing simultaneously. The character " / " generally indicates that the related objects are in an "or" relationship. The step numbers described herein are merely illustrative examples of possible execution sequences between steps. In some other embodiments, the above steps may not be performed in numerical order; for example, two steps of different numbers may be performed simultaneously, or two steps of different numbers may be performed in the reverse order shown in the figures, but this is not limited to the embodiments of this application.
[0138] The foregoing are merely preferred embodiments of the present invention and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., within the spirit and principles of this application should be included within the scope of protection of this application. [Explanation of Symbols]
[0139] 10 Mobile devices 20 servers 30 Networks 40 User Interfaces 41 Joystick Control 42 Target Area 43 icons 70 User Interface 71 Joystick Controls 72 Drag icons 73 icons 74 icons 100 User Interfaces 101 Icons 110 User Interface 111 Joystick Control 112 Drag icon 113 Icons 120 Input Devices 130 memory 140 External Interfaces 150 Touch System 160 Power supply 1300 equipment 1310 Interface Display Module 1320 Signal Receiving Module 1330 and running control module 1331 Speed control submodule 1332 Directional control submodule 1500 equipment 1510 Interface Display Module 1520 Posture Switching Module 1530 and running control module 1540 Information Display Module 1700 terminals 1701 Processor 1702 memory 1703 Peripheral Interface 1704 Radio frequency circuit 1705 Touchscreen 1706 Camera 1707 Audio Circuit 1708 Positioning Components 1709 Power supply
Claims
1. A method for controlling virtual objects, The steps include displaying a user interface that includes joystick controls for controlling the movement of virtual objects, When the virtual object is in a non-standing state, upon receiving a slide operation signal that positions the initial position at the joystick control, the virtual object is controlled to switch from the non-standing state to the standing state. The steps include controlling the virtual object so that it automatically runs in the virtual scene displayed in the user interface after the virtual object has been switched to the standing position, and Includes, The step of controlling the virtual object is performed after obtaining the touch position of the slide operation signal, The steps include obtaining the distance between the touch position of the slide operation signal and the center position of the joystick control, When it is detected that the distance is greater than a distance threshold, the user interface is shown a quick rise icon for controlling the virtual object to switch from the non-upright state to the upright state. Methods that further include this.
2. After the step of displaying the quick startup icon, The steps include: acquiring the touch position of the slide operation signal, The step of controlling the virtual object to switch from the non-standing state to the standing state when the touch position of the slide operation signal is located at the display position of the quick rise icon, and The method according to claim 1, further comprising:
3. The process further includes obtaining the distance between the touch position of the slide operation signal and the center position of the joystick control, and then determining the movement speed of the virtual object according to the distance. The aforementioned distance has a negative correlation with the aforementioned speed of movement. The method according to claim 1.
4. The steps include: when the virtual object is in the non-standing state, displaying first prompt information in the user interface to indicate that the virtual object is in the non-standing state; When the virtual object is in the upright position, the user interface displays a second prompt information indicating that the virtual object is in the upright position. The method according to any one of claims 1 to 3, further comprising:
5. A control device for virtual objects, An interface display module for displaying a user interface that includes joystick controls for controlling the movement of virtual objects, When the virtual object is in a non-standing state, upon receiving a slide operation signal that positions the initial position at the joystick control, a posture switching module is provided for controlling the virtual object to switch from the non-standing state to the standing state. A running control module for controlling the virtual object to automatically run in the virtual scene displayed in the user interface after the virtual object has been switched to the standing state, Includes, After obtaining the touch position of the slide operation signal, The running control module acquires the distance between the touch position of the slide operation signal and the center position of the joystick control. The interface display module is a device that, when it is detected that the distance is greater than a distance threshold, displays a quick rise icon for controlling the virtual object to switch from the non-upright state to the upright state.
6. A mobile terminal comprising a processor and memory, wherein the memory stores at least one instruction, at least one program, code set, or instruction set, and the at least one program, the code set, or instruction set is loaded and executed by the processor to implement the method according to any one of claims 1 to 4.
7. A storage medium for storing a computer program for performing the method described in any one of claims 1 to 4.
8. A computer program including instructions, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Method for controlling behavior of game role
CN105446525A
Information processing method, device and storage medium
CN108635850A
Program, information storage medium, and game machine
JP2010017395A
Program for providing game, system, and method
JP2018015522A
Information processor and program
JP2019201851A