Operation switching method and apparatus, storage medium, and electronic device

By using a virtual joystick to trigger operation options and switch virtual character attack operations within the virtual game screen, the problem of slow operation switching during virtual character movement is solved, achieving convenient operation switching.

CN114504822BActive Publication Date: 2025-11-21TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210068427.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-20
Publication Date
2025-11-21
Estimated Expiration
2042-01-20

AI Technical Summary

Technical Problem

In existing technologies, the switching methods for virtual character movement are cumbersome, resulting in slow switching speeds and impacting the gaming experience.

Method used

By using a virtual joystick to move to the target area in the virtual game screen to display operation options, and by selecting an operation to switch the attack operation of the virtual operation button, the user can avoid directly switching operations by entering the settings interface.

Benefits of technology

It simplifies the attack operation switching process, improves the operation switching speed, and enhances the user interaction experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114504822B_ABST
    Figure CN114504822B_ABST
Patent Text Reader

Abstract

The application discloses an operation switching method and device, a storage medium and an electronic device. The method comprises the following steps: displaying a virtual game picture, a virtual joystick and a virtual operation button, wherein the virtual operation button is used for controlling a target virtual character to perform a first attack operation, and the virtual joystick is used for controlling the target virtual character to move; in response to the virtual joystick moving to a target area, displaying at least one operation option, wherein each operation option in the at least one operation option represents an attack operation allowed to be performed by the target virtual character through the virtual operation button; and in response to a selection operation performed on an operation option corresponding to a second attack operation in the at least one operation option, switching the virtual operation button to be used for controlling the target virtual character to perform the second attack operation. By using the technical scheme, the problem that the operation switching speed is slow due to a complicated switching process in the related art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the computer field, in particular to an operation switching method and device, a storage medium and an electronic device. BACKGROUND

[0002] A game interface of a game application running on a mobile terminal can provide a human-computer interaction function, and a user can control a virtual character in a game scene to perform an attack operation by operating a virtual operation button on the game interface. Since the number of operation buttons that can be provided in the game interface is limited, in order to improve the richness of the character attack operation, an attack operation corresponding to the virtual operation button can be configured on a setting interface of the game application, so as to switch the attack operation performed by the virtual character when the virtual operation button is operated.

[0003] In the process of controlling the movement of the virtual character, if it is desired to switch the attack operation corresponding to the virtual operation button, the user needs to click a setting button corresponding to the setting interface on the game interface to call up the setting interface, select the attack operation associated with the virtual operation button on the setting interface, and close the setting interface. However, the above-mentioned operation switching method has a complicated setting process and slow operation switching speed.

[0004] It can be seen that the operation switching method in the related art has the problem of slow operation switching speed due to a complicated switching process. SUMMARY

[0005] Embodiments of the present application provide an operation switching method and device, a storage medium and an electronic device to at least solve the problem of slow operation switching speed due to a complicated switching process in the related art operation switching method in the process of controlling the movement of a virtual character.

[0006] According to an aspect of an embodiment of the present application, an operation switching method is provided, including: displaying a virtual game picture, a virtual joystick and a virtual operation button, wherein the virtual operation button is used to control a target virtual character to perform a first attack operation, and the virtual joystick is used to control the target virtual character to move; in response to the virtual joystick moving to a target region, displaying at least one operation option, wherein each operation option in the at least one operation option represents an attack operation allowed to be performed by the target virtual character through the virtual operation button; and in response to a selection operation performed on an operation option corresponding to a second attack operation in the at least one operation option, switching the virtual operation button to be used to control the target virtual character to perform the second attack operation.

[0007] According to another aspect of the embodiments of the present application, there is also provided a switching device, comprising: a first display unit configured to display a virtual game screen, a virtual joystick and a virtual operation button, wherein the virtual operation button is configured to control a target virtual character to perform a first attack operation, and the virtual joystick is configured to control the target virtual character to move; a second display unit configured to display at least one operation option in response to the virtual joystick moving to a target area, wherein each operation option of the at least one operation option represents an attack operation allowed to be performed by the target virtual character through the virtual operation button; and a first switching unit configured to switch the virtual operation button to control the target virtual character to perform a second attack operation in response to a selection operation performed on an operation option corresponding to the second attack operation among the at least one operation option.

[0008] As an optional solution, the second display unit comprises a display module configured to display the at least one operation option when the virtual joystick is located on the target area in response to the first touch operation performed on the virtual joystick and moving the virtual joystick to the target area outside a preset direction control area, wherein the direction control area is a circular area with the preset radius and the center of the virtual joystick.

[0009] As an optional solution, the display module comprises a first display sub-module configured to display the at least one operation option when the virtual joystick is located on the target area and the drag operation is not ended in response to the drag operation performed on the virtual joystick and moving the virtual joystick to the target area outside a preset direction control area, or a second display sub-module configured to display the at least one operation option when the virtual joystick is located on the target area in response to the drag operation performed on the virtual joystick and moving the virtual joystick to the target area outside a preset direction control area, wherein the virtual joystick stays on the target area when the drag operation is ended while the virtual joystick is located on the target area.

[0010] As an optional solution, the device further comprises a first control unit configured to control the target virtual character to move according to a moving direction indicated by the virtual joystick during the process of displaying the at least one operation option in response to the virtual joystick moving to the target area.

[0011] As an optional solution, the device further comprises a third display unit configured to display a switching prompt information when the virtual joystick is located on the target area, wherein the switching prompt information is configured to prompt to switch an attack operation performed by the target virtual character through the virtual operation button.

[0012] As an optional solution, the apparatus further comprises a second switching unit, configured to switch the attack operation identifier displayed on the virtual operation button from a first attack identifier to a second attack identifier in a case that the virtual operation button is switched to be used for controlling the target virtual character to perform the second attack operation, wherein the first attack identifier is used to represent the first attack operation, and the second attack identifier is used to represent the second attack operation.

[0013] As an optional solution, the second display unit comprises a third display module, configured to highlight the operation option corresponding to the first attack operation in a case that the at least one operation option comprises the operation option corresponding to the first attack operation, wherein the highlighted operation option cannot be selected; or a fourth display module, configured to perform gray display on the operation option corresponding to the first attack operation in a case that the at least one operation option comprises the operation option corresponding to the first attack operation, wherein the gray displayed operation option cannot be selected.

[0014] As an optional solution, the apparatus further comprises a fourth display unit, configured to highlight the operation option corresponding to the second attack operation after the display of the at least one operation option in a case that the button identifier of the virtual operation button is detected to be dragged to a region range where the operation option corresponding to the second attack operation is located.

[0015] As an optional solution, the apparatus further comprises a fifth display unit, configured to display the updated at least one operation option in a case that a second touch operation is detected after the virtual operation button is switched to be used for controlling the target virtual character to perform the second attack operation, wherein the updated at least one operation option comprises the operation option corresponding to the first attack operation and does not comprise the operation option corresponding to the second attack operation; and a third switching unit, configured to switch the virtual operation button to be used for controlling the target virtual character to perform a third attack operation in response to a selection operation performed on the operation option corresponding to the third attack operation in the updated at least one operation option.

[0016] As an optional solution, the apparatus further comprises a second control unit, configured to control the target virtual character to perform the first attack operation in response to a target operation performed on the virtual operation button when the at least one operation option is displayed.

[0017] As an optional solution, the device further comprises a sixth display unit configured to continue to display the at least one operation option after the virtual operation button is switched to be used for controlling the target virtual character to perform the second attack operation; and a fourth switching unit configured to switch the virtual operation button to be used for controlling the target virtual character to perform a fourth attack operation in response to a selection operation performed on an operation option corresponding to the fourth attack operation in the at least one operation option.

[0018] According to still another aspect of the embodiments of the present application, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program. The computer program is configured to perform the above operation switching method when executed.

[0019] According to still another aspect of the embodiments of the present application, a computer program product or a computer program is provided, and the computer program product or the computer program comprises 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 the processor executes the computer instructions to enable the computer device to perform the above operation switching method.

[0020] According to still another aspect of the embodiments of the present application, an electronic device is provided, and the electronic device comprises a memory and a processor. The memory stores a computer program, and the processor is configured to perform the above operation switching method through the computer program.

[0021] In the embodiment of the present application, the operation option of the switchable attack operation is displayed by moving the virtual joystick to the target area in the virtual game picture, and the attack operation is switched based on the detected selection operation. The virtual game picture, the virtual joystick and the virtual operation button can be displayed on the terminal device, the virtual joystick can be used to control the target virtual character to move, at this time, the game interface is displayed on the terminal device instead of the setting interface, the attack operation associated with the virtual operation button is the first attack operation, that is, the target virtual character can perform the first attack operation by the virtual operation button, and the target virtual character can move by the virtual joystick. When the attack operation needs to be switched, the user can control the virtual joystick to move to the target area (a specific area on the game interface) to trigger the display of at least one operation option, each operation option can correspond to an attack operation allowed to be performed by the target virtual character through the virtual operation button. If the selection operation performed on the operation option corresponding to the second attack operation is detected, the attack operation associated with the virtual operation button can be switched to the second attack operation, at this time, the switching of the attack operation is completed. By the above method, the switchable attack operation can be displayed on the game interface, without entering the setting interface and finding the corresponding setting option to switch the attack operation, so that the purpose of simplifying the attack operation switching process is achieved, the technical effect of improving the attack operation switching speed is achieved, and the problem of slow operation switching speed caused by complicated switching process in the related art is solved. BRIEF DESCRIPTION OF DRAWINGS

