Method and apparatus for controlling virtual object, storage medium, and electronic device

By responding to touch operations on the terminal device and determining operation instructions based on the touch area, the problem in the prior art that the virtual object cannot be controlled to execute different operation instructions based on the same touch operation is solved, and the gaming experience is improved.

WO2025086956A1PCT designated stage expired Publication Date: 2025-05-01NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/120122
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-10-24
Filing Date
2024-09-20
Publication Date
2025-05-01

AI Technical Summary

Technical Problem

The prior art cannot control the virtual object to execute different operation instructions based on the same touch operation, resulting in a reduced player gaming experience.

Method used

By executing a software application on a processor of the terminal device, in response to the current touch operation of the graphical user interface, the target operation instruction is determined according to the first touch area of ​​the touch operation in the graphical user interface, and the target virtual object is controlled to execute the operation instruction in the game scene.

Benefits of technology

It realizes the control of the target virtual object to execute operation instructions corresponding to the current touch operation based on the first touch area, which improves the player's gaming experience during the game and solves the problem that a single touch operation can only perform a single type of operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024120122_01052025_PF_FP_ABST
    Figure CN2024120122_01052025_PF_FP_ABST
Patent Text Reader

Abstract

A method and apparatus for controlling a virtual object, a storage medium, and an electronic device, relating to the technical field of human-computer interaction. The method comprises: in response to a current touch operation for a graphical user interface, on the basis of a first touch area of the current touch operation in the graphical user interface, determining a target operation instruction corresponding to the current touch operation; and controlling a target virtual object in a current game scene to execute the target operation instruction in the current game scene. The method solves the problem that the virtual object cannot be controlled to execute different operation instructions on the basis of a same touch operation, improving the game experience of a player during a game.
Need to check novelty before this filing date? Find Prior Art

Description

Virtual object control method and device, storage medium, and electronic device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This disclosure claims priority to Chinese patent application number 202311386444.9, filed on October 24, 2023, entitled “Virtual Object Control Method and Device, Storage Medium, and Electronic Device,” the entire contents of which are incorporated herein by reference. Technical Field

[0003] The embodiments of the present disclosure relate to the field of human-computer interaction technology, and in particular, to a method for controlling a virtual object, a device for controlling a virtual object, a computer-readable storage medium, and an electronic device. Background Art

[0004] In related virtual object control methods, a single touch operation can only control a virtual object to execute a single-dimensional instruction; for example, one touch operation controls the virtual object to move, while another touch operation controls the virtual object to shoot, and so on. However, these methods cannot control the virtual object to execute different operation instructions based on the same touch operation, thereby reducing the player's gaming experience.

[0005] Summary of the Invention

[0006] The purpose of the present disclosure is to provide a method for controlling a virtual object, a device for controlling a virtual object, a computer-readable storage medium, and an electronic device, thereby overcoming, at least to a certain extent, the problem of being unable to control a virtual object to execute different operation instructions based on the same touch operation due to the limitations and defects of the relevant technology.

[0007] According to one aspect of the present disclosure, a method for controlling a virtual object is provided. The method comprises executing a software application on a processor of a terminal device and rendering a graphical user interface on a touch display of the terminal device. The content displayed by the graphical user interface at least partially includes a current game scene, and the current game scene includes at least one virtual object. The method for controlling the virtual object comprises:

[0008] In response to a current touch operation on the graphical user interface, determining a target operation instruction corresponding to the current touch operation according to a first touch area of ​​the current touch operation in the graphical user interface;

[0009] Control the target virtual object in the current game scene to execute the target operation instruction in the current game scene.

[0010] According to one aspect of the present disclosure, a device for controlling a virtual object is provided. The device executes a software application on a processor of a terminal device and renders a graphical user interface on a touch display of the terminal device. The content displayed by the graphical user interface at least partially includes a current game scene, and the current game scene includes at least one virtual object. The device for controlling the virtual object includes:

[0011] a target operation instruction determining module configured to execute, in response to a current touch operation on the graphical user interface, determining a target operation instruction corresponding to the current touch operation according to a first touch area of ​​the current touch operation in the graphical user interface;

[0012] The operation instruction execution module is configured to execute and control the target virtual object in the current game scene to execute the target operation instruction in the current game scene.

[0013] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the computer program implements any one of the above-mentioned methods for controlling a virtual object.

[0014] According to one aspect of the present disclosure, there is provided an electronic device, including:

[0015] processor; and

[0016] a memory for storing executable instructions of the processor;

[0017] The processor is configured to execute any one of the above-mentioned methods for controlling a virtual object by executing the executable instructions.

[0018] A method for controlling a virtual object provided by an embodiment of the present disclosure, on the one hand, can determine a target operation instruction corresponding to the current touch operation based on a first touch area of ​​the current touch operation in the graphical user interface in response to a current touch operation on a graphical user interface; finally, control a target virtual object in a current game scene to execute the target operation instruction in the current game scene, thereby achieving control of the target virtual object to execute the operation instruction corresponding to the current touch operation based on the first touch area, thereby solving the problem in the related art that a virtual object cannot be controlled to execute different operation instructions based on the same touch operation, allowing a player to execute a corresponding touch operation and thereby generate a corresponding touch area according to the instruction actually desired to be triggered, thereby improving the player's gaming experience during the game; on the other hand, since the target operation instruction corresponding to the current touch operation can be determined based on the first touch area of ​​the current touch operation in the graphical user interface, and then control the target virtual object in the current game scene to execute the target operation instruction in the current game scene, thereby achieving precise control of the target virtual object while achieving flexible control of the operation instruction executed by the target virtual object. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and those skilled in the art can derive other drawings based on these drawings without inventive effort.

