Virtual object control method, apparatus, medium, and device
By providing sliding operations for the first and second controls in the graphical user interface, one-click target action triggering of virtual characters is realized, which solves the problem of low efficiency of button operation in the prior art and improves the efficiency of action casting and user experience.
Patent Information
- Application Number
- CN202211139034.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-19
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2042-09-19
Smart Images

Figure CN115501599B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of virtual interaction technology, and more specifically, to a virtual object control method, a virtual object control device, a computer-readable storage medium, and an electronic device. Background Technology
[0002] In games, users can control virtual characters in virtual scenes to perform various actions. Different actions generally correspond to different physical / virtual buttons, and triggering the button will control the virtual character to perform the corresponding action.
[0003] In addition, to make the virtual character's actions more diverse, the developers set up some extra actions. These extra actions are not bound to individual buttons, but users can press different buttons in a predetermined sequence to make the virtual character perform additional actions.
[0004] However, the efficiency of triggering additional actions through the above methods is relatively low.
[0005] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0006] The purpose of this application is to provide a virtual object control method, a virtual object control device, a computer-readable storage medium, and an electronic device. In this application, the user can trigger a sliding operation from a first control to a second control to control the virtual object to perform a target action related to the first and second controls. Compared with related technologies, the user does not need to press the first and second controls separately to trigger the target action. The user only needs to slide from the first control to the second control to achieve "one-click" triggering of the target action (e.g., a combo action). This can improve the efficiency of the target action and reduce the cost for the user to learn how to perform the target action.
[0007] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0008] According to one aspect of this application, a virtual object control method is provided, which provides a graphical user interface through a terminal device. The graphical user interface includes a virtual object, a first control, and a second control. The method includes:
[0009] In response to a sliding operation from the first control to the second control, determine the target action associated with the first control and the second control;
[0010] Control the virtual object to perform the target action.
[0011] In one exemplary embodiment of this application, prior to a sliding operation from the first control to the second control, the method further includes:
[0012] In response to a trigger operation on the first control, control the virtual object to perform the first action corresponding to the first control.
[0013] In one exemplary embodiment of this application, determining the target action related to the first control and the second control includes:
[0014] If the sliding duration corresponding to the sliding operation is less than the preset duration, then the target action related to the first control and the second control is determined.
[0015] In one exemplary embodiment of this application, the method further includes:
[0016] If the sliding duration exceeds the preset duration, the virtual object will be controlled to perform the second action corresponding to the second control.
[0017] In one exemplary embodiment of this application, the method further includes:
[0018] Determine the sliding trajectory corresponding to the sliding operation;
[0019] Display the sliding trajectory in the graphical user interface.
[0020] In one exemplary embodiment of this application, determining the target action related to the first control and the second control includes:
[0021] Determine multiple combo actions related to the first and second controls;
[0022] Display the action icons corresponding to multiple combo moves;
[0023] In response to the identifier selection operation, the target action identifier is determined from each action identifier;
[0024] The combo action corresponding to the target action identifier is identified as the target action.
[0025] In one exemplary embodiment of this application, determining the target action related to the first control and the second control includes:
[0026] Determine multiple combo actions related to the first and second controls;
[0027] The target action is determined from multiple combo actions based on the current situation information in the virtual scene; wherein the current situation information includes at least one of the following: number of enemy units, enemy unit positions, and enemy unit weaknesses.
[0028] According to one aspect of this application, a virtual object control device is provided, the device providing a graphical user interface, the graphical user interface including a virtual object, a first control, and a second control, the device comprising:
[0029] The target action determination unit is used to determine the target action related to the first control and the second control in response to a sliding operation from the first control to the second control;
[0030] The virtual object control unit is used to control virtual objects to perform target actions.
[0031] In one exemplary embodiment of this application, the virtual object control unit is further configured to control the virtual object to perform a first action corresponding to the first control in response to a triggering operation for the first control, before the target action determination unit responds to the sliding operation from the first control to the second control.
[0032] In one exemplary embodiment of this application, the target action determination unit determines a target action related to the first control and the second control, including:
[0033] If the sliding duration corresponding to the sliding operation is less than the preset duration, then the target action related to the first control and the second control is determined.
[0034] In one exemplary embodiment of this application, the virtual object control unit is further configured to control the virtual object to perform a second action corresponding to the second control if the sliding duration is longer than a preset duration.
[0035] In one exemplary embodiment of this application, the device further includes:
[0036] The sliding trajectory determination unit is used to determine the sliding trajectory corresponding to the sliding operation;
[0037] A visualization unit is used to display the sliding trajectory in a graphical user interface.
[0038] In one exemplary embodiment of this application, the target action determination unit determines a target action related to the first control and the second control, including:
[0039] Determine multiple combo actions related to the first and second controls;
[0040] Display the action icons corresponding to multiple combo moves;
[0041] In response to the identifier selection operation, the target action identifier is determined from each action identifier;
[0042] The combo action corresponding to the target action identifier is identified as the target action.
[0043] In one exemplary embodiment of this application, the target action determination unit determines a target action related to the first control and the second control, including:
[0044] Determine multiple combo actions related to the first and second controls;
[0045] The target action is determined from multiple combo actions based on the current situation information in the virtual scene; wherein the current situation information includes at least one of the following: number of enemy units, enemy unit positions, and enemy unit weaknesses.
[0046] According to one aspect of this application, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the method of any one of the above.
[0047] According to one aspect of this application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the method of any of the above by executing the executable instructions.
[0048] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various alternative implementations described above.
[0049] The exemplary embodiments of this application may have some or all of the following beneficial effects:
[0050] In a virtual object control method provided in an example embodiment of this application, the user can trigger a sliding operation from the first control to the second control to control the virtual object to perform a target action related to the first control and the second control. Compared with related technologies, the user does not need to press the first control and the second control separately to trigger the target action. The user only needs to slide from the first control to the second control to achieve "one-click" triggering of the target action (e.g., a combo action). This can improve the efficiency of the target action and reduce the cost for the user to learn how to perform the target action.
[0051] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0052] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0053] Figure 1 This schematic diagram illustrates an exemplary terminal device to which embodiments of the present disclosure can be applied, including a virtual object control method and a virtual object control apparatus.
[0054] Figure 2 A flowchart illustrating a virtual object control method according to an embodiment of this application is shown schematically;
[0055] Figure 3 A schematic diagram of a graphical user interface according to an embodiment of this application is shown.
[0056] Figure 4 A flowchart illustrating a virtual object control method according to another embodiment of this application is shown schematically;
[0057] Figure 5 This schematically illustrates a structural block diagram of a virtual object control device according to one embodiment of the present application;
[0058] Figure 6 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation
[0059] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a full understanding of the embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced with one or more of the specific details omitted, or other methods, components, apparatus, steps, etc., can be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of this application.
[0060] Furthermore, the accompanying drawings are merely illustrative of this application and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0061] Please see Figure 1 , Figure 1 The illustration schematically shows an exemplary terminal device to which embodiments of the present disclosure can be applied, including a virtual object control method and a virtual object control apparatus. The terminal device is used to execute... Figure 2 The steps shown.
[0062] like Figure 1 As shown, the terminal device may include one or more of terminal devices 101, 102, and 103. Terminal devices 101, 102, and 103 may be various electronic devices with displays, including but not limited to desktop computers, portable computers, smartphones, and tablet computers, etc.
[0063] In one embodiment of this disclosure, the virtual object control method can run on a local terminal device or a server. When the virtual object control method runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0064] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program's execution and the game screen presentation are separated. The storage and execution of virtual object control methods are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses game screen data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0065] In an alternative implementation, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally downloading, installing, and running the game program via the terminal device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device may include a display screen for displaying the GUI, which includes the game screen, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0066] The virtual scene described in the exemplary embodiments of this disclosure can be a digital scene outlined by smart terminal devices such as computers, mobile phones, and tablets through digital communication technology. The digital scene can be on the display screen of the smart terminal device or projected onto other display devices. The virtual scene can include buildings or structures such as houses, buildings, gardens, bridges, and pools, and can also include natural landscapes such as mountains, rivers, and lakes, as well as any virtual items such as weapons, tools, and creatures. This exemplary embodiment does not impose any special limitations on this. The virtual character is a three-dimensional model created based on animation skeletal technology. Each virtual character has its own shape and volume in the three-dimensional virtual environment and occupies a portion of the control area in the three-dimensional virtual environment.
[0067] The virtual scene presented by the graphical user interface, such as game footage, is captured by a virtual camera positioned within the virtual scene. The virtual camera can capture images of the virtual scene from a first-person, second-person, or other perspective, such as a top-down view, which observes the virtual environment from an aerial perspective. When using a top-down view, the virtual camera can be located above the virtual scene. Depending on the height of the virtual camera, when it is low, the captured image may only show a portion of the virtual scene, such as in a multiplayer online battle arena (MOBA) game; when it is high, the captured image may show the entire virtual scene.
[0068] Please see Figure 2 , Figure 2 A flowchart illustrating a virtual object control method according to an embodiment of this application is shown schematically. This virtual object control method provides a graphical user interface (GUI) through a terminal device, the GUI including a virtual object, a first control, and a second control. Figure 2 As shown, the virtual object control method may include steps S210 to S220.
[0069] Step S210: In response to a sliding operation from the first control to the second control, determine the target action associated with the first control and the second control.
[0070] Step S220: Control the virtual object to perform the target action.
[0071] Implementation Figure 2 The method shown allows users to trigger a sliding operation from the first control to the second control to control the virtual object to perform a target action related to the first and second controls. Compared to related technologies, users do not need to press the first and second controls separately to trigger the target action. Users only need to slide from the first control to the second control to achieve "one-click" triggering of the target action (such as a combo action). This can improve the efficiency of the target action and reduce the cost for users to learn how to perform the target action.
[0072] The steps described above in this example implementation will now be explained in more detail.
[0073] In step S210, in response to a sliding operation from the first control to the second control, a target action related to the first control and the second control is determined.
[0074] Specifically, the graphical user interface (GUI) is used to display the first control and the second control. The GUI may also include one or more other functional controls, which are not limited in this embodiment. Furthermore, the GUI may display a game screen, which may include a virtual scene, functional controls, and other functional areas such as personal information. Optionally, the positions of the first control and the second control in the GUI are not limited in this embodiment. The positions of the first control and the second control can be preset or user-defined.
[0075] Furthermore, the target action associated with the first and second controls can be understood as a combo action, which is an action that can only be executed after the user swipes to trigger the first and second controls. In this application, the combo effects corresponding to different controls are different.
[0076] For example, if the graphical user interface includes a third control and a fourth control, in response to a sliding operation from the first control to the third control, a target action a related to the first control and the third control can be determined, and in response to a sliding operation from the first control to the fourth control, a target action b related to the first control and the fourth control can be determined, wherein target action a and target action b are different actions.
[0077] Furthermore, by sliding over multiple controls, the target action of each control can be determined, and this application does not limit the number of controls.
[0078] Based on this, optionally, the above method may further include: in response to a sliding operation from the first control to the second control and then to the third control, determining a target action related to the first control, the second control and the third control.
[0079] Alternatively, in response to a sliding operation from the first control to the second control, a target action related to the first control and the second control is determined, including: in response to a sliding operation from the first control to the second control, determining an intermediate control covered by the trajectory corresponding to the sliding operation, and determining a target action related to the first control, the second control, and the intermediate control. This can be understood as the first control being the starting point of the sliding operation and the second control being the ending point of the sliding operation; wherein, the number of intermediate controls can be one or more, and this application embodiment does not limit the number.
[0080] In step S220, the virtual object is controlled to perform the target action.
[0081] Specifically, virtual objects can be understood as virtual characters in a game. Users can control virtual objects to walk, run, attack, jump, fly, etc. by triggering controls in the graphical user interface. This application embodiment does not limit this.
[0082] As an optional embodiment, prior to a sliding operation from the first control to the second control, the method further includes: in response to a triggering operation on the first control, controlling the virtual object to perform a first action corresponding to the first control. This allows the virtual object to perform the first action before executing the target action, achieving continuous execution of the first action and the target action, thus improving the coherence of the actions.
[0083] Specifically, the first action corresponding to the first control can be the basic action corresponding to the first control, such as the squatting action.
[0084] Furthermore, it should be noted that users can also apply individual trigger operations to the first control, such as single-click, double-click, and long-press operations. Different trigger operations applied individually to the first control correspond to different actions. Similarly, users can apply individual trigger operations to the second control, such as single-click, double-click, and long-press operations. Again, different trigger operations applied individually to the second control correspond to different actions.
[0085] As an optional embodiment, determining the target action related to the first control and the second control includes: if the sliding duration corresponding to the sliding operation is less than a preset duration, then determining the target action related to the first control and the second control. This ensures that the target action related to the first control and the second control is determined only when the sliding duration is less than the preset duration, avoiding the execution of the target action when the user does not want it to be triggered.
[0086] Specifically, the preset duration can be a pre-set duration, which can be set to any duration, such as 1 second.
[0087] As an optional embodiment, the method further includes: if the sliding duration is longer than a preset duration, controlling the virtual object to execute a second action corresponding to the second control. This allows for the separate execution of the first and second actions when the sliding duration exceeds the preset duration, providing richer control triggering methods. Specifically, users can not only execute the first and second actions individually by clicking the first and second controls, but also execute them independently without leaving the screen through a sliding operation with a duration exceeding the preset duration.
[0088] Specifically, the second action corresponding to the second control can be the basic action corresponding to the second control, such as the jump action.
[0089] As an optional embodiment, the method further includes: determining the sliding trajectory corresponding to the sliding operation; and displaying the sliding trajectory in a graphical user interface. This can enhance the user's perception of the sliding trajectory, achieve richer visualization effects, and improve the gaming experience.
[0090] Specifically, displaying a sliding trajectory in a graphical user interface includes: displaying the sliding trajectory in the graphical user interface with preset display effects (such as gradient, pop-up, etc.). The parameters such as the color and texture of the sliding trajectory can be set by the developer or customized by the user. This application embodiment does not limit this.
[0091] As an optional embodiment, determining the target action related to the first control and the second control includes: determining multiple combo actions related to the first control and the second control; displaying action identifiers corresponding to the multiple combo actions respectively; in response to an identifier selection operation, determining a target action identifier from the action identifiers; and determining the combo action corresponding to the target action identifier as the target action. This enables the triggering and selection of target actions, enriching the user's gaming experience, providing users with more target actions at a higher casting efficiency, and enhancing interactivity with the user through the user's selection of target actions.
[0092] Specifically, the multiple combo actions related to the first and second controls can be understood as various powerful moves that can be achieved by combining the first and second controls. The action icons corresponding to the multiple combo actions can be displayed in a graphical user interface for users to select.
[0093] When a flag selection operation is detected, the action flag corresponding to the flag selection operation can be identified as the flag of the ultimate move that the user wants to use at the moment. The flag selection operation and the aforementioned swipe operation can be continuous operations; that is, the flag selection operation can be understood as a two-stage swipe operation. Alternatively, the flag selection operation can also be a click operation that is not continuous with the swipe operation; this embodiment of the application does not limit this.
[0094] As an optional embodiment, determining the target action related to the first control and the second control includes: determining multiple combo actions related to the first control and the second control; determining the target action from the multiple combo actions based on current situation information in the virtual scene; wherein, the current situation information includes at least one of the following: number of enemy units, enemy unit positions, and enemy unit weaknesses. This allows for the selection of the most suitable target action for the user based on different current situation information in the virtual scene, thereby assisting the user in attacking enemy units and improving game interactivity.
[0095] Specifically, the target action is determined from multiple combo actions based on the current situation information in the virtual scene, including: determining the combo action that can cause area damage from multiple combo actions based on the number of enemy units in the virtual scene, and using it as the target action; or determining the distance to be hit based on the positioning of enemy units in the virtual scene, and determining the combo action that can meet that distance from multiple combo actions, and using it as the target action; or determining the combo action that can cause the maximum damage to enemy units from multiple combo actions based on the weaknesses of enemy units in the virtual scene, and using it as the target action.
[0096] In addition, the current situation information may also include: weather conditions in the virtual scene, weapon attributes, etc., which are not limited in this application embodiment.
[0097] For example, if the weather is snowy and the weapon is fire-attribute, using the "Ground Slam" combo to set the grass on fire and burn enemy units would be ineffective because the grass is covered in snow and the combo's effect is lost. Therefore, based on the current situation in the virtual environment, the target combo "Large Fireball" can be selected from multiple combos, allowing the fire-attribute weapon to throw a large fireball at the enemy unit to burn them.
[0098] Further, please refer to Figure 3 , Figure 3 A schematic diagram of a graphical user interface according to an embodiment of this application is shown. Figure 3 As shown, the graphical user interface may include: a "crouch" control 310, a "skill one" control 320, a "skill two" control 330, and a "lie down" control 340.
[0099] Specifically, during game combat, the user can trigger the "crouch" control 310. At this time, the terminal device can control the virtual object to perform the first action corresponding to the first control. Then, the user can slide from the "crouch" control 310 to the "skill one" control 320 / "skill two" control 330 / "lie down" control 340. The terminal device can determine the target action related to the "crouch" control 310 and ["skill one" control 320 / "skill two" control 330 / "lie down" control 340], and control the virtual object to perform the target action.
[0100] Further, please refer to Figure 4 , Figure 4 A flowchart illustrating a virtual object control method according to another embodiment of this application is shown schematically. Figure 4 As shown, the virtual object control method may include steps S410 to S450.
[0101] Step S410: In response to the trigger operation on the first control, control the virtual object to perform the first action corresponding to the first control.
[0102] Step S420: In response to a sliding operation from the first control to the second control, determine the sliding duration. If the sliding duration corresponding to the sliding operation is less than a preset duration, proceed to step S430. If the sliding duration is greater than the preset duration, proceed to step S440.
[0103] Step S430: Determine the target action related to the first control and the second control, and control the virtual object to execute the target action. Then, proceed to step S450.
[0104] Step S440: Control the virtual object to perform the second action corresponding to the second control. Then, proceed to step S450.
[0105] Step S450: Determine the sliding trajectory corresponding to the sliding operation and display the sliding trajectory in the graphical user interface.
[0106] It should be noted that steps S410 to S450 are the same as... Figure 2 For the specific implementation details of steps S410 to S450, please refer to the examples shown. Figure 2 The steps and their embodiments shown are not repeated here.
[0107] It is evident that implementation Figure 4 The method shown allows users to trigger a sliding operation from the first control to the second control to control the virtual object to perform a target action related to the first and second controls. Compared to related technologies, users do not need to press the first and second controls separately to trigger the target action. Users only need to slide from the first control to the second control to achieve "one-click" triggering of the target action (such as a combo action). This can improve the efficiency of the target action and reduce the cost for users to learn how to perform the target action.
[0108] Further, please refer to Figure 5 , Figure 5 A schematic block diagram of a virtual object control device according to one embodiment of this application is shown. The device provides a graphical user interface (GUI), which includes a virtual object, a first control, and a second control. Figure 5 As shown, the virtual object control device 500 may include:
[0109] The target action determination unit 501 is used to determine the target action related to the first control and the second control in response to a sliding operation from the first control to the second control;
[0110] The virtual object control unit 502 is used to control the virtual object to perform the target action.
[0111] It is evident that implementation Figure 5 The device shown allows users to trigger a sliding operation from the first control to the second control to control a virtual object to perform a target action related to the first and second controls. Compared to related technologies, users do not need to press the first and second controls separately to trigger the target action. Users only need to slide from the first control to the second control to achieve "one-click" triggering of the target action (such as a combo action). This can improve the efficiency of the target action and reduce the cost for users to learn how to perform the target action.
[0112] In one exemplary embodiment of this application, the virtual object control unit 502 is further configured to control the virtual object to perform a first action corresponding to the first control in response to a triggering operation for the first control before the target action determination unit 501 responds to the sliding operation from the first control to the second control.
[0113] As can be seen, by implementing this optional embodiment, it is possible to control the virtual object to perform a first action before controlling the virtual object to perform the target action, thereby achieving continuous execution of the first action and the target action and improving the continuity of the actions.
[0114] In one exemplary embodiment of this application, the target action determination unit 501 determines a target action related to the first control and the second control, including:
[0115] If the sliding duration corresponding to the sliding operation is less than the preset duration, then the target action related to the first control and the second control is determined.
[0116] As can be seen, by implementing this optional embodiment, the target action related to the first and second controls can be determined only when the sliding duration is less than the preset duration, thus avoiding the execution of the target action when the user does not want to trigger it.
[0117] In one exemplary embodiment of this application, the virtual object control unit 502 is further configured to control the virtual object to perform a second action corresponding to the second control if the sliding duration is longer than a preset duration.
[0118] As can be seen, implementing this optional embodiment allows for the separate execution of the first and second actions when the swiping duration exceeds the preset duration, providing richer control triggering methods. That is, users can not only execute the first and second actions separately by clicking the first and second controls individually, but also execute the first and second actions separately without leaving the screen by swiping for a duration exceeding the preset duration.
[0119] In one exemplary embodiment of this application, the device further includes:
[0120] The sliding trajectory determination unit is used to determine the sliding trajectory corresponding to the sliding operation;
[0121] A visualization unit is used to display the sliding trajectory in a graphical user interface.
[0122] As can be seen, implementing this optional embodiment can enhance the user's perception of the sliding trajectory, achieve richer visualization effects, and improve the gaming experience.
[0123] In one exemplary embodiment of this application, the target action determination unit 501 determines a target action related to the first control and the second control, including:
[0124] Determine multiple combo actions related to the first and second controls;
[0125] Display the action icons corresponding to multiple combo moves;
[0126] In response to the identifier selection operation, the target action identifier is determined from each action identifier;
[0127] The combo action corresponding to the target action identifier is identified as the target action.
[0128] As can be seen, implementing this optional embodiment can enable the triggering and selection of target actions, enrich the user's gaming experience, provide users with a wider range of target actions with higher casting efficiency, and enhance interactivity with users through the user's selection of target actions.
[0129] In one exemplary embodiment of this application, the target action determination unit 501 determines a target action related to the first control and the second control, including:
[0130] Determine multiple combo actions related to the first and second controls;
[0131] The target action is determined from multiple combo actions based on the current situation information in the virtual scene; wherein the current situation information includes at least one of the following: number of enemy units, enemy unit positions, and enemy unit weaknesses.
[0132] As can be seen, implementing this optional embodiment can select the most suitable target action for the user based on the different current situation information in the virtual scene, so as to assist the user in attacking enemy units and improve the game interactivity.
[0133] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0134] Since the functional modules of the virtual object control device in the example embodiments of this application correspond to the steps of the example embodiments of the virtual object control method described above, for details not disclosed in the device embodiments of this application, please refer to the embodiments of the virtual object control method described above in this application.
[0135] Please see Figure 6 , Figure 6 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown.
[0136] It should be noted that, Figure 6 The computer system 600 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0137] like Figure 6As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 602 or programs loaded from storage section 608 into random access memory (RAM) 603. The RAM 603 also stores various programs and data required for system operation. The CPU 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0138] The following components are connected to I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to I / O interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 610 as needed so that computer programs read from it can be installed into storage section 608 as needed.
[0139] Specifically, according to embodiments of this application, the processes described below with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by central processing unit (CPU) 601, it performs the various functions defined in the methods and apparatus of this application.
[0140] In another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to implement the methods described in the above embodiments.
[0141] It should be noted that the computer-readable medium shown in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0142] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0143] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0144] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the claims.
Claims
1. A method for controlling virtual objects, characterized in that, The method of providing a graphical user interface via a terminal device, the graphical user interface including virtual objects, a first control, and a second control, includes: In response to a sliding operation from the first control to the second control, a target action related to the first control and the second control is determined; Control the virtual object to perform the target action; The first control is configured to control the virtual object to perform a corresponding action in response to a separately applied trigger operation; the second control is configured to control the virtual object to perform a corresponding action in response to a separately applied trigger operation. Determining the target action related to the first control and the second control includes: Determine multiple combo actions related to the first control and the second control; The target action is determined from the multiple combo actions based on the current situation information in the virtual scene; the current situation information includes at least one of the following: number of enemy units, enemy unit positions, and enemy unit weaknesses.
2. The method according to claim 1, characterized in that, In response to a sliding operation from the first control to the second control, the method further includes: In response to a trigger operation on the first control, the virtual object is controlled to perform a first action corresponding to the first control.
3. The method according to claim 1, characterized in that, Determine the target action associated with the first control and the second control, including: If the sliding duration corresponding to the sliding operation is less than the preset duration, then the target action related to the first control and the second control is determined.
4. The method according to claim 3, characterized in that, The method further includes: If the sliding duration is greater than the preset duration, then the virtual object is controlled to perform the second action corresponding to the second control.
5. The method according to claim 1, characterized in that, The method further includes: Determine the sliding trajectory corresponding to the sliding operation; The sliding trajectory is displayed in the graphical user interface.
6. The method according to claim 1, characterized in that, Determining the target action associated with the first control and the second control further includes: Display the action icons corresponding to the various combo moves; In response to the identifier selection operation, the target action identifier is determined from each action identifier; The combo action corresponding to the target action identifier is identified as the target action.
7. The method according to claim 1, characterized in that, The step of determining the target action from the multiple combo actions based on the current situation information in the virtual scene includes: Based on the number of enemy units in the virtual scene, determine the combo action that can cause area damage from multiple combo actions, and use it as the target action; Alternatively, determine the distance to be attacked based on the enemy unit's position in the virtual scene, and select the combo action that can meet the distance from multiple combo actions as the target action; Alternatively, based on the weaknesses of enemy units in the virtual scene, determine the combo that can deal the most damage to the enemy unit from multiple combo moves, and use it as the target move.
8. A virtual object control device, characterized in that, The device provides a graphical user interface, the graphical user interface including virtual objects, a first control, and a second control, the device comprising: A target action determination unit is configured to determine a target action related to the first control and the second control in response to a sliding operation from the first control to the second control; A virtual object control unit is used to control the virtual object to perform the target action; The first control is configured to control the virtual object to perform a corresponding action in response to a separately applied trigger operation; the second control is configured to control the virtual object to perform a corresponding action in response to a separately applied trigger operation. Determining the target action related to the first control and the second control includes: Determine multiple combo actions related to the first control and the second control; The target action is determined from the multiple combo actions based on the current situation information in the virtual scene; the current situation information includes at least one of the following: number of enemy units, enemy unit positions, and enemy unit weaknesses.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1-7.
10. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the method of any one of claims 1-7 by executing the executable instructions.