[0022] The accompanying drawings, which are included to provide a further understanding of the present application and constitute a part of this application, illustrate certain illustrative embodiments of the present application and together with the description serve to explain the present application. In the drawings:

[0023] Figure 1 is a schematic diagram of an application environment of an optional operation switching method according to an embodiment of the present application;

[0024] Figure 2 is a flowchart of an optional operation switching method according to an embodiment of the present application;

[0025] Figure 3 is a schematic diagram of an optional game interface according to an embodiment of the present application;

[0026] Figure 4 is a schematic diagram of an optional move selection mode according to an embodiment of the present application;

[0027] Figure 5 is a schematic diagram of an optional attack operation performed by a virtual character according to an embodiment of the present application;

[0028] Figure 6 is a schematic diagram of another optional game interface according to an embodiment of the present application;

[0029] Figure 7 is a schematic diagram of yet another optional game interface according to an embodiment of the present application;

[0030] Figure 8 is a schematic diagram of yet another optional game interface according to an embodiment of the present application;

[0031] Figure 9 is a schematic diagram of an optional prompt move selection mode according to an embodiment of the present application;

[0032] Figure 10 is a schematic diagram of an optional selected switch move according to an embodiment of the present application;

[0033] Figure 11 is a schematic diagram of an optional game interface after operation switching according to an embodiment of the present application;

[0034] Figure 12 is a flowchart of another optional operation switching method according to an embodiment of the present application;

[0035] Figure 13 is a structural block diagram of an optional operation switching device according to an embodiment of the present application;

[0036] Figure 14 is a structural diagram of an optional electronic device according to an embodiment of the present application;

[0037] Figure 15 is a structural block diagram of a computer system of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to enable persons skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by persons skilled in the art without creative labor should fall within the protection scope of the present application.

[0039] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0040] According to an aspect of an embodiment of the present application, an operation switching method is provided. Optionally, as an optional implementation, the above-mentioned operation switching method can be applied to, but is not limited to, the environment as shown in Figure 1 , which can include, but is not limited to: a terminal device 102, which can include, but is not limited to, a memory 104, a processor 106, and a display 108, a network 110, and a server 112.

[0041] A target client of a target game application can be running on the terminal device 102, and a virtual game screen, a virtual joystick, and a "normal attack" button (an example of a virtual operation button) can be displayed on a current game interface of the target client. The virtual joystick is used to control the movement of the current virtual character, for example, to control the moving direction of the current virtual character, and can also be used to control the orientation and attack direction of the current virtual character. The "normal attack" button can control the current virtual character to perform a normal attack operation.

[0042] Exemplarily, the process of the above-mentioned operation switching method can include the following steps:

[0043] In step S102, the terminal device 102 displays at least one operation option in response to the virtual joystick moving to a target area, each operation option representing an attack operation allowed to be performed by the current virtual character through the "normal attack" button, determines a selected operation option in the at least one operation option, and replaces the attack operation associated with the "normal attack" button with the attack operation corresponding to the selected operation option, i.e., switches from a first attack operation to a second attack operation.

[0044] When the user controls the virtual joystick to move to the target area, at least one operation option can be displayed around the "normal attack" button or other positions, and each operation option can be an attack operation allowed to be performed by the current virtual character (i.e., a virtual character controlled through the target client) through the "normal attack" button.

[0045] In step S104, the terminal device 102 obtains the click operation of the "normal attack" button. In addition to the click operation, the "normal attack" button can also be triggered by other types of operations.

[0046] In steps S106-S108, terminal device 102 can send the click operation of the "normal attack" button to server 112 via network 110.

[0047] In step S110, server 112 determines the attack effects and game screen during the execution of the second attack operation by the current virtual character through database 114 and processing engine 116, and obtains the target game data to be synchronized to terminal device 102.

[0048] In steps S112-S114, server 112 sends target game data to terminal device 102 via network 110, and processor 106 in terminal device 102 updates the game screen displayed on the target client based on the received target game data.

[0049] Apart from Figure 1 In addition to the example shown, the above steps can be completed independently by the terminal device 102, that is, the terminal device 102 performs steps such as generating target game data, thereby reducing the processing pressure on the server.

[0050] Optionally, in this embodiment, the terminal device 102 can be a mobile device configured with a target client, which may include, but is not limited to, at least one of the following: mobile phone (such as Android phone, iOS phone, etc.), laptop computer, tablet computer, PDA, MID (Mobile Internet Device), PAD, desktop computer, smart home appliance, in-vehicle device, etc. The target client can be a client of the target game application. The network may include, but is not limited to, wired network and wireless network, wherein the wired network includes: local area network, metropolitan area network and wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that enable wireless communication. The server 112 may be a single server, a server cluster composed of multiple servers, or a cloud server. The above is only an example, and no limitation is made in this embodiment.

[0051] Optionally, as an optional implementation, the operation switching method of this embodiment has been executed by the aforementioned terminal device 102 as an example. Figure 2 This is a flowchart illustrating an optional operation switching method according to an embodiment of this application, such as... Figure 2 As shown, the process of switching operations can include the following steps:

[0052] In step S202, a virtual game picture, a virtual joystick and a virtual operation button are displayed, wherein the virtual operation button is used to control the target virtual character to perform a first attack operation, and the virtual joystick is used to control the target virtual character to move.

[0053] Optionally, in the embodiment, the operation switching method can be applied to a scenario of quickly switching an attack operation associated with a virtual operation button on a target game interface displayed by a target client of a target game application, but is not limited thereto. The target client can be a client of the target game application running on a terminal device. A virtual character controlled by the target client in the target game application is a target virtual character. After entering the target game interface, a virtual game picture can be displayed on the target game interface, and in addition, a virtual joystick and a virtual operation button can also be displayed on the target game interface.

[0054] In the embodiment, the target game application can include, but is not limited to, a Multiplayer Online Battle Arena (MOBA) or a Single-Player Game (SPG), such as a first-person shooter game, a third-person shooter game, and all games using cold and hot weapons to attack, but is not limited thereto. Optionally, the type of the target game application can include, but is not limited to, at least one of the following: a Two Dimension (2D) game application, a Three Dimension (3D) game application, a Virtual Reality (VR) game application, an Augmented Reality (AR) game application, and a Mixed Reality (MR) game application. The hardware environment in which the target game application runs can be a mobile terminal such as a mobile phone, or a PC terminal such as a computer. The above is only an example, and the embodiment is not limited thereto.

[0055] The virtual joystick can be used to control the target virtual character to move, and the manner of controlling the target virtual character to move can be to control the moving direction of the target virtual character. The virtual joystick can move within a preset direction control area, which can be a circular area with the original point of the virtual joystick as the center and a preset radius as the radius. The original point of the virtual joystick is the initial position of the virtual joystick, that is, the center position of the virtual joystick when it is not operated. The virtual joystick can move following the movement of the touch point, and the position of the virtual joystick relative to the original point can be the direction of controlling the target virtual character to move.

[0056] The position of the virtual joystick in the target game interface can be any position in the target game interface, for example, the lower left corner, the lower right corner, the upper left corner, the upper right corner, and the like. In order to facilitate user operation, the virtual joystick can be arranged in a region that can be operated by a single hand of the user, for example, a region that can be operated by the left hand, a region that can be operated by the right hand, and the like. In this embodiment, the virtual joystick is taken as an example in the lower left corner. The operation switching method in this embodiment is also applicable to other arrangement modes of the virtual joystick.

[0057] The virtual operation button can be a button for controlling the target virtual character to perform an attack operation. The attack operation performed by the target virtual character can be a basic attack without additional consumption (energy, anger, storage, MP, and the like) and without a cooling time, which can be referred to as a "normal attack". Correspondingly, the virtual operation button can be a "normal attack" button. The attack operation currently associated with the virtual operation button is the first attack operation. The virtual operation button can be used to control the target virtual character to perform the first attack operation.

[0058] The position of the virtual operation button in the target game interface can be any position in the target game interface, for example, the lower left corner, the lower right corner, the upper left corner, the upper right corner, and the like. In order to facilitate user operation, the virtual operation button can be arranged in a region that can be operated by a single hand of the user, for example, a region that can be operated by the left hand, a region that can be operated by the right hand, and the like. In this embodiment, the virtual operation button is taken as an example in the lower right corner. The operation switching method in this embodiment is also applicable to other arrangement modes of the virtual operation button.

[0059] The user can control the target virtual character to perform the first attack operation by operating the virtual operation button. The terminal device can detect a first target operation performed on the virtual operation button, and control the target virtual character to perform the first attack operation in response to the first target operation. Optionally, after detecting the first target operation, the terminal device can detect an attackable character in an attack range of the first attack operation. If an attackable character is detected, the terminal device controls the target virtual character to perform the first attack operation on the attackable character. If no attackable character is detected, the terminal device performs an ignore operation on the first target operation. Optionally, after detecting the first target operation, the terminal device can directly perform the first attack operation regardless of whether there is an attackable character in the attack range of the first attack operation.

[0060] Optionally, the first target operation can be any trigger operation performed on the virtual operation button, which can be one operation or a combination of multiple operations, and can include but is not limited to at least one of the following: a click operation, a double-click operation, a sliding operation, and the like.