[0020] FIG1 schematically shows a flow chart of a method for controlling a virtual object according to one embodiment of the present disclosure.

[0021] FIG2 schematically shows an example diagram of a scene associated with a current game scene according to one embodiment of the examples of the present disclosure.

[0022] FIG3 schematically illustrates an example diagram of a scenario associated with a skill thumbnail according to one embodiment of the examples disclosed herein.

[0023] FIG4 schematically shows a flowchart of a method for determining a specific process of a preset area threshold according to one embodiment of the examples of the present disclosure.

[0024] FIG5 schematically shows an example diagram of a scene associated with a touchable area according to one embodiment of the examples of the present disclosure.

[0025] FIG6 schematically illustrates an example diagram of a touch operation scenario for controlling a target virtual object to execute a first operation instruction according to one embodiment of the examples of the present disclosure.

[0026] FIG7 schematically illustrates an example diagram of a touch operation scenario for controlling a target virtual object to execute a second operation instruction according to one embodiment of the examples of the present disclosure.

[0027] FIG8 schematically shows an example diagram of a scene for controlling a target virtual object to perform a movement operation according to one embodiment of the examples of the present disclosure.

[0028] FIG9 schematically shows an example diagram of a scene for controlling a target virtual object to perform an aiming operation according to one embodiment of the examples of the present disclosure.

[0029] FIG10 schematically shows an example diagram of a scene for controlling a target virtual object to perform a shooting operation according to one embodiment of the examples of the present disclosure.

[0030] FIG11 schematically shows a block diagram of a device for controlling a virtual object according to one embodiment of the present disclosure.

[0031] FIG12 schematically illustrates an electronic device for implementing the above-mentioned method for controlling a virtual object according to one embodiment of the examples of the present disclosure. DETAILED DESCRIPTION

[0032] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the present disclosure will be more comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or that other methods, components, devices, steps, etc. may be employed. In other cases, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0033] In addition, the accompanying drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. Identical reference numerals in the figures denote identical or similar parts, and thus repetitive descriptions thereof will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0034] Among relevant shooting games, FPS (First Person Shooting) / TPS (Third Person Shooting) are mostly presented in a horizontal screen format; that is, during the actual game process, players can control the objects in the game to perform corresponding operations in the horizontal screen mode. At the same time, if the horizontal screen mode is changed to the vertical screen mode, and then the virtual objects in the game are controlled by a single finger, since a single touch operation can only control the virtual object to perform a single type of operation, it is impossible to realize different types of control and perform different operations in the scenario of a single touch operation. In the horizontal screen format, if different operations are to be performed at the same time, the left and right hands need to cooperate; for example, the left hand slides to control the character's movement, the right hand slides to aim, and an additional button is required to click to shoot. However, in the vertical screen scenario, one hand cannot cooperate to complete the above operations.

[0035] Based on this, the exemplary embodiments of the present disclosure first provide a method for controlling a virtual object, which can be configured on a terminal device, which can include a mobile terminal, a computer terminal, or a similar computing device. Specifically, taking running on a mobile terminal as an example, the mobile terminal can be a smartphone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, referred to as MID), a PAD, and other terminal devices. The mobile terminal may include one or more processors (the processor may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microprocessor (MCU), a programmable logic device (FPGA), a neural network processor (NPU), a tensor processing unit (TPU), an artificial intelligence (AI) type processor, etc.) and a memory for storing data. Optionally, the above-mentioned mobile terminal may also include a transmission device, an input and output device, and a display device for communication functions. It will be understood by those skilled in the art that the above-mentioned structural description is only illustrative and does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal may also include more or fewer components than the above-mentioned structural description, or have a configuration different from the above-mentioned structural description.

[0036] In an example embodiment, the method for controlling virtual objects described in the example embodiments of the present disclosure requires executing a software application on a processor of a terminal device and rendering a graphical user interface on a touch display of the terminal device, wherein the content displayed by the graphical user interface at least partially includes a game scene, and the game scene may include one or more virtual objects, wherein the software application described herein may be an application for a shooting game, or other game application including an aiming and shooting function; the game scene may be a shooting scene corresponding to the game, and the target virtual object described herein may be a virtual character object and / or a virtual animal object; that is, in an actual game, it may be a shooting scene of a virtual character or a shooting scene of a virtual animal, and this example does not impose any special restrictions on this; further, the same game scene may include both target virtual objects controlled by the terminal device on this end and other virtual objects controlled by terminal devices on other ends, and this example does not impose any special restrictions on this.

[0037] In an exemplary embodiment, the control method of a virtual object described in the exemplary embodiment of the present disclosure can be run not only on a terminal device, but also on a server; at the same time, when the control method of a virtual object is run on a server, it can be a cloud game.

