Virtual object control method and device and electronic equipment
By introducing virtual rocker controls in the game, automatically determine climbing parameters and performing jumping behavior based on sliding operations, the complex operation and mistouch problems in the prior art are solved, and the game experience is improved.
Patent Information
- Application Number
- CN202410976950.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-12-06
AI Technical Summary
In existing games, players can control virtual characters to climb and jump in complex operations, with many controls and large graphic user interface area, which can easily lead to mistouching and affect the game experience.
By providing virtual joystick controls in the graphical user interface, switching controls in response to triggered operations, determining climbing parameters based on the sliding position of the virtual joystick and performing climbing or jumping behaviors, simplifying the operation process.
Simplifies players' climbing and jumping operations on virtual objects, reduces the probability of mistaken touching, and improves the game experience.
Smart Images

Figure CN119075310A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of graphical user interfaces, and in particular to a method, device and electronic device for controlling a virtual object. Background Art
[0002] In some games, the virtual character controlled by the player has climbing and jumping skills. In the related art, three controls are set for the player to control the virtual character to climb and jump. The three controls are usually used to control the climbing direction, control the jump, and control the cancellation of climbing. However, this method makes the player's operation control process more complicated, and the area of the graphical user interface occupied by more controls is larger, which is easy to cause accidental touches, thereby making the player's gaming experience poor. Summary of the invention
[0003] In view of this, the purpose of the present disclosure is to provide a method, device and electronic device for controlling a virtual object, so as to make the graphical user interface more concise, make it easier for players to control virtual objects to climb and jump, and improve the player's gaming experience.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for controlling a virtual object, providing a graphical user interface through a terminal device; the graphical user interface displays a game scene where a controlled virtual object is located, and a first control; the method comprises: in response to a trigger operation on the first control, switching the first control to a virtual joystick control; the virtual joystick control comprises a virtual joystick and a moving area where the virtual joystick is located; in response to a sliding operation on the virtual joystick control, determining a target climbing parameter based on the position of the virtual joystick in the moving area, and controlling the controlled virtual object to perform a climbing behavior in the game scene according to the target climbing parameter; in response to the virtual joystick moving out of the moving area, controlling the controlled virtual object to perform a jumping behavior in the game scene.
[0005] In a second aspect, an embodiment of the present disclosure provides a control device for a virtual object, which provides a graphical user interface through a terminal device; the graphical user interface displays a game scene where a controlled virtual object is located, and a first control; the device includes: a control switching module, which is used to switch the first control to a virtual joystick control in response to a trigger operation on the first control; the virtual joystick control includes a virtual joystick and a moving area where the virtual joystick is located; a climbing control module, which is used to respond to a sliding operation on the virtual joystick control, determine target climbing parameters based on the position of the virtual joystick in the moving area, and control the controlled virtual object to perform climbing behavior in the game scene according to the target climbing parameters; and a jumping control module, which is used to control the controlled virtual object to perform jumping behavior in the game scene in response to the virtual joystick moving outside the moving area.
[0006] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned virtual object control method.
[0007] In a fourth aspect, an embodiment of the present invention provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned virtual object control method.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] The above-mentioned method, device and electronic device for controlling a virtual object switch the first control to a virtual joystick control in response to a trigger operation on the first control; the virtual joystick control includes a virtual joystick and a moving area where the virtual joystick is located; in response to a sliding operation on the virtual joystick control, the target climbing parameter is determined based on the position of the virtual joystick in the moving area, and the controlled virtual object is controlled to perform a climbing behavior in the game scene according to the target climbing parameter; in response to the virtual joystick moving outside the moving area, the controlled virtual object is controlled to perform a jumping behavior in the game scene. This method makes the graphical user interface more concise, makes it easier for players to control virtual objects to climb and jump, and improves the game experience of players.
[0010] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or understood by practicing the present disclosure. The purpose and other advantages of the present disclosure are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0011] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0013] Figure 1 A schematic diagram of a graphical user interface in the related art;
[0014] Figure 2 A flowchart of a method for controlling a virtual object provided by an embodiment of the present disclosure;
[0015] Figure 3 A schematic diagram of a graphical user interface provided by an embodiment of the present disclosure;
[0016] Figure 4 A schematic diagram of another graphical user interface provided by an embodiment of the present disclosure;
[0017] Figure 5 A schematic diagram of an operation of controlling a controlled virtual object to climb provided by an embodiment of the present disclosure;
[0018] Figure 6 A schematic diagram of an operation of controlling a controlled virtual object to jump provided by an embodiment of the present disclosure;
[0019] Figure 7 A schematic diagram of an operation of controlling a controlled virtual object to stop climbing provided by an embodiment of the present disclosure;
[0020] Figure 8 A schematic diagram of the structure of a virtual object control device provided by an embodiment of the present disclosure;
[0021] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0023] In mobile games, if players need to control the climbing behavior of a controlled virtual object, three controls (also called "buttons") are usually set in the graphical user interface to control it. Figure 1 As shown in the figure, the virtual joystick on the left controls the climbing direction, followed by the climbing button and the jump button on the right, which can make the character climb or jump upwards. When the climbing and jumping buttons are triggered, the climbing button is displayed as a cancel climbing button, and the climbing state can be canceled by clicking it.
[0024] The player needs to process three buttons when controlling the controlled virtual character to climb. The buttons occupy a large area of the graphical interface, and the player's operating burden is heavy, which can easily lead to accidental touches during the operation.
[0025] Based on this, the embodiments of the present disclosure provide a method, device and electronic device for controlling a virtual object. This technology can be applied to scenarios where players need to control climbing and jumping behaviors during a game.
[0026] The control method of the virtual object in one embodiment of the present invention can be run on a local terminal device or a server. When the control method of the virtual object is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0027] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the control method of the virtual object are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0028] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0029] See also Figure 2First, a method for controlling a virtual object provided by an embodiment of the present invention is introduced, and a graphical user interface is provided through a terminal device. The graphical user interface displays a game scene where a controlled virtual object is located, and a first control. Among them, a player can control the controlled virtual object through the above-mentioned terminal device. In order to prompt the player to control the controlled virtual object to climb by touching the control, information indicating climbing is usually displayed in the first control, such as the word "climb" or an icon indicating climbing. The method includes the following steps:
[0030] Step S202, in response to a trigger operation on the first control, switching the first control to a virtual joystick control; the virtual joystick control includes a virtual joystick and a moving area where the virtual joystick is located.
[0031] The above-mentioned trigger operation can be of various types, such as a click operation, a long press operation, etc., which can be set specifically according to needs and are not limited here. After the first control is triggered by the trigger operation, the first control is switched to a virtual joystick control. The virtual joystick control can also be called a direction wheel, etc. The virtual joystick control consists of a virtual joystick and a moving area. Usually, the virtual joystick can be set to be able to move only in the moving area, or the virtual joystick can be set to be able to move in the moving area and in part of the area outside the moving area. It can be set specifically according to needs and is not set here.
[0032] When the virtual joystick control is not operated, the virtual joystick is usually located at the center of the moving area. The virtual joystick can usually be moved away from the center by a sliding operation on the virtual joystick. The sliding operation usually starts from the initial position of the virtual joystick and controls the virtual joystick to move along with the contact position of the sliding operation. In actual applications, the virtual joystick can also be moved to the clicked position by clicking on the position in the moving area. The specific settings can be made according to the needs and are not limited here.
[0033] Step S204, in response to the sliding operation on the virtual joystick control, based on the position of the virtual joystick in the moving area, the target climbing parameter is determined, and the controlled virtual object is controlled to perform a climbing behavior in the game scene according to the target climbing parameter.
[0034] The target climbing parameter may be a climbing direction, a climbing speed, or both. In the process of controlling the movement of the virtual joystick by sliding operation, if the virtual joystick is in the moving area, the target climbing direction of the controlled virtual object may be determined based on the relative direction between the position of the virtual joystick in the moving area and the center position of the moving area. As for the climbing speed, it may be determined based on the distance between the position of the virtual joystick in the moving area and the center position.
[0035] In the game, the climbing direction may be set to a fixed direction, or the climbing speed may be set to a fixed speed, and then only the target climbing parameters that can be changed may be determined in the above manner.
[0036] Step S206, in response to the virtual joystick moving out of the moving area, controlling the controlled virtual object to perform a jumping behavior in the game scene.
[0037] In order to enable the player to control the jumping behavior of the controlled virtual object by controlling the virtual joystick, when the player moves the virtual joystick outside the moving area, it can be determined that the player wants to control the controlled virtual object to jump. At this time, the controlled virtual object can be controlled to perform the jumping behavior.
[0038] In order to prevent players from making mistakes, the controlled virtual object can be controlled to jump only when the player controls the virtual joystick to move upward outside the moving area. The specific settings can be made according to needs and are not restricted here.
[0039] The above-mentioned method for controlling a virtual object, in response to a trigger operation on a first control, switches the first control to a virtual joystick control; the virtual joystick control includes a virtual joystick and a moving area where the virtual joystick is located; in response to a sliding operation on the virtual joystick control, based on the position of the virtual joystick in the moving area, determines a target climbing parameter, controls the controlled virtual object to perform a climbing behavior in a game scene according to the target climbing parameter; in response to the virtual joystick moving outside the moving area, controls the controlled virtual object to perform a jumping behavior in the game scene. This method makes the graphical user interface more concise, makes it easier for players to control virtual objects to climb and jump, and improves the player's gaming experience.
[0040] The following embodiment provides a specific method for triggering an operation on a first control to switch the first control to a virtual joystick control.
[0041] Compared with a click operation, the possibility of a player accidentally triggering a long press operation is lower. Therefore, the trigger operation for the first control can be set to a long press operation. When the player performs a long press operation on the first control, the first control is switched to a virtual joystick control in response to the long press operation on the first control. The graphical user interface before the switch is as follows Figure 3 As shown, the graphical user interface after switching is as follows Figure 4 shown.
[0042] The following embodiment provides a specific method for determining target climbing parameters based on the position of a virtual joystick in a moving area.
[0043] When the target climbing parameter includes a target climbing direction, if the virtual joystick is in the moving area, the direction from the center of the moving area to the position of the virtual joystick is determined as the target climbing direction. When the target climbing parameter includes a target climbing speed, it is determined according to the distance between the position of the virtual joystick in the moving area and the center of the moving area. The climbing speed is usually proportional to the distance between the two, that is, the farther the virtual joystick is from the center, the greater the climbing speed.
[0044] The following embodiment provides a specific method for controlling a controlled virtual object to perform a jumping behavior in a game scene in response to a virtual joystick moving outside a moving area.
[0045] When the player controls the virtual joystick to move outside the moving area, the controlled virtual object is controlled to perform a jump behavior in the game scene. For example, if the player moves the virtual joystick outside the moving area, and the virtual joystick is located directly above the center position of the moving area (of course, it can also be set in other directions), the controlled virtual object is controlled to continue to perform jumping behavior in the game scene. Specifically, the controlled virtual object can be controlled to jump in the game scene according to a preset frequency, and the jumping frequency can be determined based on the distance between the virtual joystick and the center position. The farther the virtual joystick is from the center position, the higher the frequency of the controlled virtual object's jumping behavior can be controlled, until the preset maximum frequency is reached.
[0046] When the player needs to control the controlled virtual object to stop climbing, the contact point can be directly released. It can also be set that when the player moves the virtual joystick to a specified position in the moving area, it is determined to control the controlled virtual object to stop climbing. In specific implementation, in response to the virtual joystick moving outside the moving area and the virtual joystick is directly below the center position of the moving area (of course, it can also be set in other directions), the controlled virtual object can be controlled to stop climbing.
[0047] After the player controls the controlled virtual object to stop climbing in the above manner, the player needs to move the virtual joystick to the center of the moving area again to determine whether the controlled virtual object will re-execute the climbing behavior. When the player moves the virtual joystick to other positions in the moving area except the center, the target climbing parameters are determined based on the position and the center, and the controlled virtual object is controlled to perform the climbing behavior in the game scene according to the target climbing parameters. The method for determining the target climbing parameters has been discussed above and will not be repeated here.
[0048] The present disclosure also provides another method for controlling a virtual object. Figure 1 The method shown is implemented based on
[0049] In this method, the climbing button and the virtual joystick (also called the "steering wheel") are combined to combine the three action buttons into one button, and different operations are performed according to different gestures.
[0050] (1) When the player presses the Climb button, a direction disc will appear. Drag the button to the corresponding direction to move in that direction. Figure 5 As shown, if you drag it to the upper right, the character will also climb to the upper right.
[0051] (2) Drag the button upwards out of the disc to jump upwards, and the character completes one upward jump and climbing action. If the button is dragged to the upper area outside the disc, the character will repeat the upward jump and climbing action. Figure 6 shown.
[0052] (3) Drag the button downward out of the disc range to cancel the climbing state. Figure 7 shown.
[0053] This method can reduce the number of buttons, making the interface more concise, while reducing the difficulty of operation for players and the probability of misoperation.
[0054] For the above method embodiments, see Figure 8 A control device for a virtual object is shown, which provides a graphical user interface through a terminal device; the graphical user interface displays a game scene where the controlled virtual object is located, and a first control; the device includes:
[0055] A control switching module 802 is used to switch the first control to a virtual joystick control in response to a trigger operation on the first control; the virtual joystick control includes a virtual joystick and a moving area where the virtual joystick is located;
[0056] The climbing control module 804 is used to respond to the sliding operation on the virtual joystick control, determine the target climbing parameters based on the position of the virtual joystick in the moving area, and control the controlled virtual object to perform climbing behavior in the game scene according to the target climbing parameters;
[0057] The jump control module 806 is used to control the controlled virtual object to perform a jump behavior in the game scene in response to the virtual joystick moving outside the movement area.
[0058] The above-mentioned control device for a virtual object switches the first control to a virtual joystick control in response to a trigger operation on the first control; the virtual joystick control includes a virtual joystick and a moving area where the virtual joystick is located; in response to a sliding operation on the virtual joystick control, the target climbing parameter is determined based on the position of the virtual joystick in the moving area, and the controlled virtual object is controlled to perform a climbing behavior in the game scene according to the target climbing parameter; in response to the virtual joystick moving outside the moving area, the controlled virtual object is controlled to perform a jumping behavior in the game scene. This method makes the graphical user interface more concise, makes it easier for players to control virtual objects to climb and jump, and improves the game experience of players.
[0059] The step of switching the first control to a virtual joystick control in response to a trigger operation on the first control includes: switching the first control to a virtual joystick control in response to a long press operation on the first control.
[0060] The above-mentioned target climbing parameters include a target climbing direction; the step of determining the target climbing parameters based on the position of the virtual joystick in the moving area includes: in response to the virtual joystick being in the moving area, determining the direction from the center position of the moving area to the position of the virtual joystick as the target climbing direction.
[0061] The above step of controlling the controlled virtual object to perform a jumping behavior in the game scene in response to the virtual joystick moving outside the moving area includes: controlling the controlled virtual object to perform a jumping behavior in the game scene in response to the virtual joystick moving outside the moving area.
[0062] The above-mentioned step of controlling the controlled virtual object to perform a jumping behavior in the game scene in response to the virtual joystick moving outside the moving area includes: in response to the virtual joystick moving outside the moving area and the virtual joystick is located directly above the center position of the moving area, controlling the controlled virtual object to continue to perform the jumping behavior in the game scene.
[0063] The method further includes: in response to the virtual joystick moving out of the moving area and the virtual joystick being located directly below the center of the moving area, controlling the controlled virtual object to stop climbing.
[0064] After the above-mentioned response to the virtual joystick moving outside the moving area and the virtual joystick being located directly below the center position of the moving area, controlling the controlled virtual object to stop climbing behavior, the above-mentioned method also includes: in response to the virtual joystick moving to the center position of the moving area, determining to control the controlled virtual object to perform climbing behavior; in response to the virtual joystick moving to a first position other than the center position in the moving area, determining target climbing parameters based on the first position and the center position, and controlling the controlled virtual object to perform climbing behavior in the game scene according to the target climbing parameters.
[0065] This embodiment further provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned virtual object control method, for example:
[0066] In response to a trigger operation on a first control, the first control is switched to a virtual joystick control; the virtual joystick control includes a virtual joystick and a moving area where the virtual joystick is located; in response to a sliding operation on the virtual joystick control, based on the position of the virtual joystick in the moving area, a target climbing parameter is determined, and the controlled virtual object is controlled to perform a climbing behavior in a game scene according to the target climbing parameter; in response to the virtual joystick moving out of the moving area, the controlled virtual object is controlled to perform a jumping behavior in the game scene. The target tactical information is related to the first game behavior to be executed and the second game behavior to be executed.
[0067] The above method makes the graphical user interface more concise, makes it easier for players to control virtual objects to climb and jump, and improves the player's gaming experience.
[0068] Optionally, the step of switching the first control to a virtual joystick control in response to a trigger operation on the first control includes: switching the first control to a virtual joystick control in response to a long press operation on the first control.
[0069] Optionally, the above-mentioned target climbing parameters include a target climbing direction; the step of determining the target climbing parameters based on the position of the virtual joystick in the moving area includes: in response to the virtual joystick being in the moving area, determining the direction pointing from the center position of the moving area to the position of the virtual joystick as the target climbing direction.
[0070] Optionally, the step of controlling the controlled virtual object to perform a jumping behavior in the game scene in response to the virtual joystick moving outside the moving area includes: controlling the controlled virtual object to perform a jumping behavior in the game scene in response to the virtual joystick moving outside the moving area.
[0071] Optionally, the above-mentioned step of controlling the controlled virtual object to perform a jumping behavior in the game scene in response to the virtual joystick moving outside the moving area includes: in response to the virtual joystick moving outside the moving area and the virtual joystick being located directly above the center position of the moving area, controlling the controlled virtual object to continue to perform the jumping behavior in the game scene.
[0072] Optionally, the method further includes: in response to the virtual joystick moving out of the moving area and the virtual joystick being located directly below the center position of the moving area, controlling the controlled virtual object to stop climbing.
[0073] Optionally, after controlling the controlled virtual object to stop climbing in response to the virtual joystick moving outside the moving area and the virtual joystick being located directly below the center position of the moving area, the method further includes: determining to control the controlled virtual object to perform climbing behavior in response to the virtual joystick moving to the center position of the moving area; in response to the virtual joystick moving to a first position other than the center position in the moving area, determining target climbing parameters based on the first position and the center position, and controlling the controlled virtual object to perform climbing behavior in the game scene according to the target climbing parameters.
[0074] See also Fig. 9 As shown, the electronic device includes a processor 100 and a memory 101, wherein the memory 101 stores machine executable instructions that can be executed by the processor 100, and the processor 100 executes the machine executable instructions to implement the above-mentioned virtual object control method.
[0075] Further, Fig. 9 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0076] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0077] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.
[0078] This embodiment also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned virtual object control method.
[0079] A method, device and electronic device for controlling a virtual object provided in an embodiment of the present disclosure include a computer-readable storage medium storing a program code, and the program code includes instructions that can be used to execute the method described in the above method embodiments, for example:
[0080] In response to a trigger operation on a first control, the first control is switched to a virtual joystick control; the virtual joystick control includes a virtual joystick and a moving area where the virtual joystick is located; in response to a sliding operation on the virtual joystick control, based on the position of the virtual joystick in the moving area, a target climbing parameter is determined, and the controlled virtual object is controlled to perform a climbing behavior in a game scene according to the target climbing parameter; in response to the virtual joystick moving out of the moving area, the controlled virtual object is controlled to perform a jumping behavior in the game scene. The target tactical information is related to the first game behavior to be executed and the second game behavior to be executed.
[0081] The above method makes the graphical user interface more concise, makes it easier for players to control virtual objects to climb and jump, and improves the player's gaming experience.
[0082] Optionally, the step of switching the first control to a virtual joystick control in response to a trigger operation on the first control includes: switching the first control to a virtual joystick control in response to a long press operation on the first control.
[0083] Optionally, the above-mentioned target climbing parameters include a target climbing direction; the step of determining the target climbing parameters based on the position of the virtual joystick in the moving area includes: in response to the virtual joystick being in the moving area, determining the direction pointing from the center position of the moving area to the position of the virtual joystick as the target climbing direction.
[0084] Optionally, the step of controlling the controlled virtual object to perform a jumping behavior in the game scene in response to the virtual joystick moving outside the moving area includes: controlling the controlled virtual object to perform a jumping behavior in the game scene in response to the virtual joystick moving outside the moving area.
[0085] Optionally, the above-mentioned step of controlling the controlled virtual object to perform a jumping behavior in the game scene in response to the virtual joystick moving outside the moving area includes: in response to the virtual joystick moving outside the moving area and the virtual joystick being located directly above the center position of the moving area, controlling the controlled virtual object to continue to perform the jumping behavior in the game scene.
[0086] Optionally, the method further includes: in response to the virtual joystick moving out of the moving area and the virtual joystick being located directly below the center position of the moving area, controlling the controlled virtual object to stop climbing.
[0087] Optionally, after controlling the controlled virtual object to stop climbing in response to the virtual joystick moving outside the moving area and the virtual joystick being located directly below the center position of the moving area, the method further includes: determining to control the controlled virtual object to perform climbing behavior in response to the virtual joystick moving to the center position of the moving area; in response to the virtual joystick moving to a first position other than the center position in the moving area, determining target climbing parameters based on the first position and the center position, and controlling the controlled virtual object to perform climbing behavior in the game scene according to the target climbing parameters.
[0088] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0089] In addition, in the description of the embodiments of the present disclosure, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.
[0090] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0091] In the description of the present disclosure, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present disclosure. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0092] Finally, it should be noted that the above embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above embodiments, those skilled in the art should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for controlling a virtual object, characterized in that: Providing a graphical user interface through the terminal device; The graphical user interface displays a game scene where a controlled virtual object is located, and a first control; the method comprises: In response to a trigger operation on a first control, the first control is switched to a virtual joystick control; the virtual joystick control includes a virtual joystick and a moving area where the virtual joystick is located; In response to a touch operation on the virtual joystick control, based on the position of the virtual joystick in the moving area, a target climbing parameter is determined, and the controlled virtual object is controlled to perform a climbing behavior in the game scene according to the target climbing parameter; In response to the virtual joystick moving out of the movement area, the controlled virtual object is controlled to perform a jumping behavior in the game scene.
2. The method according to claim 1, characterized in that In response to a trigger operation on a first control, the step of switching the first control to a virtual joystick control includes: In response to a long press operation on a first control, the first control is switched to a virtual joystick control.
3. The method according to claim 1, characterized in that The target climbing parameters include a target climbing direction; The step of determining a target climbing parameter based on the position of the virtual joystick in the moving area comprises: In response to the virtual joystick being in the movement area, a direction from a center position of the movement area to a position of the virtual joystick is determined as a target climbing direction.
4. The method according to claim 1, characterized in that: In response to the virtual joystick moving out of the movement area, the step of controlling the controlled virtual object to perform a jumping behavior in the game scene includes: In response to the virtual joystick moving out of the movement area, the controlled virtual object is controlled to perform a jumping behavior in the game scene.
5. The method according to claim 1, characterized in that In response to the virtual joystick moving out of the movement area, the step of controlling the controlled virtual object to perform a jumping behavior in the game scene includes: In response to the virtual joystick moving out of the moving area and the virtual joystick being located directly above the center of the moving area, the controlled virtual object is controlled to continuously perform a jumping behavior in the game scene.
6. The method according to claim 1, characterized in that The method further comprises: In response to the virtual joystick moving out of the movement area and the virtual joystick being located directly below the center position of the movement area, the controlled virtual object is controlled to stop climbing.
7. The method according to claim 6, characterized in that In response to the virtual joystick moving out of the movement area and the virtual joystick being located directly below the center of the movement area, after controlling the controlled virtual object to stop climbing, the method further includes: In response to the virtual joystick moving to the center position of the moving area, determining to control the controlled virtual object to perform a climbing behavior; In response to the virtual joystick moving to a first position other than the center position in the moving area, target climbing parameters are determined based on the first position and the center position, and the controlled virtual object is controlled to perform climbing behavior in the game scene according to the target climbing parameters.
8. A control device for a virtual object, characterized in that: Providing a graphical user interface through the terminal device; The graphical user interface displays a game scene where a controlled virtual object is located, and a first control; the device comprises: A control switching module, configured to switch the first control to a virtual joystick control in response to a trigger operation on the first control; the virtual joystick control includes a virtual joystick and a moving area where the virtual joystick is located; A climbing control module, for responding to a touch operation on the virtual joystick control, determining a target climbing parameter based on the position of the virtual joystick in the moving area, and controlling the controlled virtual object to perform a climbing behavior in the game scene according to the target climbing parameter; The jumping control module is used to control the controlled virtual object to perform a jumping behavior in the game scene in response to the virtual joystick moving out of the moving area.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the method for controlling a virtual object according to any one of claims 1 to 7.
10. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the virtual object control method according to any one of claims 1 to 7.