[0061] For example, as shown in FIG. 6, the virtual joystick 601 is arranged in the lower left corner of the target game interface 600. The virtual operation button 602 is arranged in the lower right corner of the target game interface 600. Figure 3As shown, the game interface can display a game picture, a virtual joystick can be displayed at the lower left corner of the game interface, and a "normal attack" button can be displayed at the lower right corner of the game interface. The virtual joystick can be controlled by touch control, and the moving direction of the virtual character A can be controlled by touch control. The "normal attack" button can be controlled by clicking, and the virtual character A can perform a "normal attack" operation. At this time, the "normal attack" operation can be a horizontal splitting operation.

[0062] In step S204, in response to the virtual joystick moving to the target area, at least one operation option is displayed, and each operation option in the at least one operation option represents an attack operation allowed to replace the first attack operation.

[0063] In the related art, a virtual operation button is generally only allowed to be associated with one attack operation. For example, in a game application such as a mobile phone game, after a user clicks a "normal attack" button, a virtual character controlled by the user can only release one spell (i.e., an attack operation), the operation mode is single, the user experience is poor, and there is currently no setting mode for switching spells for normal attacks.

[0064] With the improvement of the performance of mobile devices, the operation direction of the human-computer interface needs to develop towards a more convenient and efficient control mode, so that users have a more pleasant human-computer interaction mode. The mode that a virtual operation button is only allowed to be associated with one attack operation cannot meet the user's demand for the convenience of human-computer interaction. In order to enrich the attack operation associated with the virtual operation button, based on the existing experience, by clicking a setting button corresponding to the setting interface on the target game interface, the setting interface is entered, and the setting interface provides a setting option for replacing the attack operation associated with the virtual operation button. After selecting the attack operation associated with the virtual operation button, the setting interface needs to be closed before returning to the target game interface to continue the game.

[0065] For the above feasible operation switching mode, the interface displayed on the target client is switched (i.e., from the target game interface to the setting interface, and from the setting interface to the target game interface). In the switching process, since the target virtual character cannot be controlled in the setting interface, and it also takes a certain time to find the setting option for replacing the attack operation associated with the virtual operation button in the setting interface, it will affect the normal operation of the game, especially when the target virtual character is moving, at this time, the target virtual character cannot be controlled to move, nor can other operations be performed. The target virtual character needs to be controlled to move and perform other operations after returning to the game interface after the switching is completed. If the target virtual character is in a battle state, there is a possibility that the operation switching is not completed and the life value of the target virtual character is zero.

[0066] In this embodiment, the user can move the virtual joystick to a target area to trigger the entering into the operation selection mode in the process of moving the target virtual character by the virtual joystick (or other scenarios, for example, the target virtual character is static). The target area can be a specified area in the direction control area, for example, one or more areas close to the outer side of the direction control area. In this way, the area originally used for direction control is adjusted to an area for triggering operation switching.

[0067] In the operation selection mode, at least one operation option can be displayed on the target game interface, each operation option in the at least one operation option representing an attack operation allowed to be executed by the virtual operation button on the target virtual character (for example, an attack operation allowed to replace the first attack operation), and each operation option can be displayed by the operation identifier of the corresponding attack operation, that is, the operation identifier of the corresponding attack operation is displayed. In this way, the user can be informed of the attack operation allowed to be associated with the virtual operation button without entering the setting interface, which facilitates the direct operation switching on the target game interface and avoids the situation that the multi-set skill switching mode is too complicated to operate.

[0068] Optionally, the at least one operation option can be displayed at any position of the target game interface, for example, a first area around the virtual operation button, a second area away from the virtual operation button, etc. The arrangement of the at least one operation option can be any arrangement, for example, horizontal arrangement (for example, single-row display), vertical arrangement (for example, single-column display), mixed horizontal and vertical arrangement (for example, multiple horizontal rows and multiple vertical rows), etc., or can be a surrounding arrangement (for example, surrounding the virtual operation button in the form of a roulette). In this embodiment, the display position and arrangement of the at least one operation option are not limited. For example, the at least one operation option can be displayed in a target display area outside the virtual operation button.

[0069] Optionally, the attack operation corresponding to the at least one operation option can include a pre-configured attack operation, and the attack operation corresponding to each operation option can be a basic attack without additional consumption and without a cooling time, which can include but is not limited to at least one of the following: horizontal splitting operation, vertical splitting operation, side cutting operation, piercing operation, etc., or other basic attack operations.