[0038] In an optional embodiment, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the operating entity of the game program and the entity presenting the game screen are separated. The storage and operation of the information interaction method in the game are completed on the cloud gaming server. The terminal device is used to receive and send data and present the game screen. For example, the terminal device can be a display device with data transmission function close to the user side, such as a mobile terminal, TV, computer, PDA, etc.; but the terminal device that processes the game data is the cloud gaming server in the cloud. When playing the game, the target player operates the terminal device to send operation instructions to the cloud gaming server. The cloud gaming server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the terminal device through the network. Finally, the terminal device decodes and outputs the game screen.

[0039] In an optional embodiment, the terminal device may be a local terminal device. The terminal device is an electronic device with touch functionality, such as a smartphone. The local terminal device stores the game program and is used to present the game screen. The local terminal device is used to interact with the player via a graphical user interface (GUI), i.e., the game program is downloaded, installed, and run via a conventional electronic device. The local terminal device may present the GUI to the player in a variety of ways, such as by rendering it on the terminal device's display screen or by presenting it to the player via holographic projection. For example, the local terminal device may include a display screen and a processor. The display screen is used to present the GUI, which includes a portion of a virtual game space. The processor is used to run the game, generate the GUI, and control the display of the GUI on the display screen. The content displayed in the GUI includes the game screen, which may be a portion of a virtual game scene. The terminal device can respond to touch operations applied to the control area of ​​the GUI to control the player-controlled character to perform virtual actions in the virtual game scene, such as moving within the virtual game scene or releasing skills. The virtual game scene may include any one or more of the following game elements: terrain, rocks, flowers, rivers, buildings, virtual objects, game props, etc.

[0040] Generally speaking, a virtual camera is set up in the virtual game scene, and the game screen displayed on the graphical user interface is a portion of the virtual game scene content captured by the virtual camera. If an account of a game character controlled by a player is logged into the terminal device, the game character controlled by the player is controlled by the terminal device.

[0041] The game involved in the exemplary embodiments of the present disclosure may include the same battle camp and the opposite battle camp. Both the same battle camp and the opposite battle camp may include one or more virtual objects. The virtual objects in the same battle camp and the virtual objects in the opposite battle camp are in an antagonistic relationship with each other. The virtual objects may be game characters controlled by the player or game characters not controlled by the player. The game character controlled by the player is a game character to which the player sends control instructions through a terminal device, and the game character is controlled to perform corresponding actions according to the control instructions. The game character not controlled by the player is an artificial intelligence (AI) set in a virtual environment through training, or a non-player character (NPC) set in a virtual scene battle. During the game, the terminal device or server generates control instructions for the game character not controlled by the player according to the changes in the virtual game scene, so that the game character not controlled by the player performs corresponding actions according to the control instructions.

[0042] In an exemplary embodiment, referring to FIG1 , the method for controlling a virtual object may include the following steps:

[0043] Step S110. In response to a current touch operation on the graphical user interface, determining a target operation instruction corresponding to the current touch operation according to a first touch area of ​​the current touch operation in the graphical user interface;

[0044] Step S120: Control the target virtual object in the current game scene to execute the target operation instruction in the current game scene.

[0045] In the above-mentioned method for controlling virtual objects, on the one hand, since the target operation instruction corresponding to the current touch operation can be determined according to the first touch area of ​​the current touch operation in the graphical user interface in response to the current touch operation on the graphical user interface; finally, the target virtual object in the current game scene is controlled to execute the target operation instruction in the current game scene, thereby realizing the control of the target virtual object to execute the operation instruction corresponding to the current touch operation based on the first touch area, thereby solving the problem in the related art that the virtual object cannot be controlled to execute different operation instructions based on the same touch operation, so that the player can execute the corresponding touch operation according to the instruction actually wanted to trigger and thus generate the corresponding area, thereby improving the player's gaming experience during the game; on the other hand, since the target operation instruction corresponding to the current touch operation can be determined according to the first touch area of ​​the current touch operation in the graphical user interface, then the target virtual object in the current game scene is controlled to execute the target operation instruction in the current game scene, thereby realizing precise control of the target virtual object while achieving flexible control of the operation instruction executed by the target virtual object.

[0046] Hereinafter, the method for controlling a virtual object according to an exemplary embodiment of the present disclosure will be further explained and illustrated with reference to the accompanying drawings.

[0047] First, the application scenarios of the example embodiments of the present disclosure are explained and illustrated. Specifically, the control method of the virtual object recorded in the example embodiments of the present disclosure can be applied to a shooting game scene in a portrait mode or a shooting game scene in a landscape mode; specifically, in a shooting game scene in a portrait mode or a landscape mode, the target virtual object is controlled to move in the game scene by a single finger, and at the same time, without releasing the finger, the contact area between the finger and the graphical user interface is changed to change the state of controlling the target virtual object to perform a moving operation in the current game scene to controlling the target virtual object to perform an aiming operation in the current game scene; in this way, a smooth transition from controlling the target virtual object in a moving operation to an aiming operation can be achieved, thereby achieving the purpose of improving the player's gaming experience during the game. At the same time, the shooting game scene recorded here can be a shooting game or other types of games that include shooting gameplay.

[0048] Secondly, the current game scene recorded in the example embodiment of the present disclosure is explained and illustrated. Specifically, with reference to FIG2 , the current game scene recorded in the example embodiment of the present disclosure may include a target virtual object 201, and may also include a virtual scene 202 and a skill thumbnail display area 203. Specifically, during the actual game process, the target virtual object may be controlled to move to the corresponding scene position, and then the target virtual object may be controlled to aim and shoot; at the same time, the virtual scene may include a specific shooting target, and of course the shooting target may also be other virtual objects, such as a virtual object controlled by an enemy player, etc. This example does not impose any special restrictions on this; further, with reference to FIG3 , the skill thumbnail may include an area 301 for displaying the approximate position of the virtual character in the game scene, an area 302 for displaying the prop information held by the target virtual object, and an area 303 for displaying the information of the currently used weapon, etc.

[0049] The following will explain and illustrate the specific process of determining the preset area threshold involved in the exemplary embodiment of the present disclosure in conjunction with Figure 4. Specifically, with reference to Figure 4, the specific process of determining the preset area threshold may include the following steps:

[0050] Step S410, obtaining historical player data, and extracting historical game scenes and historical touch operation data included in the historical player data;

[0051] Step S420, obtaining the historical area of ​​the historical touch region included in the historical touch operation data, and the historical virtual object targeted by the historical touch operation;

[0052] Step S430, training the network model to be trained according to the historical area, historical virtual objects, and historical game scene objects to obtain an area prediction model;

[0053] Step S440: Determine the preset area threshold based on the area prediction model and the current scene mode of the current game scene.

[0054] Below, step S410 to step S440 will be explained and illustrated. Specifically, in the actual application process, first, historical player data can be obtained from the game server; wherein, the historical player data here can be generated during the game testing process, or after the game is launched, and this example does not impose special restrictions on this; then, the historical game scenes and historical touch operation data included in the historical player data can be extracted; wherein, the historical game scenes recorded here can include actual game scenes, and can also include the display mode used to display the actual scene, and the display mode can include a horizontal display mode or a vertical display mode; then, determine the historical area of ​​the historical touch area corresponding to the historical touch operation and when the historical touch area of ​​the historical touch operation reaches When the historical area is calculated, the operation instructions executed by it; wherein, the reason why historical virtual objects are used here is only to distinguish them from target virtual objects, and there is no other special meaning; at the same time, the historical virtual objects can also include virtual characters, virtual animals, virtual objects, etc.; further, a training data set can be constructed based on the historical area, historical virtual objects and historical game scene objects, and the network model to be trained can be trained based on the training data set to obtain an area prediction model; wherein, the network model to be trained recorded here can include a convolutional neural network model, a recurrent neural network model, a deep neural network model and a decision tree model, etc., and this example does not impose special restrictions on this. Finally, after obtaining the area prediction model, the current scene mode of the current game scene can be input into the area prediction model to obtain the preset area threshold. In this way, the preset area threshold can be adaptively adjusted under different scene modes, thereby further improving the user experience of game players.

[0055] Furthermore, in one possible example embodiment, the preset area threshold may also be determined based on a weighted average of the historical areas controlled by the corresponding virtual objects in the corresponding historical game scenes. This example does not impose any specific limitations on this. Of course, the preset area threshold may also be predetermined by the game developer or provided as a number of options for players to choose from. Players may also directly customize it based on their finger size and touch habits.

[0056] The following will further explain and illustrate the control method of the virtual object shown in FIG1 in conjunction with FIG2 to FIG4. Specifically:

[0057] In step S110 , in response to a current touch operation on the graphical user interface, a target operation instruction corresponding to the current touch operation is determined according to a first touch area of ​​the current touch operation in the graphical user interface.

[0058] Specifically, during the actual game process, referring to Figure 5, the current touch operation can be implemented in the touchable area provided in the graphical user interface; wherein, the touchable area recorded here can be the middle area shown in Figure 5, or the upper half area, the lower half area or the entire area, or a visual operation control can be provided for the player to perform touch operations, and this example does not impose any special restrictions on this; further, when the system detects the current touch operation acting on the graphical user interface, it can determine the first touch area of ​​the current touch operation in the graphical user interface, and this example does not impose any special restrictions on the specific determination method.

[0059] Specifically, determining the target operation instruction corresponding to the current touch operation based on the first touch area of ​​the current touch operation in the graphical user interface can be achieved in the following way: judging whether the first touch area is greater than or equal to a preset area threshold; if the first touch area is less than the preset area threshold, determining that the target operation instruction corresponding to the current touch operation is the first operation instruction; if the first touch area is greater than or equal to the preset area threshold, determining that the target operation instruction corresponding to the current touch operation is the second operation instruction.

[0060] In an exemplary embodiment, determining the first touch area can be achieved by: determining the number of touch points of the regional touch points included in the current touch operation, and obtaining the unit area of ​​the regional touch points; and determining the first touch area based on the number of touch points and the unit area of ​​the regional touch points.