[0070] For example, in a mobile phone game, when the virtual joystick is moved into a target area (the dashed area in Figure 4 , the entering into the spell selection mode can be triggered, and four spells (Spell 1, Spell 2, Spell 3 and Spell 4 from top to bottom in a clockwise direction) as shown in Figure 4 are called out, and the four spells are general attack spells for switching and selection, which facilitates the quick switching of general attack spells.

[0071] Step S206: In response to the selection operation performed on the operation option corresponding to the second attack operation among at least one operation option, the virtual operation button is switched to control the target virtual character to perform the second attack operation.

[0072] To switch the attack operation associated with a virtual operation button to a second attack operation, the user can perform a selection operation (e.g., click, swipe, etc.) on at least one operation option corresponding to the second attack operation. The terminal device can detect the selection operation performed on the operation option corresponding to the second attack operation and, in response to the selection operation, switch the attack operation associated with the virtual operation button; that is, switch the virtual operation button to control the target virtual character to perform the second attack operation.

[0073] Optionally, if the target virtual character is in combat, when the virtual control button is switched to control the target virtual character to perform a second attack, the target virtual character can be controlled to automatically perform at least one second attack. For example, if the target virtual character is in auto-battle mode, the target virtual character can be controlled to automatically perform a second attack. Or, for example, if the target virtual character is in non-auto-battle mode, the target virtual character can be controlled to automatically perform one second attack.

[0074] Optionally, when the virtual operation button is switched to control the target virtual character to perform a second attack operation, an attackable character within the attack range of the second attack operation can be detected. If an attackable character is detected, the target virtual character is controlled to automatically perform at least one second attack operation on the attackable character. If no attackable character is detected, the second attack operation is not performed.

[0075] For example, such as Figure 5 As shown, after switching the "basic attack" button to control virtual character A to execute move 1, if there is an attackable character within the attack range of move 1, namely virtual character B, then virtual character A will automatically attack virtual character B once.

[0076] Optionally, switching the virtual operation button to control the target virtual character to perform the second attack operation can be performed by the terminal device alone (e.g., the terminal device records the virtual operation button being switched to control the target virtual character to perform the second attack operation), or it can be performed jointly by the terminal device and the server (e.g., the terminal device can send the operation switching instruction to the server, and the server records the virtual operation button being switched to control the target virtual character to perform the second attack operation). This embodiment does not limit this.

[0077] By means of the embodiments provided in the present application, a virtual game picture, a virtual joystick and a virtual operation button are displayed, wherein the virtual operation button is used to control a target virtual character to perform a first attack operation, and the virtual joystick is used to control the target virtual character to move; at least one operation option is displayed in response to the virtual joystick moving to a target region, wherein each operation option in the at least one operation option represents an attack operation allowed to be performed by the target virtual character through the virtual operation button; and the virtual operation button is switched to be used to control the target virtual character to perform a second attack operation in response to a selection operation performed on an operation option corresponding to the second attack operation in the at least one operation option, thereby solving the problem of slow operation switching speed due to a complicated setting process in the related art, improving the attack operation switching speed, and improving the user's interactive experience.

[0078] As an optional solution, displaying the at least one operation option in response to the virtual joystick moving to the target region comprises:

[0079] S11, in response to a first touch operation performed on the virtual joystick, moving the virtual joystick to a target region outside a preset direction control region, and displaying the at least one operation option when the virtual joystick is located on the target region, wherein the direction control region is a circular region with the origin of the virtual joystick as the center and with a preset radius as the radius.

[0080] In the present embodiment, in order to improve the convenience of operation switching and avoid mis-triggering or failure to trigger operation switching due to inaccurate operation, the target region can be configured outside the direction control region. The direction control region is similar to that in the foregoing embodiments and has been described above, and thus will not be described herein. The target region can be a region adjacent to the direction control region outside the direction control region, which can be an annular region outside the direction control region, a sector region (which can be a sector region of a target angle, for example, a left upper corner region (such as the shadow region shown in FIG. 13A), a right upper corner region, a left lower corner region, a right lower corner region, a left side region, a right side region, an upper side region, a lower side region, etc.) outside the direction control region, or a region of other shapes, which is not limited in the present embodiment. Figure 6

[0081] The user can control the virtual joystick to move to the target region through the first touch operation performed on the virtual joystick, so as to trigger entering into the operation selection mode. After detecting the first touch operation performed on the virtual joystick, the terminal device can first move the virtual joystick to the target region in response to the first touch operation. In a case where it is determined that the virtual joystick is located on the target region, the at least one operation option is displayed. The at least one operation option can be displayed on the target region or in the target display region, which is not limited in the present embodiment. ​

[0082] Optionally, the virtual rocker can have two types, or two modes, i.e., a center area type rocker and a free sliding rocker, the center area type rocker has a preset direction control area, and the free sliding rocker has no preset direction control area. When the virtual rocker is the center area type rocker, it can be detected whether the rocker slides beyond a certain area (the preset direction control area), i.e., whether the first touch operation performed on the virtual rocker is detected.

[0083] For example, as shown in FIG. 2, a user can operate the fixed rocker (the center area type rocker, i.e., the virtual rocker) to drag the rocker out of the fixed area (i.e., the preset direction control area), and a move selection circle (a type of prompt circle, the area of which is a target area) for selecting a move appears. Figure 7

[0084] Optionally, in response to the first touch operation performed on the virtual rocker, the virtual rocker is moved to a target area outside the preset direction control area, and after the virtual rocker is located on the target area (or after the time of being located on the target area exceeds a preset time threshold), at least one operation option is displayed. During the display of the at least one operation option, the virtual rocker is allowed to return to the direction control area. In this case, the stop of the display of the at least one operation option can be triggered by an operation on the virtual operation button, or can be triggered by the virtual rocker being moved to the target area again, which is not limited in the embodiment.

[0085] Optionally, during the display of the at least one operation option, the virtual rocker returning to the direction control area can be that the virtual rocker is automatically returned to the direction control area, or the virtual rocker is moved to the preset direction control area in response to a drag operation performed on the virtual rocker.

[0086] Through the embodiments provided in the present application, the operation switching is triggered by performing a touch operation different from the triggering operation of the existing function of the virtual rocker, so that the convenience of the operation switching can be improved.

[0087] As an optional solution, for the scenario of displaying the at least one operation option triggered by the first touch operation performed on the virtual rocker, the first touch operation can have multiple ways. As an optional embodiment, the above step S11 can include:

[0088] S21, in response to a drag operation performed on the virtual rocker, the virtual rocker is moved to a target area outside the preset direction control area, and when the virtual rocker is located on the target area and the drag operation is not ended, at least one operation option is displayed.

[0089] ​In the embodiment, the first touch operation can be a continuous drag operation. The user can first perform a drag operation on the virtual joystick, and drag the virtual joystick onto a target region. The terminal device can move the virtual joystick onto the target region in response to the drag operation performed on the virtual joystick. During the time when the virtual joystick is on the target region, the operation selection mode is triggered to enter, and at least one operation option is displayed. Alternatively, the operation selection mode can be triggered to enter and at least one operation option can be displayed when the time when the virtual joystick is on the target region reaches a target time threshold.

[0090] After the virtual joystick is dragged onto the target region, the virtual joystick can still be in the free activity mode. If the virtual joystick is on the target region and the drag operation has not ended, i.e., the user continues to drag the virtual joystick, at least one operation option can be continuously displayed. If the virtual joystick is on the target region and the drag operation ends, i.e., the user no longer drags the virtual joystick, the virtual joystick automatically returns to the direction control region, the operation selection mode is exited, and at least one operation option is no longer displayed.

[0091] For example, in combination with Figure 7 , the user can operate the joystick to be dragged to the move selection circle. After the drag, the "general attack" button on the right side automatically appears in the move selection mode, and the selectable moves are displayed. At this time, the user needs to keep the right hand to drag the joystick in the move selection circle to display the selectable moves. Otherwise, if the user releases the right hand before the selection is completed, the display style of the joystick and the "general attack" button shown in Figure 3 is directly returned.

[0092] As another optional implementation, the step S11 can include:

[0093] S22, in response to the drag operation performed on the virtual joystick, the virtual joystick is moved onto a target region outside the preset direction control region. At least one operation option is displayed when the virtual joystick is on the target region. In the case where the drag operation ends when the virtual joystick is on the target region, the virtual joystick stays on the target region.

[0094] In the embodiment, the first touch operation can be a continuous drag operation. The user can first perform a drag operation on the virtual joystick, and drag the virtual joystick onto a target region. The terminal device can move the virtual joystick onto the target region in response to the drag operation performed on the virtual joystick. During the time when the virtual joystick is on the target region, the operation selection mode is triggered to enter, and at least one operation option is displayed. Alternatively, the operation selection mode can be triggered to enter and at least one operation option can be displayed when the time when the virtual joystick is on the target region reaches a target time threshold.

[0095] The virtual joystick stays on the target region after being dragged onto the target region, or the time of staying on the target region reaches a target time threshold. At this time, the user does not need to continue to drag the virtual joystick, and the at least one operation option does not disappear. In a case where a drag operation performed on the virtual joystick is detected again, the virtual joystick moves following the drag operation, allowing returning to the direction control region; or in a case where a selection operation performed on one of the at least one operation option is detected, or a touch operation for triggering an exit operation selection mode is detected, the virtual joystick is controlled to return to the direction control region, for example, to a predetermined position (for example, a center position) of the direction control region.

[0096] For example, the user can drag the joystick to the skill selection circle. After the drag, the "normal attack" button on the right side automatically appears in the skill selection mode, and the selectable skills are displayed. At this time, the joystick stays in the skill selection circle, and the user can select a skill to replace the skill associated with the "normal attack" button without continuing to drag the joystick, as shown in FIG. 6. Figure 8

[0097] Through the embodiments provided in the present application, by dragging the virtual joystick to a specific region and controlling the virtual joystick to stay or not to stay, different ways of displaying operation options are adopted to improve the flexibility of operation switching.

[0098] It should be noted that, in addition to moving the virtual joystick to the target region, the operation switching can also be triggered by operating the virtual operation button, that is, in response to a target touch operation performed on the virtual operation button, the at least one operation option is displayed. The target touch operation is a touch operation different from the touch operation for triggering the target virtual character to perform an attack operation (for example, a first attack operation).

[0099] As an optional implementation, in response to the target touch operation performed on the virtual operation button, displaying the at least one operation option can include: in response to a long press operation performed on the virtual operation button, displaying the at least one operation option.

[0100] In the related art, the touch operation for triggering the virtual operation button to control the target virtual object to perform a corresponding attack operation is usually a click operation. Therefore, the operation selection mode can be triggered by performing a long press operation different from the click operation on the virtual operation button. The user can long press the virtual operation button (for example, for more than two seconds), and the terminal device can detect the long press operation performed on the virtual operation button and display the at least one operation option in response to the long press operation.

[0101] ​As another alternative implementation, displaying the at least one operation option in response to the target touch operation performed on the virtual operation button can include displaying the at least one operation option in response to a drag operation performed on the virtual operation button.

[0102] In this embodiment, entering the operation selection mode can be triggered by performing a drag operation other than a click operation on the virtual operation button. The user can drag the virtual operation button out of the button area of the virtual operation button, and the terminal device can detect the drag operation performed on the virtual operation button and display the at least one operation option in response to the drag operation.

[0103] As yet another alternative implementation, displaying the at least one operation option in response to the target touch operation performed on the virtual operation button can include displaying the at least one operation option in response to a rotation operation performed on the virtual operation button.

[0104] In this embodiment, entering the operation selection mode can be triggered by performing a rotation operation other than a click operation on the virtual operation button. The user can draw a circle in the button area of the virtual operation button or perform other rotation operations, and the terminal device can detect the rotation operation performed on the virtual operation button and display the at least one operation option in response to the rotation operation.

[0105] The target touch operation can also be other types of touch operations, which are not listed here. Other touch operations different from the touch operation that triggers the target virtual character to perform an attack operation can also be target touch operations.

[0106] As an alternative, in the process of displaying the at least one operation option in response to the virtual joystick moving to the target area, the above method further includes:

[0107] S31, controlling the target virtual character to move in the moving direction indicated by the virtual joystick.

[0108] After the virtual joystick moves to the target area, the virtual joystick can be outside the original direction control area at this time, and the target virtual character can be controlled to stop moving at this time. In this case, if the target virtual character is in a battle state or is in a scene that needs to control the moving direction, there is a risk of abnormal state of the target virtual character due to the inability to control the moving direction of the target virtual character.

[0109] In the embodiment, the target virtual character can be controlled to move in the direction indicated by the virtual joystick during the process of displaying the at least one operation option when the virtual joystick moves to the target region. After the at least one operation option is displayed, the virtual joystick can have a plurality of states, which can include but are not limited to one of the following: the virtual joystick is located on the target region and the drag operation is not ended; the virtual joystick stays on the target region; the virtual joystick allows to return to the direction control region. For different states, the movement of the target virtual character can be controlled in different ways.

[0110] As an optional implementation, the target region can be an extension of the direction control region, which is also a trigger region of operation switching. For example, when the target region is a ring-shaped region outside the direction control region, the movement of the target virtual character can be controlled by sliding the virtual joystick in the target region. For example, when the target region is a region (which can be a ring-shaped region) outside the direction control region, the movement of the target virtual character can be controlled by sliding the virtual joystick in the target region.

[0111] As another optional implementation, when the virtual joystick stays on the target region, the target virtual character can be controlled to move in the direction indicated by the virtual joystick at the moment, i.e., the target virtual character moves in the direction indicated by the virtual joystick before the virtual joystick moves to the target region. For example, when the virtual joystick stays at the top-left corner of the direction control region, the target virtual character can be controlled to continue moving to the top-left direction.

[0112] As another optional implementation, when the virtual joystick allows to return to the direction control region and the virtual joystick returns to the direction control region, the movement of the target virtual character can be controlled by the operation of the joystick in the existing direction control mode, such as controlling the target virtual character to move in the direction indicated by the virtual joystick.

[0113] By the embodiments provided in the present application, the virtual character can be controlled to move in the direction indicated by the virtual joystick during the process of displaying the at least one operation option, which can improve the flexibility of character control and improve the user experience.

[0114] As an optional solution, the above method further includes:

[0115] S41, when the virtual joystick is located on the target region, display switching prompt information, wherein the switching prompt information is used to prompt to switch the attack operation performed by the target virtual character under the control of the virtual operation button.

[0116] For the scenario that the at least one operation option is displayed by triggering the first touch operation on the virtual joystick, the virtual joystick and the virtual operation button are different controls, and the two are usually displayed in different position areas of the game interface, for example, the virtual joystick is usually located on the right side of the target game interface, and the virtual operation button is usually located on the left side of the target game interface. In order to improve the timeliness of operation switching, the virtual operation button can be switched to control the target virtual character to perform the attack operation by the switching prompt information when the virtual joystick is located on the target area (also referred to as the first target area).

[0117] Optionally, when the virtual joystick is located on the target area, the terminal device can display the switching prompt information on the target area, the inside or the outside of the target area. The switching prompt information can be a text prompt, for example, as shown in FIG. 6A, the "move selection" in FIG. 6A is a text prompt, and can also be color prompt information. The color prompt information can be color information displayed in the target area, for example, the move selection aperture in FIG. 6B can display a predetermined color and be highlighted, and can also be other types of prompt information, which is not limited in the embodiment. Figure 9 Figure 9 Figure 9

[0118] By the embodiments provided in the present application, the operation switching is prompted by the switching prompt information, and the timeliness of operation switching can be improved.

[0119] As an optional solution, the above method further includes:

[0120] S51, in the case of switching the virtual operation button to control the target virtual character to perform the second attack operation, switching the attack operation identifier displayed on the virtual operation button from the first attack identifier to the second attack identifier, wherein the first attack identifier is used to indicate the first attack operation, and the second attack identifier is used to indicate the second attack operation.

[0121] The attack operation identifier can be an operation identifier irrelevant to the attack operation currently associated with the virtual operation button, for example, it can be a default operation identifier, and is only used to indicate that the virtual operation button can be used to control the target virtual character to perform a certain attack operation.

[0122] ​​​In the embodiment, in order to facilitate the user to know the attack operation currently associated with the virtual operation button, the attack operation identifier displayed on the virtual operation button can be used to identify the attack operation currently associated with the virtual operation button. For example, in step S202, the attack operation identifier displayed on the virtual operation button is the first attack identifier, and the first attack identifier is used to represent the first attack operation. In the case of switching the virtual operation button to control the target virtual character to perform the second attack operation, the terminal device can switch the attack operation identifier displayed on the virtual operation button to the second attack identifier, and the second attack identifier is used to represent the second attack operation.

[0123] For example, as shown in FIG. 6A, after sliding, that is, after completing the switch selection of the normal attack move, the “normal attack” button style is changed to the selected move style, as shown in FIG. 6B. Figure 10 Figure 11

[0124] Through the embodiments provided in the present application, by displaying the operation identifier of the attack operation currently associated with the virtual operation button, the convenience of information acquisition can be improved.

[0125] As an optional solution, in the embodiment, at each operation switching, the at least one operation option displayed contains an operation option allowing the target virtual character to perform all attack operations controlled by the virtual operation button. For example, if the number of attack operations allowed to be controlled by the virtual operation button is 5, the number of operation options displayed is also 5. In this case, the at least one operation option contains an operation option corresponding to the first attack operation. Correspondingly, the display mode of all operation options in the at least one operation option can be the same. When performing operation switching, the user may not be able to accurately know the attack operation currently associated with the virtual operation button in time, and the switched attack operation is still the attack operation currently associated with the virtual operation button, thereby causing invalid switching operation.

[0126] In order to improve the efficiency of switching operation, the operation option corresponding to the first attack operation can be displayed differently. As an optional implementation, displaying the at least one operation option can include:

[0127] S61, highlighting the operation option corresponding to the first attack operation, wherein the highlighted operation option cannot be selected.

[0128] Optionally, the operation option corresponding to the first attack operation can be highlighted. The highlighting here can be that the operation option corresponding to the first attack operation is displayed with higher brightness than other operation options. In addition, the highlighting can also be that the operation option corresponding to the first attack operation is displayed with a highlight parameter corresponding to a predetermined color. The highlighting mode of other information is applicable in the embodiment.​​

[0129] For example, the operation option corresponding to the first attack operation can be displayed in a first brightness, and the other operation options in the at least one operation options except the operation option corresponding to the first attack operation can be displayed in a second brightness, the first brightness being greater than the second brightness, which can be twice or higher than the second brightness, or other brightness relationship.

[0130] If the highlighted operation option is selected due to a misoperation, an invalid switching operation is still caused. If the operation option is selected and then directly exited, the switching needs to be triggered again, and the operation amount of the invalid operation is greater. In this regard, the highlighted operation option can be set to be unselectable during the operation switching, so as to reduce the misoperation and improve the efficiency of the operation switching.

[0131] As another optional implementation, displaying the at least one operation option can include:

[0132] In S62, the operation option corresponding to the first attack operation is displayed in grayscale, and the operation option displayed in grayscale is unselectable.

[0133] Optionally, the operation option corresponding to the first attack operation can be displayed in grayscale. The grayscale display of the operation option corresponding to the first attack operation can be that the operation option is displayed in a higher grayscale value than other operation options. The grayscale display of other information (for example, the brightness of the operation option corresponding to the first attack operation is lower than the brightness of other operation options) is applicable in this embodiment.

[0134] For example, the operation option corresponding to the first attack operation can be displayed in a first grayscale, and the other operation options in the at least one operation options except the operation option corresponding to the first attack operation can be displayed in a second grayscale, the first grayscale being greater than the second grayscale.

[0135] If the operation option displayed in grayscale is selected due to a misoperation, an invalid switching operation is still caused. If the operation option is selected and then directly exited, the switching needs to be triggered again, and the operation amount of the invalid operation is greater. In this regard, the operation option displayed in grayscale can be set to be unselectable during the operation switching, so as to reduce the misoperation and improve the efficiency of the operation switching.

[0136] According to the embodiments provided in the present application, the operation option corresponding to the attack operation currently associated with the virtual operation button is displayed in a manner different from other operation options, and is set to be unselectable, so as to reduce the misoperation and improve the efficiency of the operation switching.

[0137] As an optional solution, after displaying the at least one operation option, the above method further includes:

[0138] S71, in a case where it is detected that the button identifier of the virtual operation button is dragged to a region range where the operation option corresponding to the second attack operation is located, highlighting the operation option corresponding to the second attack operation.

[0139] The way of selecting a certain operation option in the at least one operation option can be: dragging the button identifier of the virtual operation button to a position where the corresponding operation option is located. If the operation option is directly determined to be selected when moving to a region range where the operation option is located, there is a risk that the operation option is mistakenly selected due to inaccurate operation, thereby reducing the efficiency of operation switching.

[0140] In the embodiment, the operation option to be selected can be prompted by the prompt information, so that the user can know the current operation option to be selected in advance, so as to timely find the operation failure and reduce the occurrence of misoperation. Alternatively, in a case where it is detected that the button identifier of the virtual operation button is dragged to a region range where the operation option corresponding to the second attack operation is located, the terminal device can highlight the operation option corresponding to the second attack operation. The way of highlighting the operation option corresponding to the second attack operation is similar to the way of highlighting the operation option corresponding to the first attack operation in the foregoing embodiment, which will not be described herein.

[0141] Alternatively, the selection operation of the operation option can be various, which can include but is not limited to click operation, double-click operation, drag operation, and the like. After the button identifier of the virtual operation button is dragged to a region range where the operation option corresponding to the second attack operation is located, the button identifier of the virtual operation button can be kept in the region range where the operation option corresponding to the second attack operation is located, and in a case where it is detected that a click operation or a double-click operation is performed on the operation option corresponding to the second attack operation, it is determined that the operation option corresponding to the second attack operation is selected. Alternatively, after the button identifier of the virtual operation button is dragged to a region range where the operation option corresponding to the second attack operation is located, in a case where it is detected that the button identifier of the virtual operation button is kept in the region range where the operation option corresponding to the second attack operation is located for more than a predetermined time threshold (for example, 1s), it is determined that the operation option corresponding to the second attack operation is selected. Or, in a case where it is detected that the button identifier of the virtual operation button is stopped being dragged after being dragged to the region range where the operation option corresponding to the second attack operation is located, it is determined that the operation option corresponding to the second attack operation is selected. The embodiment is not limited in this regard.

[0142] For example, as shown in FIG. 6, the operation option corresponding to the second attack operation is highlighted. Figure 10As shown, the "general attack" button is dragged to slide to a desired attack form, such as an upper attack or a lower attack, and the attack to which the sliding is performed is highlighted, and then the "general attack" button is released, so that the attack to which the switching is performed is determined as the attack at which the "general attack" button is located when the "general attack" button is released.

[0143] According to the embodiments provided in the present application, when the button identifier of the virtual operation button is dragged to the region range of the operation option corresponding to a certain attack operation, the operation option is highlighted, which can improve the timeliness of information acquisition, reduce the occurrence of misoperation, and improve the efficiency of operation switching.

[0144] As an optional solution, in each operation switching, each operation option in the displayed at least one operation option represents an attack operation allowed to replace the current attack operation associated with the virtual operation button, for example, the number of attack operations allowed to be controlled by the virtual operation button to be executed by the target virtual character is 5, and the number of displayed operation options is also 4, and the operation option corresponding to the attack operation currently associated with the virtual operation button is not included. In this case, in step S204, the at least one operation option displayed does not include the operation option corresponding to the first attack operation.

[0145] After step S206 is performed, the operation option corresponding to the first attack operation can be used to replace the operation option corresponding to the second attack operation, and the replacement manner can be that the operation option corresponding to the second attack operation is directly replaced by the operation option corresponding to the first attack operation, or the operation option corresponding to the second attack operation is removed from the at least one operation option according to the order of the attack operation, and the operation option corresponding to the first attack operation is added to the corresponding position in the at least one operation option. At this time, the updated at least one operation option includes the operation option corresponding to the first attack operation and does not include the operation option corresponding to the second attack operation. Then, when the next operation switching is performed, the updated at least one operation option is displayed.

[0146] Optionally, in the present embodiment, after the virtual operation button is switched to be used to control the target virtual character to execute the second attack operation, the above method can further include:

[0147] S81, in the case where the second touch operation is detected, display the updated at least one operation option;

[0148] S82, in response to the selection operation performed on the operation option corresponding to the third attack operation in the updated at least one operation option, switch the virtual operation button to be used to control the target virtual character to execute the third attack operation.

[0149] If the user needs to switch the operation again, the user can perform a second touch operation on the target game interface in the same or similar manner as in the foregoing embodiments. The second touch operation can be the same touch operation as the first touch operation, or a different touch operation. For example, the display of the at least one operation option can be triggered by various touch operations. In this case, the touch operation that triggers the display of the at least one operation option can be the same or different each time.

[0150] The terminal device can detect the second touch operation, and in response to the detected second touch operation, display the updated at least one operation option. For the updated at least one operation option, the user can perform a selection operation on the operation option corresponding to the third attack operation in the same or similar manner as in the foregoing embodiments. After detecting the selection operation performed on the operation option corresponding to the third attack operation, the terminal device switches the virtual operation button to be used to control the target virtual character to perform the third attack operation in response to the selection operation. The manner of switching the attack operation is the same as or similar to that in the foregoing embodiments, and will not be described herein. Here, the third attack operation can be the same attack operation as the first attack operation, or a different attack operation.

[0151] By the embodiments provided in this application, when switching the operation, only the operation option corresponding to the attack operation of the current attack operation associated with the virtual operation button allowed to be replaced is displayed, which can reduce the occurrence of misoperation and improve the convenience of operation switching.

[0152] As an optional solution, when displaying the at least one operation option, the above method further includes:

[0153] S91, in response to the target operation performed on the virtual operation button, controlling the target virtual character to perform the first attack operation.

[0154] During the operation switching, when displaying the at least one operation option, only operations related to the selection of the operation option, such as the selection operation of the operation option, the exit operation of the operation selection mode, and the like, can be allowed to be performed, and operations unrelated to the selection of the operation option are not allowed to be performed. For example, after entering the operation selection mode, only the selection of the operation option corresponding to a certain attack operation or the exit operation of the operation selection mode can be allowed to be performed, and the attack operation of the target virtual character controlled by the operation of the virtual operation button is not allowed to be performed.

[0155] When the operation switching is performed, the target virtual character can be in a combat state or passively enter the combat state (for example, enter the combat state due to being attacked by another virtual character). If the operation unrelated to the selected operation option is not allowed to be performed when the operation switching is performed, there is a possibility that the operation switching is not completed and the life value of the target virtual character is zero. In this embodiment, when the operation switching is performed, the operation unrelated to the selected operation option can be allowed to be performed, for example, the target virtual character is allowed to perform an attack operation by operating the virtual operation button.

[0156] Optionally, when the operation switching is performed, the user can perform a target operation (for example, a click operation, a double-click operation, or another trigger operation) on the virtual operation button. The terminal device can detect the target operation and control the target virtual character to perform a first attack operation in response to the target operation. The first attack operation is performed in a manner similar to the foregoing embodiments, which will not be described here.

[0157] For example, as shown in FIG. 6, after entering the skill selection mode, the “normal attack” button is still in the normal attack combat. Figure 4

[0158] By the embodiments provided in this application, the attack operation of the virtual character is allowed to be controlled by triggering the virtual operation button when the operation switching is performed, which can improve the flexibility of the operation switching and improve the user experience.

[0159] As an optional solution, after the virtual operation button is switched to be used for controlling the target virtual character to perform the second attack operation, the method further includes:

[0160] S101, continuing to display at least one operation option;

[0161] S103, in response to the selected operation performed on the operation option corresponding to the fourth attack operation in the at least one operation option, switching the virtual operation button to be used for controlling the target virtual character to perform the fourth attack operation.

[0162] After detecting the selected operation performed on the operation option corresponding to the second attack operation, the at least one operation option can be exited. For example, as shown in FIG. 6, after the normal attack skill is dragged to the desired skill form, the normal attack skill switching selection is completed, the joystick and the “normal attack” button return to normal, and the skill style displayed by the “normal attack” button is changed to the selected skill style. Figure 10

[0163] ​​If there is a need for operation switching again, the operation selection mode needs to be triggered again, and the operation switching mode described above has a complex flow, which can affect the battle process and reduce the user experience. In this embodiment, at least one operation option can be continuously displayed after the virtual operation button is switched to be used to control the target virtual character to perform the second attack operation. The at least one operation option that is continuously displayed can be updated at least one operation option, and the updating manner is similar to the foregoing embodiment, which will not be described herein.

[0164] Optionally, in this embodiment, at least one operation option can be continuously displayed after the virtual operation button is switched to be used to control the target virtual character to perform the second attack operation, in a case where the target virtual character is in a battle state; and the display of the at least one operation option is exited in a case where the target virtual character is in a non-battle state.

[0165] For the at least one operation option that is continuously displayed, the user can continue to select an operation option corresponding to the fourth attack operation. The terminal device can detect a selection operation performed on the operation option corresponding to the fourth attack operation, and switch the virtual operation button to be used to control the target virtual character to perform the fourth attack operation in response to the selection operation. The manner of switching the attack operation is similar to the foregoing embodiment, which will not be described herein. Here, the fourth attack operation can be the same attack operation as the first attack operation, or can be a different attack operation from the first attack operation. The user can perform a second target operation on the target game interface, for example, tapping a second target region other than the virtual touch control button. The terminal device can exit the display of the at least one operation option in response to the second target operation in a case where the second target operation is detected.

[0166] Through the embodiments provided in this application, the operation switching convenience can be improved and the user experience can be improved by keeping the display of the operation options to facilitate multiple operation switching.

[0167] The operation switching method in the embodiments of this application will be explained and described below in combination with optional examples. In this optional example, the target game application is a mobile phone game, the terminal device is a mobile phone terminal, the virtual operation button is a "general attack" button, and an attack operation is a spell allowed to be triggered by the "general attack" button.

[0168] The optional example provides a scheme of switching a general attack spell based on a joystick for quick operation switching. As shown in FIG. 8, the flow of the operation switching method in this optional example can include the following steps: Figure 12

[0169] ​Step S1202: Start. The user operates the mobile terminal, clicks on the mobile game, and the mobile terminal enters the game state.

[0170] In step S1204, the user operates the joystick to slide, and the game interface displays that the joystick has moved out of the joystick's restricted area.

[0171] In step S1206, the mobile terminal determines whether the finger swipe exceeds the joystick's restricted area (the function is the same as the aforementioned direction control area). If so, proceed to step S1208; otherwise, end the process.

[0172] Step S1208: When the finger slides beyond the joystick's restricted area, the joystick triggers the move selection ring state, and the corresponding move selection mode is triggered around the "normal attack" button on the game interface.

[0173] Step S1210: Determine if the basic attack has been slid to the corresponding move. If yes, proceed to step S1212; otherwise, end.

[0174] Users can drag the "Basic Attack" icon into the corresponding basic attack area to complete the attack switching operation. The mobile terminal can determine whether the "Basic Attack" icon has been slid to the corresponding attack. If so, step S1212 is executed; otherwise, the process ends.

[0175] Step S1212: Switch the move associated with the "Normal Attack" button on the game interface.

[0176] Step S1214: Move selection complete, joystick status on game interface returns to normal.

[0177] This optional example demonstrates how to quickly and efficiently complete operations that would otherwise require multiple steps, thereby improving the efficiency of game operations and enhancing the user experience.

[0178] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0179] According to another aspect of the embodiments of this application, an operation switching apparatus for implementing the above-described operation switching method is also provided. Figure 13 This is a structural block diagram of an optional operation switching device according to an embodiment of this application, such as... Figure 13 As shown, the device may include:

[0180] The first display unit 1302 is configured to display a virtual game picture, a virtual joystick and a virtual operation button, wherein the virtual operation button is used to control the target virtual character to perform a first attack operation, and the virtual joystick is used to control the target virtual character to move.

[0181] The second display unit 1304 is configured to display at least one operation option in response to the virtual joystick moving to a target area, wherein each operation option in the at least one operation option represents an attack operation allowed to be performed by the target virtual character through the virtual operation button.

[0182] The first switching unit 1306 is configured to switch the virtual operation button to be used to control the target virtual character to perform a second attack operation in response to a selection operation performed on an operation option corresponding to the second attack operation in the at least one operation option.

[0183] It should be noted that the first display unit 1302 in this embodiment can be configured to perform the above step S202, the second display unit 1304 in this embodiment can be configured to perform the above step S204, and the first switching unit 1306 in this embodiment can be configured to perform the above step S206.

[0184] According to the embodiments provided in the present application, the virtual game picture, the virtual joystick and the virtual operation button are displayed, wherein the virtual operation button is used to control the target virtual character to perform a first attack operation, and the virtual joystick is used to control the target virtual character to move; at least one operation option is displayed in response to the virtual joystick moving to a target area, wherein each operation option in the at least one operation option represents an attack operation allowed to be performed by the target virtual character through the virtual operation button; and the virtual operation button is switched to be used to control the target virtual character to perform a second attack operation in response to a selection operation performed on an operation option corresponding to the second attack operation in the at least one operation option, thereby solving the problem that the operation switching mode in the related art has a slow operation switching speed due to a complicated setting process, improving the attack operation switching speed, and improving the user's interactive experience.