[0061] The specific determination process of the target operation instruction will be further explained and illustrated below. Specifically, in the actual application process, in order to achieve accurate control of the target virtual object based on the target operation instruction corresponding to the current touch operation, it is first necessary to determine the game player's intention based on the first touch area of ​​the current touch operation in the graphical user interface; under this premise, it is first necessary to determine the first touch area; specifically, in the process of determining the first touch area, it can be determined based on the corresponding touch points (also known as contact points), such as the first touch area can be obtained based on the unit area of ​​the contact points and the number of contact points; further, after obtaining the first touch area, it can be accurately determined based on the first touch area that the game player needs to perform based on the current touch operation. The target virtual object is controlled by the operation to execute which instruction. Meanwhile, in the process of determining the target operation instruction, it can first be determined whether the first touch area is greater than or equal to a preset area threshold. If the first touch area is less than the preset area threshold, the target operation instruction corresponding to the current touch operation is determined to be the first operation instruction. The touch operation scenario corresponding to the first operation instruction of the control target virtual object can be shown in FIG6. If the first touch area is greater than or equal to the preset area threshold, the target operation instruction corresponding to the current touch operation is determined to be the second operation instruction. The touch operation scenario corresponding to the second operation instruction of the control target virtual object can be shown in FIG7. When the first touch area is less than the preset area threshold, it is generally a normal touch operation state of the player, and the corresponding operation instruction is generally a high-frequency operation of the player. When the first touch area is greater than or equal to the preset area threshold, it is generally a state different from a normal touch operation, and the corresponding operation instruction is generally not a high-frequency operation of the player.

[0062] Furthermore, it should be noted that determining the target operation instruction corresponding to the current touch operation based on the first touch area of ​​the current touch operation in the graphical user interface can also be achieved in the following way: judging whether the first touch area is greater than or equal to a preset area threshold; if the first touch area is less than the preset area threshold, determining that the target operation instruction corresponding to the current touch operation is the second operation instruction; if the first touch area is greater than or equal to the preset area threshold, determining that the target operation instruction corresponding to the current touch operation is the first operation instruction; in actual application, the corresponding control rules can be set according to actual needs, and this example does not impose any special restrictions on this.

[0063] In step S120, the target virtual object in the current game scene is controlled to execute the target operation instruction in the current game scene.

[0064] Specifically, controlling the target virtual object in the current game scene to execute the target operation instruction in the current game scene can be achieved as follows: if the target operation instruction corresponding to the current touch operation is a first operation instruction, then controlling the target virtual object in the current game scene to execute a move operation in the current game scene; if the target operation instruction corresponding to the current touch operation is a second operation instruction, then controlling the target virtual object in the current game scene to execute an aiming operation in the current game scene. That is, if the game player needs to control the target virtual object to move through the current touch operation, then the current touch operation with a smaller touch area can be used to directly control the target virtual object to perform a corresponding move operation in the current game scene; if the game player needs to aim the target virtual object through the current touch operation, then the current touch operation with a larger touch area can be used to directly control the target virtual object to perform a corresponding aiming operation in the current game scene; in this way, the purpose of moving and aiming can be achieved with a single finger.

[0065] In an exemplary embodiment, controlling the target virtual object in the current game scene to perform a movement operation in the current game scene can be achieved in the following manner: in response to the current touch operation on the graphical user interface, determining a first termination touch position corresponding to the current touch operation; and controlling the target virtual object to perform a movement operation in the current game scene based on the first termination touch position. That is, in actual application, the movement operation of the virtual character in the current game scene can be controlled based on the touchable area provided in the graphical user interface; wherein, the specific control scene can be shown in FIG8 . Of course, it should be supplemented here that the distance moved by the target virtual object in the current game scene can be determined based on the distance difference between the first termination touch position and the first starting touch position; the direction of the target virtual object moving in the current game scene can be determined based on the direction vector between the first termination touch position and the first starting touch position.

[0066] In an exemplary embodiment, controlling the target virtual object in the current game scene to perform an aiming operation in the current game scene can be achieved in the following manner: in response to the current touch operation on the graphical user interface, determining a second termination touch position corresponding to the current touch operation; and controlling the target virtual object to perform an aiming operation in the current game scene based on the second termination touch position. That is, in actual application, the aiming operation of the target virtual object in the current game scene can be controlled based on the touchable area provided in the graphical user interface; wherein, the specific control scenario can be shown in FIG9 . Of course, it should be supplemented here that the lens switching angle and lens switching direction of the virtual object during the aiming process can be determined based on the distance difference between the second termination touch position and the second starting touch position and the direction vector.

[0067] In a possible example embodiment, during the actual game, there will be a variety of different scenario requirements as follows: one is that you only need to control the target virtual object to move to the corresponding position to perform the shooting task; another is that you only need to control the target virtual object to aim at the target position to perform the shooting task; there is also a possibility that you first need to control the target virtual object to move to the corresponding position, and then control the target virtual object to aim in order to achieve the shooting task; of course, one possibility is not ruled out, that is, first aim, then move, then aim, then move, then aim again, and so on, in a cycle, and this example does not impose any special restrictions on this. Under this premise, the control method of the virtual object described above can be applied to the first, second, and third methods, that is, directly controlling the target virtual object to perform the corresponding operation according to the first contact area; for the third case, it can also be achieved in the following way:

[0068] First, at a preset time interval, a second touch area of ​​the current touch operation in the graphical user interface is obtained. Second, when it is determined that the second touch area is less than a preset area threshold, a target virtual object in the current game scene is controlled to perform a move operation in the current game scene. Then, when it is determined that the second touch area is greater than or equal to the preset area threshold, the target virtual object in the current game scene is controlled to perform an aiming operation in the current game scene. In other words, the second touch area of ​​the current touch operation in the graphical user interface can be obtained at a preset time interval, and then, based on the second touch area, whether the game player's intention has changed is determined. The preset time interval described herein can be a time period of milliseconds or microseconds, and this example does not impose any specific limitations on this. Furthermore, if a change in the second touch area is detected (e.g., from being greater than or equal to the preset area threshold to being less than the preset area threshold, or from being less than the preset area threshold to being greater than the preset area threshold), the target operation instruction corresponding to the current touch operation can be switched from the first operation instruction to the second operation instruction, or vice versa, and this example does not impose any specific limitations on this. Based on this, in the scenario of single-finger operation, it is possible to achieve seamless connection between the movement operation and the aiming operation of the target virtual object in the current game scene, thereby further improving the gaming experience of gamers during the game.

[0069] In an exemplary embodiment, after the aiming operation is completed, a shooting operation needs to be performed. Based on this, the control method of the virtual object may further include: in response to the end of the current touch operation, controlling the target virtual object to perform a shooting operation on the target position corresponding to the aiming operation in the current game scene; or when detecting that there is a shootable object at the target position corresponding to the aiming operation, controlling the target virtual object to perform a shooting operation on the target position corresponding to the aiming operation in the current game scene. That is, in the actual game process, in order to achieve the purpose of shooting, it can be achieved in the following two ways: one is that when the game player determines that the aiming position is consistent with the target position to be shot, the current touch operation can be released, and a shooting instruction is generated at the same time as the current touch operation is released, so that the system controls the target virtual object to use the current weapon (such as a bow and arrow, gun, cannon, bomb, etc.) to shoot at the target position based on the instruction; wherein, the interface display diagram of the specific shooting result can be shown in Figure 10, at this time, the player has stopped the current touch operation and just released the finger that was touching the touch screen. Another is that for situations where continuous shooting is required, the system will automatically match the target position of the aiming operation with the shootable object. If there is a shootable object at the target position, the target virtual object will be controlled to shoot (it can be either a single shot or continuous shooting, that is, as long as the current touch operation is not released, it will continue to shoot).

[0070] Furthermore, it should be noted that during the shooting operation, the movement trajectory of arrows, bullets and other shooting objects can be determined based on the virtual scene position corresponding to the target position and the position of the target virtual object in the virtual scene, which can achieve straight-line shooting or curved shooting, etc. This example does not impose any special restrictions on this.

[0071] At this point, the virtual object control methods described in the exemplary embodiments of this disclosure have been fully implemented. Based on the foregoing, it can be seen that the virtual object control methods described in the exemplary embodiments of this disclosure can solve the pain point of players being unable to simultaneously control movement and aiming and shooting with one hand in vertical or horizontal screen games. This allows the three-dimensional operations of movement, aiming, and shooting to be smoothly connected with a single finger, thereby achieving the goal of improving the player's gaming experience.

[0072] The following are embodiments of the apparatus of the present disclosure, which are configured to perform the embodiments of the method of the present disclosure. For details not disclosed in the apparatus embodiments of the present disclosure, please refer to the embodiments of the method of the present disclosure.

[0073] The exemplary embodiments of the present disclosure also provide a device for controlling a virtual object, which executes a software application on a processor of a terminal device and renders a graphical user interface on a touch display of the terminal device. The content displayed by the graphical user interface at least partially includes the current game scene, and the current game scene includes one or more virtual objects. Specifically, referring to FIG11 , the device for controlling a virtual object may include a target operation instruction determination module 1110 and an operation instruction execution module 1120. Among them:

[0074] a target operation instruction determining module 1110 configured to, in response to a current touch operation on the graphical user interface, determine a target operation instruction corresponding to the current touch operation according to a first touch area of ​​the current touch operation in the graphical user interface;

[0075] The operation instruction execution module 1120 is configured to execute and control the target virtual object in the current game scene to execute the target operation instruction in the current game scene.

[0076] In an exemplary embodiment of the present disclosure, a target operation instruction corresponding to the current touch operation is determined based on the first touch area of ​​the current touch operation in the graphical user interface, including: judging whether the first touch area is greater than or equal to a preset area threshold; if the first touch area is less than the preset area threshold, determining that the target operation instruction corresponding to the current touch operation is the first operation instruction; if the first touch area is greater than or equal to the preset area threshold, determining that the target operation instruction corresponding to the current touch operation is the second operation instruction.

[0077] In an exemplary embodiment of the present disclosure, the first operation instruction includes a moving operation instruction, and the second operation instruction includes a pointing operation instruction.

[0078] In an exemplary embodiment of the present disclosure, controlling the target virtual object in the current game scene to execute the target operation instruction in the current game scene includes: if the target operation instruction corresponding to the current touch operation is a first operation instruction, controlling the target virtual object in the current game scene to execute a moving operation in the current game scene; if the target operation instruction corresponding to the current touch operation is a second operation instruction, controlling the target virtual object in the current game scene to execute an aiming operation in the current game scene.

[0079] In an exemplary embodiment of the present disclosure, the control device for the virtual object further includes:

[0080] a second touch area determination module configured to execute, at intervals of a preset time period, obtaining a second touch area of ​​the current touch operation in the graphical user interface;