[0185] As an optional solution, the second display unit comprises:

[0186] The display module is configured to move the virtual joystick to a target area outside a preset direction control area in response to a first touch operation performed on the virtual joystick, and display at least one operation option when the virtual joystick is located on the target area, wherein the direction control area is a circular area with the origin of the virtual joystick as the center and with a preset radius as the radius.

[0187] Optional examples of the present embodiment can refer to the examples shown in the above operation switching method, which will not be described herein again in the present embodiment.

[0188] As an optional solution, the display module comprises:

[0189] The first display submodule is configured to, in response to the dragging operation performed on the virtual joystick, move the virtual joystick to a target area outside the preset direction control area, and display at least one operation option when the virtual joystick is located on the target area and the dragging operation is not ended.

[0190] The second display submodule is configured to, in response to the dragging operation performed on the virtual joystick, move the virtual joystick to a target area outside the preset direction control area, and display at least one operation option when the virtual joystick is located on the target area, wherein the virtual joystick stays on the target area when the dragging operation is ended while the virtual joystick is located on the target area.

[0191] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned operation switching method, which will not be repeated here in the present embodiment.

[0192] As an optional solution, the above-mentioned device further comprises:

[0193] The first control unit is configured to, in the process of displaying at least one operation option in response to the virtual joystick moving to the target area, control the target virtual character to move according to the moving direction indicated by the virtual joystick.

[0194] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned operation switching method, which will not be repeated here in the present embodiment.

[0195] As an optional solution, the above-mentioned device further comprises:

[0196] The third display unit is configured to display switching prompt information when the virtual joystick is located on the target area, wherein the switching prompt information is used to prompt switching the attack operation performed by the virtual operation button to control the target virtual character.

[0197] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned operation switching method, which will not be repeated here in the present embodiment.

[0198] As an optional solution, the above-mentioned device further comprises:

[0199] The second switching unit is configured to, in the case of switching the virtual operation button to control the target virtual character to perform the second attack operation, switch the attack operation identifier displayed on the virtual operation button from the first attack identifier to the second attack identifier, wherein the first attack identifier is used to represent the first attack operation, and the second attack identifier is used to represent the second attack operation.

[0200] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned operation switching method, which will not be repeated here in the present embodiment.

[0201] As an optional solution, the second display unit comprises:

[0202] The third display module is configured to, in a case where the at least one operation option comprises an operation option corresponding to the first attack operation, highlight the operation option corresponding to the first attack operation, wherein the highlighted operation option cannot be selected; or

[0203] The fourth display module is configured to, in a case where the at least one operation option comprises an operation option corresponding to the first attack operation, display the operation option corresponding to the first attack operation in grayscale, wherein the operation option displayed in grayscale cannot be selected.

[0204] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned operation switching method, which will not be repeated here in the present embodiment.

[0205] As an optional solution, the above-mentioned apparatus further comprises:

[0206] The fourth display unit is configured to, after displaying the at least one operation option, in a case where it is detected that the button identifier of the virtual operation button is dragged to a region range where an operation option corresponding to the second attack operation is located, highlight the operation option corresponding to the second attack operation.

[0207] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned operation switching method, which will not be repeated here in the present embodiment.

[0208] As an optional solution, the above-mentioned apparatus further comprises:

[0209] The fifth display unit is configured to, after switching the virtual operation button to be used for controlling the target virtual character to perform the second attack operation, in a case where a second touch operation is detected, display updated at least one operation option, wherein the updated at least one operation option comprises an operation option corresponding to the first attack operation and does not comprise an operation option corresponding to the second attack operation.

[0210] The third switching unit is configured to, in response to a selection operation performed on an operation option corresponding to the third attack operation in the updated at least one operation option, switch the virtual operation button to be used for controlling the target virtual character to perform the third attack operation.

[0211] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned operation switching method, which will not be repeated here in the present embodiment.

[0212] As an optional solution, the apparatus further includes:

[0213] The second control unit is configured to, in response to a target operation performed on the virtual operation button while displaying the at least one operation option, control the target virtual character to perform a first attack operation.

[0214] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned operation switching method, which will not be repeated here in the present embodiment.

[0215] As an optional solution, the apparatus further includes:

[0216] The sixth display unit is configured to, after switching the virtual operation button to be used for controlling the target virtual character to perform a second attack operation, continue to display the at least one operation option.

[0217] The fourth switching unit is configured to, in response to a selection operation performed on an operation option corresponding to a fourth attack operation in the at least one operation option, switch the virtual operation button to be used for controlling the target virtual character to perform the fourth attack operation.

[0218] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned operation switching method, which will not be repeated here in the present embodiment.

[0219] According to still another aspect of the embodiments of the present application, an electronic device for implementing the above-mentioned operation switching method is provided, which can be Figure 1 a terminal device or a server as shown. The present embodiment takes the electronic device as a terminal device as an example for illustration. As shown in Figure 14 The electronic device includes a memory 1402 and a processor 1404, the memory 1402 stores a computer program, and the processor 1404 is configured to execute the steps in any of the above-mentioned method embodiments by the computer program.

[0220] Optionally, in the present embodiment, the above-mentioned electronic device can be located in at least one network device of a plurality of network devices of a computer network.

[0221] Optionally, in the present embodiment, the above-mentioned processor can be configured to execute the following steps by the computer program:

[0222] S1, display a virtual game picture, a virtual joystick and a virtual operation button, wherein the virtual operation button is used for controlling a target virtual character to perform a first attack operation, and the virtual joystick is used for controlling the target virtual character to move;

[0223] S2, in response to the virtual joystick moving to the target area, displaying at least one operation option, wherein each operation option in the at least one operation option represents an attack operation allowed to be executed by the target virtual character through the virtual operation button;

[0224] S3, in response to a selection operation performed on the operation option in the at least one operation option corresponding to the second attack operation, switching the virtual operation button to be used for controlling the target virtual character to execute the second attack operation.

[0225] Optionally, those skilled in the art can understand that, Figure 14 The structure shown is only schematic, and the electronic device can also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a MID, a PAD, and other terminal devices. Figure 14 It does not limit the structure of the above-mentioned electronic device. For example, the electronic device can further include more or less components (such as network interfaces, etc.) than Figure 14 shown, or have a different configuration from Figure 14 shown.

[0226] The memory 1402 can be used to store software programs and modules, such as program instructions / modules corresponding to the operation switching method and device in the embodiments of the present application. The processor 1404 executes various functions and data processing by running the software programs and modules stored in the memory 1402, that is, implements the above-mentioned operation switching method. The memory 1402 can include a high-speed random access memory, and can also include a non-volatile memory such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 1402 can further include a memory remotely arranged with respect to the processor 1404, which can be connected to the terminal through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The memory 1402 can be used to serialize files and compile files, etc. As an example, as Figure 14 shown, the above-mentioned memory 1402 can include but is not limited to the first display unit 1302, the second display unit 1304, and the first switching unit 1306 in the above-mentioned operation switching device. In addition, other module units in the above-mentioned operation switching device can also be included but are not limited to, which will not be described in detail in this example.

[0227] Optionally, the transmission device 1406 is configured to receive or send data via a network. Examples of the network can include a wired network and a wireless network. In one example, the transmission device 1406 includes a network adapter (NIC), which can be connected to other network devices and routers through a network cable to communicate with the Internet or a local area network. In one example, the transmission device 1406 is a radio frequency (RF) module, which is configured to communicate with the Internet in a wireless manner.

[0228] In addition, the electronic device further includes a display 1408 configured to display the target game interface, and a connection bus 1410 configured to connect various module components in the electronic device.

[0229] In other embodiments, the terminal device or the server can be a node in a distributed system, and the distributed system can be a blockchain system. The blockchain system can be a distributed system formed by the plurality of nodes communicating through a network. The nodes can form a peer-to-peer (P2P) network, and any computing device, such as a server or a terminal, can become a node in the blockchain system by joining the P2P network.

[0230] According to an aspect of the present application, a computer program product is provided, which includes computer programs / instructions containing program codes for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication part 1509, and / or installed from the detachable medium 1511. When the computer program is executed by the central processing unit 1501, various functions provided by the embodiments of the present application are executed. The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments.

[0231] Figure 15 The computer system structure block diagram of the electronic device for implementing the embodiments of the present application is schematically shown. As shown in FIG. 15, the computer system includes a central processing unit (CPU) 1501, a memory 1502, a storage device 1503, a keyboard 1504, a mouse 1505, a display 1506, a communication part 1507, and a bus 1508. Figure 15As shown, the computer system 1500 includes a central processing unit 1501 (CPU), which can execute various appropriate actions and processes according to programs stored in a read-only memory 1502 (ROM) or loaded from a storage section 1508 into a random access memory 1503 (RAM). Various programs and data required for the operation of the system are also stored in the random access memory 1503. The central processing unit 1501, the read-only memory 1502, and the random access memory 1503 are connected to each other through a bus 1504. An input / output interface 1505 (I / O interface) is also connected to the bus 1504.