[0081] A first control module is configured to control a target virtual object in a current game scene to perform a movement operation in the current game scene when it is determined that the second touch area is smaller than a preset area threshold;

[0082] The second control module is configured to control the target virtual object in the current game scene to perform an aiming operation in the current game scene when it is determined that the second touch area is greater than or equal to a preset area threshold.

[0083] In an exemplary embodiment of the present disclosure, the control device for the virtual object further includes:

[0084] A third control module is configured to, in response to the end of the current touch operation, control the target virtual object to perform a shooting operation on a target position corresponding to the aiming operation in the current game scene; or

[0085] The fourth control module is configured to control the target virtual object to perform a shooting operation on the target position corresponding to the aiming operation in the current game scene when detecting that a shootable object exists at the target position corresponding to the aiming operation.

[0086] In an exemplary embodiment of the present disclosure, controlling a target virtual object in a current game scene to perform a moving operation in the current game scene includes: determining a first termination touch position corresponding to the current touch operation in response to a current touch operation on the graphical user interface; and controlling the target virtual object to perform a moving operation in the current game scene based on the first termination touch position.

[0087] In an exemplary embodiment of the present disclosure, controlling a target virtual object in a current game scene to perform an aiming operation in the current game scene includes: determining a second termination touch position corresponding to the current touch operation in response to a current touch operation on the graphical user interface; and controlling the target virtual object to perform an aiming operation in the current game scene based on the second termination touch position.

[0088] In an exemplary embodiment of the present disclosure, the preset area threshold is obtained in the following manner: obtaining historical player data, and extracting historical game scenes and historical touch operation data included in the historical player data; obtaining the historical area of ​​the historical touch area included in the historical touch operation data, and the historical virtual objects targeted by the historical touch operations; training the network model to be trained based on the historical area, historical virtual objects, and historical game scene objects to obtain an area prediction model; and determining the preset area threshold based on the area prediction model and the current scene mode of the current game scene.

[0089] In an exemplary embodiment of the present disclosure, the first touch area is obtained by: determining the number of touch points of the regional touch points included in the current touch operation, and obtaining the unit area of ​​the regional touch points; and determining the first touch area based on the number of touch points and the unit area of ​​the regional touch points.

[0090] The specific details of each module in the above-mentioned virtual object control device have been described in detail in the corresponding virtual object control method, and therefore will not be repeated here.

[0091] It should be noted that although several modules or units of the device for action execution are mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.

[0092] Furthermore, although the steps of the method of the present disclosure are described in a particular order in the accompanying drawings, this does not require or imply that the steps must be performed in this particular order, or that all steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0093] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0094] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods, or program products. Therefore, various aspects of the present disclosure may be implemented in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "circuits," "modules," or "systems."

[0095] The electronic device 1200 according to this embodiment of the present disclosure is described below with reference to Figure 12. The electronic device 1200 shown in Figure 12 is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0096] As shown in FIG12 , electronic device 1200 is implemented as a general-purpose computing device. Components of electronic device 1200 may include, but are not limited to, the aforementioned at least one processing unit 1210, the aforementioned at least one storage unit 1220, a bus 1230 connecting various system components (including storage unit 1220 and processing unit 1210), and a display unit 1240.

[0097] The storage unit stores program code, which can be executed by the processing unit 1210, so that the processing unit 1210 performs the steps described in the "Exemplary Method" section of this specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 1210 can perform step S110 as shown in Figure 1: in response to a current touch operation on the graphical user interface, determine a target operation instruction corresponding to the current touch operation based on a first touch area of ​​the current touch operation in the graphical user interface; and step S130: control a target virtual object in the current game scene to execute the target operation instruction in the current game scene.

[0098] The storage unit 1220 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 12201 and / or a cache memory unit 12202 , and may further include a read-only memory unit (ROM) 12203 .

[0099] The storage unit 1220 may also include a program / utility 12204 having a set (at least one) of program modules 12205, such program modules 12205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0100] The bus 1230 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0101] The electronic device 1200 can also communicate with one or more external devices 1300 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1200, and / or any device that enables the electronic device 1200 to communicate with one or more other computing devices (e.g., a router, a modem, etc.). Such communication can occur via an input / output (I / O) interface 1250. Furthermore, the electronic device 1200 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via a network adapter 1260. As shown, the network adapter 1260 communicates with other modules of the electronic device 1200 via a bus 1230. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 1200, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0102] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0103] In exemplary embodiments of the present disclosure, a computer-readable storage medium is also provided, on which is stored a program product capable of implementing the aforementioned methods of this specification. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product comprising program code. When the program product is executed on a terminal device, the program code is configured to cause the terminal device to execute the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of the present disclosure.

[0104] According to an embodiment of the present disclosure, a program product for implementing the above-mentioned method can be a portable compact disc read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0105] The program product may be implemented in any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0106] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0107] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0108] The program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, and the like, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0109] Furthermore, the figures above are merely illustrative of the processes included in the methods according to exemplary embodiments of the present disclosure and are not intended to be limiting. It is readily understood that the processes illustrated in the figures above do not indicate or limit the temporal order of these processes. Furthermore, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0110] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the technical features disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.

Claims

1. A method for controlling a virtual object, wherein a software application is executed on a processor of a terminal device and a graphical user interface is rendered on a touch display of the terminal device, wherein the content displayed by the graphical user interface at least partially includes a current game scene, and the current game scene includes at least one virtual object, and the method for controlling a virtual object comprises: In response to a current touch operation on the graphical user interface, determining a target operation instruction corresponding to the current touch operation according to a first touch area of ​​the current touch operation in the graphical user interface; Control the target virtual object in the current game scene to execute the target operation instruction in the current game scene.

2. The method for controlling a virtual object according to claim 1, wherein: Determining a target operation instruction corresponding to the current touch operation according to a first touch area of ​​the current touch operation in the graphical user interface includes: Determining whether the first touch area is greater than or equal to a preset area threshold; If the first touch area is smaller than a preset area threshold, determining that the target operation instruction corresponding to the current touch operation is the first operation instruction; If the first touch area is greater than or equal to a preset area threshold, the target operation instruction corresponding to the current touch operation is determined to be a second operation instruction.

3. The method for controlling a virtual object according to claim 2, wherein: The first operation instruction includes a moving operation instruction, and the second operation instruction includes a pointing operation instruction.

4. The method for controlling a virtual object according to claim 3, wherein: Controlling a target virtual object in a current game scene to execute the target operation instruction in the current game scene includes: If the target operation instruction corresponding to the current touch operation is the first operation instruction, controlling the target virtual object in the current game scene to perform a moving operation in the current game scene; If the target operation instruction corresponding to the current touch operation is the second operation instruction, the target virtual object in the current game scene is controlled to perform an aiming operation in the current game scene.

5. The method for controlling a virtual object according to claim 4, wherein: After controlling the target virtual object in the current game scene to perform a moving operation in the current game scene, the method for controlling the virtual object further includes: At intervals of a preset time period, obtaining a second touch area of ​​the current touch operation in the graphical user interface; When it is determined that the second touch area is smaller than the preset area threshold, controlling the target virtual object in the current game scene to perform a moving operation in the current game scene; When it is determined that the second touch area is greater than or equal to the preset area threshold, the target virtual object in the current game scene is controlled to perform an aiming operation in the current game scene.

6. The method for controlling a virtual object according to claim 4 or 5, wherein: After controlling the target virtual object in the current game scene to perform an aiming operation in the current game scene, the method for controlling the virtual object further includes: In response to the end of the current touch operation, controlling the target virtual object to perform a shooting operation on a target position corresponding to the aiming operation in the current game scene; or When it is detected that a shootable object exists at the target position corresponding to the aiming operation, the target virtual object is controlled to perform a shooting operation on the target position corresponding to the aiming operation in the current game scene.

7. The method for controlling a virtual object according to claim 4 or 5, wherein: Controlling a target virtual object in a current game scene to perform a moving operation in the current game scene includes: In response to a current touch operation on the graphical user interface, determining a first termination touch position corresponding to the current touch operation; The target virtual object is controlled to perform a moving operation in the current game scene based on the first termination touch position.

8. The method for controlling a virtual object according to claim 4 or 5, wherein: Controlling a target virtual object in a current game scene to perform an aiming operation in the current game scene includes: In response to a current touch operation on the graphical user interface, determining a second End touch position; The target virtual object is controlled to perform an aiming operation in the current game scene based on the second termination touch position.

9. The method for controlling a virtual object according to claim 3, wherein: The preset area threshold is obtained in the following manner: Acquire historical player data, and extract historical game scenes and historical touch operation data included in the historical player data; Acquire the historical area of ​​the historical touch area included in the historical touch operation data, and the historical virtual object targeted by the historical touch operation; Training the network model to be trained according to the historical area, historical virtual objects, and historical game scene objects to obtain an area prediction model; The preset area threshold is determined based on the area prediction model and the current scene mode of the current game scene.

10. The method for controlling a virtual object according to claim 3, wherein: The first touch area is obtained in the following manner: Determine the number of touch points of the regional touch points included in the current touch operation, and obtain the unit area of ​​the regional touch points; The first touch area is determined based on the number of touch points and the unit area of ​​the regional touch points.

11. A control device for a virtual object, wherein a software application is executed on a processor of a terminal device and a graphical user interface is rendered on a touch display of the terminal device, wherein the content displayed by the graphical user interface at least partially includes a current game scene, wherein the current game scene includes at least one virtual object, and the control device for the virtual object comprises: a target operation instruction determination module, configured to execute, in response to a current touch operation on the graphical user interface, determining a target operation instruction corresponding to the current touch operation according to a first touch area of ​​the current touch operation in the graphical user interface; The operation instruction execution module is configured to execute and control the target virtual object in the current game scene to execute the target operation instruction in the current game scene.

12. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for controlling a virtual object according to any one of claims 1 to 10.

13. An electronic device, comprising: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the virtual object control method according to any one of claims 1 to 10 by executing the executable instructions.

Citation Information

Patent Citations

  • Display control method, electronic equipment and storage medium

    CN108196765A

  • Control method and device in shooting game

    CN109663337A

  • Game control method and device, electronic equipment and medium

    CN111330276A

  • Game control method and device, computer storage medium and electronic equipment

    CN111530065A

  • Virtual object control method, device and equipment and storage medium

    CN112717397A