[0232] The following components are connected to the input / output interface 1505: an input section 1506 including a keyboard, a mouse, etc.; an output section 1507 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1508 including a hard disk, etc.; and a communication section 1509 including a network interface card such as a local area network card, a modem, etc. The communication section 1509 performs communication processing via a network such as the Internet. A drive 1510 is also connected to the input / output interface 1505 as necessary. A removable recording medium 1511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 1510 as necessary, so that a computer program read therefrom is installed into the storage section 1508 as necessary.

[0233] In particular, according to embodiments of the present application, the processes described in the various method flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication section 1509, and / or installed from the removable recording medium 1511. When the computer program is executed by the central processing unit 1501, various functions defined in the system of the present application are executed.

[0234] It should be noted that, Figure 15 The computer system 1500 of the electronic device shown is merely an example and should not impose any limitation on the functions and the range of use of embodiments of the present application.

[0235] According to an aspect of the present application, a computer readable storage medium is provided, from which a processor of a computer device reads computer instructions, and the processor executes the computer instructions to enable the computer device to perform the method provided in various optional implementations of the above-described embodiments.

[0236] Optionally, in the embodiment, the computer readable storage medium described above can be configured to store a computer program for performing the following steps:

[0237] S1, displaying a virtual game picture, a virtual joystick and a virtual operation button, wherein the virtual operation button is used to control a target virtual character to perform a first attack operation, and the virtual joystick is used to control the target virtual character to move;

[0238] S2, in response to the virtual joystick moving to a target area, displaying at least one operation option, wherein each operation option in the at least one operation option represents an attack operation allowed to be performed by the target virtual character through the virtual operation button;

[0239] S3, in response to a selection operation performed on an operation option corresponding to a second attack operation in the at least one operation option, switching the virtual operation button to be used to control the target virtual character to perform the second attack operation.

[0240] Optionally, in the embodiment, those skilled in the art can understand that all or part of the steps in the various methods of the above-described embodiments can be completed by programs instructing the hardware of the terminal device, and the programs can be stored in a computer readable storage medium, which can include a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0241] The integrated units in the above-described embodiments, if realized in the form of software function units and sold or used as independent products, can be stored in the above-described computer readable storage medium. Based on such understanding, the technical solutions of the present application, essentially or in part, or all or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes several instructions for enabling one or more computer devices (which can be personal computers, servers, or network devices, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.

[0242] In the above-described embodiments of the present application, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0243] In several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other manners. Of course, the described apparatus embodiments are merely schematic, and the division of units is merely logical function division, and there can be other division manners in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, units or modules, and can be in electrical, mechanical or other forms.

[0244] The units described as separated components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., can be located in one place or can be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments.

[0245] In addition, each functional unit in the embodiments of the present application can be integrated in a processing unit, or each unit can exist physically as a separate unit, or at least two units can be integrated in a unit. The integrated unit can be implemented in a form of hardware, or in a form of software functional unit.

[0246] The above descriptions are merely preferred embodiments of the present application, and it should be pointed out that, for those skilled in the art, some improvements and refinements can be made without departing from the principles of the present application, and these improvements and refinements should also be considered as the protection scope of the present application.

Claims

1. An operation switching method, characterized in that, include: The screen displays a virtual game interface, a virtual joystick, and virtual control buttons. The virtual control buttons are used to control the target virtual character to perform a first attack, and the virtual joystick is used to control the target virtual character to move. In response to moving the virtual joystick to the target area, at least one operation option is displayed in the display area associated with the virtual operation button, each of the at least one operation option representing an attack operation that allows the target virtual character to be controlled via the virtual operation button; If a click on the virtual operation button is detected, an attackable character within the attack range of the first attack operation is identified; if the attackable character is included in the attack range, the target virtual character is controlled to perform the first attack operation; if the attackable character is not included in the attack range, the current operation state of the target virtual character is maintained. If it is detected that the virtual operation button is dragged to the display area and a second operation option corresponding to the second attack operation is selected, at least one of the operation options is de-displayed in the display area, and the second operation option is displayed in the virtual operation button. In response to the triggering of the second operation option, the target virtual character is controlled to perform the second attack operation; when the second attack operation is completed and the target virtual character is in combat, at least one of the operation options is restored to be displayed in the display area.

2. The method according to claim 1, characterized in that, In response to the virtual joystick moving to the target area, at least one operation option is displayed in the display area associated with the virtual operation button, including: In response to a first touch operation performed on the virtual joystick, the virtual joystick is moved to a target area outside the preset directional control area. When the virtual joystick is located in the target area, the at least one operation option is displayed, wherein the directional control area is a circular area with the origin of the virtual joystick as the center and a preset radius as the radius.

3. The method according to claim 2, characterized in that, In response to a first touch operation performed on the virtual joystick, the virtual joystick is moved to a target area outside a preset directional control area. When the virtual joystick is located in the target area, the at least one operation option is displayed, including: In response to a drag operation performed on the virtual joystick, the virtual joystick is moved to the target area outside the preset directional control area. While the virtual joystick is located in the target area and the drag operation is not yet finished, the at least one operation option is displayed; or In response to a drag operation performed on the virtual joystick, the virtual joystick is moved to a target area outside a preset directional control area. When the virtual joystick is located in the target area, the at least one operation option is displayed. When the drag operation ends while the virtual joystick is located in the target area, the virtual joystick remains in the target area.

4. The method according to claim 1, characterized in that, In the process of displaying at least one operation option in a display area associated with the virtual operation button in response to the virtual joystick moving to the target area, the method further includes: Control the target virtual character to move in the direction indicated by the virtual joystick.

5. The method according to claim 1, characterized in that, The method further includes: When the virtual joystick is located over the target area, a switching prompt is displayed, wherein the switching prompt is used to prompt the user to switch the attack operation performed by the target virtual character controlled by the virtual operation button.

6. The method according to claim 1, characterized in that, The method further includes: When the virtual operation button is switched to control the target virtual character to perform the second attack operation, the attack operation identifier displayed on the virtual operation button is switched from the first attack identifier to the second attack identifier, wherein the first attack identifier is used to represent the first attack operation and the second attack identifier is used to represent the second attack operation.

7. The method according to claim 1, characterized in that, Display at least one operation option, including: If at least one operation option includes an operation option corresponding to the first attack operation, the operation option corresponding to the first attack operation will be highlighted, wherein the highlighted operation option cannot be selected; or... If at least one operation option includes an operation option corresponding to the first attack operation, the operation option corresponding to the first attack operation will be displayed in grayscale, wherein the grayscale operation option cannot be selected.

8. The method according to claim 1, characterized in that, After displaying at least one operation option, the method further includes: If the button icon of the virtual operation button is detected to be dragged to the area where the operation option corresponding to the second attack operation is located, the operation option corresponding to the second attack operation will be highlighted.

9. The method according to claim 1, characterized in that, After the second operation option is displayed in the virtual operation button, the method further includes: Upon detecting a second touch operation, the updated at least one operation option is displayed, wherein the updated at least one operation option includes the operation option corresponding to the first attack operation, but does not include the operation option corresponding to the second attack operation; In response to a selection operation performed on the operation option corresponding to the third attack operation among the updated at least one operation options, the virtual operation button is switched to control the target virtual character to perform the third attack operation.

10. The method according to claim 1, characterized in that, When displaying at least one operation option, the method further includes: In response to the target operation performed on the virtual operation button, the target virtual character is controlled to perform the first attack operation.

11. The method according to any one of claims 1 to 10, characterized in that, After the second operation option is displayed in the virtual operation button, the method further includes: Continue displaying the at least one operation option; In response to a selection operation performed on the operation option corresponding to the fourth attack operation among the at least one operation options, the virtual operation button is switched to control the target virtual character to perform the fourth attack operation.

12. An operation switching device, characterized in that, include: The first display unit is used to display a virtual game screen, a virtual joystick, and virtual operation buttons. The virtual operation buttons are used to control the target virtual character to perform a first attack operation, and the virtual joystick is used to control the target virtual character to move. The second display unit is configured to, in response to the virtual joystick moving to the target area, display at least one operation option in a display area associated with the virtual operation button, wherein each of the at least one operation option represents an attack operation that allows the target virtual character to be controlled via the virtual operation button; The first switching unit is configured to, upon detecting a click operation on the virtual operation button, acquire an attackable character within the attack range of the first attack operation; if the attackable character is included within the attack range, control the target virtual character to perform the first attack operation; if the attackable character is not included within the attack range, maintain the current operation state of the target virtual character. The function is configured to, upon detecting that dragging the virtual operation button to the display area corresponds to a second operation option for the second attack operation, de-display at least one of the operation options in the display area and display the second operation option in the virtual operation button; In response to the triggering of the second operation option, the target virtual character is controlled to perform the second attack operation; when the second attack operation is completed and the target virtual character is in combat, at least one of the operation options is restored to be displayed in the display area.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method described in any one of claims 1 to 11.

14. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 11.

15. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 11 through the computer program.

Citation Information

Patent Citations

  • Multi-resource game touch operation method and device, storage medium and terminal

    CN109568938A

  • Mobile control method and device for virtual character in game

    CN110270086A

  • Method and device for switching virtual props in game and touch terminal

    CN113457157A