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

By introducing the second type of attack controls and aiming marks into the game, users can shoot guns and release skills at the same time in the game, solving the problem of single gameplay in the existing technology and achieving a richer gaming experience.

CN115193064BActive Publication Date: 2025-02-18SHANGHAI NETEASE CUICAN NETWORK TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210822696.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-12
Publication Date
2025-02-18
Estimated Expiration
2042-07-12

AI Technical Summary

Technical Problem

In the prior art, users are unable to perform firearms and release and use skills while playing a game, resulting in a single gameplay.

Method used

By displaying a graphical user interface, including virtual scenes, target virtual objects, shooting aiming logos and second-class attack controls, responding to the user's touch operation of the second-class attack controls, replacing the shooting aiming logos with the second-class aiming logos, and Control the target virtual object to attack attack virtual objects using the second type of attack method.

Benefits of technology

It realizes the simultaneous firearm shooting and skill release in the game, enhancing the diversity and fun of the game, and improving the gameplay.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115193064B_ABST
    Figure CN115193064B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a control method, device, storage medium and computer equipment for a virtual object, the method comprising: displaying a graphical user interface, the graphical user interface comprising at least part of a virtual scene, a target virtual object located in the virtual scene, a shooting aiming mark and a second type of attack control, the target virtual object is configured with a virtual firearm, and the shooting aiming mark assists the aiming of the virtual firearm; in response to a touch operation on the second type of attack control, the shooting aiming mark is replaced with a second type of aiming mark, and the virtual object to be attacked aimed at by the second type of aiming mark is determined based on the touch operation, and the second type of aiming mark is used to assist the aiming of the second type of attack; the target virtual object is controlled to attack the virtual object to be attacked using the second type of attack method. Through the user's touch operation on the second type of attack control, the original method of attacking using a virtual firearm is converted into the second type of attack method, thereby realizing the combination of multiple types of games.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a control method and device for a virtual object, a computer-readable storage medium, and a computer device. Background Art

[0002] In recent years, with the development and popularization of computer equipment technology, more and more applications with three-dimensional virtual environments have emerged, such as virtual reality applications, three-dimensional map programs, military simulation programs, first-person shooting games (FPS), role-playing games (RPG), etc.

[0003] In the prior art, when playing FPS games, users can only perform shooting operations of guns; when playing RPG games, users can only release and use skills.

[0004] In the process of researching and practicing the prior art, the inventor of the present application found that the prior art users cannot perform both gun shooting operations and skill release and use when playing a game, and the gameplay is single. Summary of the invention

[0005] The embodiments of the present application provide a method and device for controlling a virtual object, which can improve the gameplay and increase the fun of the game.

[0006] To solve the above technical problems, the present application provides the following technical solutions:

[0007] A method for controlling a virtual object, comprising:

[0008] Displaying a graphical user interface, the graphical user interface including at least a portion of a virtual scene, a target virtual object located in the virtual scene, a shooting aiming mark, and a second type of attack control, the target virtual object being configured with a virtual firearm, and the shooting aiming mark being used to assist in aiming the virtual firearm;

[0009] In response to a touch operation on the second-type attack control, the shooting aiming mark is replaced with a second-type aiming mark, and a virtual object to be attacked aimed at by the second-type aiming mark is determined based on the touch operation, wherein the second-type aiming mark is used to assist the aiming of the second-type attack;

[0010] The target virtual object is controlled to attack the virtual object to be attacked by adopting the second attack method.

[0011] A control device for a virtual object, comprising:

[0012] A display module, configured to display a graphical user interface, wherein the graphical user interface includes at least a portion of a virtual scene, a target virtual object located in the virtual scene, a shooting aiming mark, and a second type of attack control, wherein the target virtual object is configured with a virtual firearm, and the shooting aiming mark is used to assist in aiming the virtual firearm;

[0013] a determination module, configured to replace the shooting aiming mark with a second-type aiming mark in response to a touch operation on the second-type attack control, and determine the virtual object to be attacked aimed at by the second-type aiming mark based on the touch operation, wherein the second-type aiming mark is used to assist the aiming of the second-type attack;

[0014] The control module is used to control the target virtual object to attack the virtual object to be attacked by adopting the second attack method.

[0015] In some embodiments, the second type of attack control also includes an energy progress bar, the second type of attack method includes a first sub-attack method and a second sub-attack method, and the energy progress bar is used to prompt whether the second sub-attack method in the second type of attack method can be used to attack.

[0016] In some embodiments, the touch operation is a click operation;

[0017] The determining module comprises:

[0018] A first determination submodule, configured to determine a plurality of first candidate virtual objects within a first distance from the target virtual object when the current energy of the energy progress bar has not reached an upper limit;

[0019] A second determination submodule, configured to determine a virtual object to be attacked from the plurality of first candidate virtual objects, and control the second type aiming mark to aim at the virtual object to be attacked;

[0020] The control module comprises:

[0021] The first control submodule is used to control the target virtual object to attack the virtual object to be attacked using the first sub-attack method.

[0022] In some embodiments, the determining module further includes:

[0023] A third determination submodule, configured to determine, when the current energy of the energy progress bar reaches an upper limit, a plurality of second candidate virtual objects that are between a first distance and a second distance from the target virtual object, wherein the second distance is greater than the first distance;

[0024] a fourth determination submodule, configured to determine a virtual object to be attacked from the plurality of second candidate virtual objects, and control the second type aiming mark to aim at the virtual object to be attacked;

[0025] The control module comprises:

[0026] The second control submodule is used to control the target virtual object to attack the virtual object to be attacked by adopting the second sub-attack method.

[0027] In some embodiments, the second sub-attack mode is a remote attack, and the second control submodule includes:

[0028] A first determining unit, configured to determine whether the second-type aiming mark aims at the virtual object to be attacked;

[0029] The first control unit is used to control the long-range attack issued by the second sub-attack mode to attack the virtual object to be attacked if the second-type aiming mark is not aimed at the virtual object to be attacked.

[0030] In some embodiments, the second control submodule further includes:

[0031] The second control unit is used to control the second type of aiming mark to gradually approach the virtual object to be attacked during the attack process of the second sub-attack mode to aim at the virtual object to be attacked if the second type of aiming mark is not aimed at the virtual object to be attacked.

[0032] In some embodiments, the second control submodule includes:

[0033] The third control unit is used to control the second type of aiming mark to aim at the virtual object to be attacked, and control the target virtual object to attack the virtual object to be attacked using the second sub-attack method.

[0034] In some embodiments, the determining module includes:

[0035] a fifth determination submodule, configured to determine whether there is a third candidate virtual object that falls within the display range of the second type of aiming mark;

[0036] The sixth determination submodule is used to determine other virtual objects as virtual objects to be attacked if there are other virtual objects falling within the display range of the second type aiming mark, and control the second type aiming mark to aim at the virtual object to be attacked.

[0037] In some embodiments, the touch operation is a sliding operation;

[0038] The determining module comprises:

[0039] an adjusting submodule, configured to adjust the aiming direction of the second-type aiming mark according to the sliding operation;

[0040] a seventh determination submodule, configured to determine whether the progress of the energy progress bar reaches an upper limit when a third candidate virtual object exists in the current aiming direction and the sliding operation ends;

[0041] an eighth determination submodule, configured to determine the third candidate virtual object as the virtual object to be attacked if the current energy of the energy progress bar has not reached an upper limit and the distance between the third candidate virtual object and the target virtual object is within a first distance;

[0042] The control module comprises:

[0043] The third control submodule is used to control the target virtual object to attack the virtual object to be attacked using the first sub-attack method.

[0044] In some embodiments, the determining module further includes:

[0045] a seventh determination submodule, configured to determine the third candidate virtual object as the virtual object to be attacked if the current energy of the energy progress bar reaches an upper limit and the distance between the third candidate virtual object and the target virtual object is between the first distance and the second distance;

[0046] The control module comprises:

[0047] The fourth control submodule is used to control the target virtual object to attack the virtual object to be attacked using the second sub-attack method.

[0048] In some embodiments, the determining module further includes:

[0049] A display submodule, configured to display a sliding response area in the graphical user interface in response to a pressing operation on the second type of attack control;

[0050] The adjustment submodule comprises:

[0051] a second determining unit, configured to determine a sliding direction, a sliding duration, and a sliding distance of the sliding operation in response to the sliding operation in the sliding response area;

[0052] A calculation unit, used for calculating the ratio of the sliding distance to the sliding duration to obtain a target sliding speed;

[0053] A third determining unit, configured to determine a target adjustment angle corresponding to a target sliding speed according to a mapping relationship between the sliding speed and the adjustment angle;

[0054] The adjusting unit is configured to adjust the aiming direction of the second-type aiming mark based on the current aiming direction of the second-type aiming mark, the sliding direction, and the target adjustment angle.

[0055] In some embodiments, the graphical user interface further includes a cancel attack control, and the device further includes:

[0056] A prohibition module is used to prohibit the target virtual object from attacking by using the second type of attack method when the sliding operation slides to the cancel attack control.

[0057] In some embodiments, when there are other virtual objects in the aiming direction of the second-type aiming mark, the display color of the second-type aiming mark is updated.

[0058] A computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for a processor to load to execute the steps in the above-mentioned virtual object control method.

[0059] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the above-mentioned method for controlling a virtual object when executing the program.

[0060] The embodiment of the present application displays a graphical user interface, the graphical user interface includes at least part of a virtual scene, a target virtual object located in the virtual scene, a shooting aiming mark, and a second type of attack control, the target virtual object is configured with a virtual firearm, and the shooting aiming mark is used to assist the aiming of the virtual firearm; in response to a touch operation on the second type of attack control, the shooting aiming mark is replaced with a second type of aiming mark, and the virtual object to be attacked aimed at by the second type of aiming mark is determined based on the touch operation, and the second type of aiming mark is used to assist the aiming of the second type of attack; the target virtual object is controlled to attack the virtual object to be attacked using the second type of attack method. In this way, through the user's touch operation on the second type of attack control, the original method of attacking with a virtual firearm is transformed into the second type of attack method, thereby realizing the combination of multiple types of games, improving the gameplay of the game, and increasing the fun. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0062] Figure 1a A system diagram of a method for controlling a virtual object provided in an embodiment of the present application.

[0063] Figure 1b A first flow chart of a method for controlling a virtual object provided in an embodiment of the present application.

[0064] Figure 1c A first schematic diagram of a graphical user interface provided in an embodiment of the present application.

[0065] Figure 1d This is a second schematic diagram of a graphical user interface provided in an embodiment of the present application.

[0066] Figure 1e This is a third schematic diagram of the graphical user interface provided in an embodiment of the present application.

[0067] Figure 1f This is a fourth schematic diagram of the graphical user interface provided in an embodiment of the present application.

[0068] Figure 1g This is a fifth schematic diagram of a graphical user interface provided in an embodiment of the present application.

[0069] Figure 1h This is a sixth schematic diagram of a graphical user interface schematic diagram provided in an embodiment of the present application.

[0070] Figure 1i This is a seventh schematic diagram of a graphical user interface provided in an embodiment of the present application.

[0071] Figure 2 A schematic diagram of the structure of a control device for a virtual object provided in an embodiment of the present application;

[0072] Figure 3 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0073] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0074] The embodiments of the present application provide a control method, device, storage medium and computer equipment for a virtual object. Specifically, the control method for a virtual object in the embodiments of the present application can be performed by a computer device, wherein the computer device can be a terminal or a server. The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA), etc. The terminal device can also include a client, which can be a game application client, a browser client carrying a game program, or an instant messaging client, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and basic cloud computing services such as big data and artificial intelligence platforms.

[0075] For example, when the control method of the virtual object is run on the terminal, the terminal device stores a game application and presents part of the game scene in the game through a display component. The terminal device is used to interact with the user through a graphical user interface, for example, the game application is downloaded and installed through the terminal device and run. The terminal device may provide the graphical user interface to the user in a variety of ways, for example, it can be rendered and displayed on the display screen of the terminal device, or the graphical user interface is presented through holographic projection. For example, the terminal device may include a touch display screen and a processor, the touch display screen is used to present the graphical user interface and receive the operation instructions generated by the user acting on the 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, respond to the operation instructions, and control the display of the graphical user interface on the touch display screen.

[0076] For example, when the control method of the virtual object runs on the server, it can be a cloud game. Cloud gaming refers to a gaming method based on cloud computing. In the operation mode of cloud gaming, the operating body of the game application and the game screen presentation body are separated, and the storage and operation of the control method of the virtual object are completed on the cloud gaming server. The game screen presentation is completed on the client of the cloud gaming. The cloud gaming client is mainly used for receiving and sending game data and presenting the game screen. For example, the cloud gaming client 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, a personal digital assistant, etc., but the terminal device for controlling the virtual object is a cloud gaming server in the cloud. When playing the game, the user operates the cloud gaming client to send an operation instruction to the cloud gaming server. The cloud gaming server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the cloud gaming client through the network. Finally, the cloud gaming client decodes and outputs the game screen.

[0077] See also Figure 1a , Figure 1a A system diagram of a control method for a virtual object provided in an embodiment of the present application. The system may include at least one computer device 1000, at least one server 2000, at least one database 3000, and a network 4000. The computer device 1000 held by the user can be connected to the servers of different games through the network 4000. The computer device 1000 is any device with computing hardware that can support and execute software products corresponding to the game. In addition, the computer device 1000 has one or more multi-touch screens for sensing and obtaining the input of the user through the touch or sliding operation performed at multiple points of one or more touch-controlled display screens. In addition, when the system includes multiple computer devices 1000, multiple servers 2000, and multiple networks 4000, different computer devices 1000 can be connected to each other through different networks 4000 and different servers 2000. The network 4000 can be a wireless network or a wired network, such as a wireless network for a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, different computer devices 1000 can also use their own Bluetooth network or hotspot network to connect to other terminals or servers, etc. For example, multiple users can be online through different computer devices 1000 and thus connected and synchronized with each other through appropriate networks to support multi-user games. In addition, the system may include multiple databases 3000, which are coupled to different servers 2000, and information related to the game environment can be continuously stored in the databases 3000 when different users are online to play multi-user games.

[0078] The embodiment of the present application provides a method for controlling a virtual object, which can be executed by a terminal or a server. The embodiment of the present application takes the method for controlling a virtual object executed by a terminal as an example for explanation. Among them, the terminal includes a display component and a processor, and the display component is used to present a graphical user interface and receive an operation instruction generated by a user acting on the display component. When the user operates the graphical user interface through the display component, the graphical user interface can control the local content of the terminal by responding to the received operation instruction, and can also control the content of the opposite server by responding to the received operation instruction. For example, the operation instruction generated by the user acting on the graphical user interface includes an instruction for starting a game application, and the processor is configured to start the game application after receiving the instruction to start the game application provided by the user. In addition, the processor is configured to render and draw a graphical user interface associated with the game on a touch display screen. The touch display screen is a multi-touch sensitive screen that can sense touch or sliding operations performed simultaneously at multiple points on the screen. The user uses a finger to perform a touch operation on the graphical user interface, and when the graphical user interface detects the touch operation, different virtual objects in the graphical user interface of the game are controlled to perform actions corresponding to the touch operation. For example, the game can be any of the games such as casual games, action games, role-playing games, strategy games, sports games, puzzle games, first person shooting games (First person shooting game, FPS), etc. Among them, the game can include a virtual scene of the game drawn on a graphical user interface. In addition, the virtual scene of the game can include one or more virtual objects controlled by a user (or users), such as virtual characters. In addition, the virtual scene of the game can also include one or more obstacles, such as railings, gullies, walls, etc., to limit the movement of virtual objects, such as limiting the movement of one or more objects to a specific area within the virtual scene. Optionally, the virtual scene of the game also includes one or more elements, such as skills, scores, character health status, energy, etc., to provide help to the user, provide virtual services, increase the scores related to the user's performance, etc. In addition, the graphical user interface can also present one or more indicators to provide indication information to the user. For example, the game can include a virtual object controlled by a user and one or more other virtual objects (such as an enemy character). In one embodiment, one or more other virtual objects are controlled by other users of the game. For example, one or more other virtual objects can be controlled by a computer, such as a robot using an artificial intelligence (AI) algorithm, to achieve a man-machine battle mode. For example, a virtual object has various skills or abilities that a game user can use to achieve a goal. For example, a virtual object has one or more weapons, props, tools, etc. that can be used to eliminate other objects from the game. Such skills or abilities can be activated by the game user using one of a plurality of preset touch operations with the touch display screen of the terminal.The processor may be configured to present a corresponding game screen in response to an operation instruction generated by a user's touch operation.

[0079] It should be noted that Figure 1a The system diagram of the control system of the virtual object shown is only an example. The control system and scenario of the virtual object described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can know that with the evolution of the control system of virtual objects and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.

[0080] In this embodiment, the description will be made from the perspective of a control device for a virtual object, which may be specifically integrated into a computer device having a storage unit and a microprocessor installed therein and having computing capabilities.

[0081] See also Figure 1b , Figure 1b A first flow chart of a method for controlling a virtual object provided in an embodiment of the present application. The method for controlling a virtual object includes:

[0082] In step 101, a graphical user interface is displayed, which includes at least a portion of a virtual scene, a target virtual object located in the virtual scene, a shooting aiming mark, and a second type of attack control. The target virtual object is configured with a virtual firearm, and the shooting aiming mark is used to assist in aiming the virtual firearm.

[0083] Among them, the graphical user interface displays a three-dimensional virtual scene in the game scene. The three-dimensional virtual scene is a virtual scene provided when the application is running on the terminal. It can be a simulation scene of the real world, a semi-simulation and semi-fictional scene, or a purely fictional scene. The scene screen displayed on the graphical user interface is the scene screen presented when the virtual object observes the three-dimensional virtual scene. The user controls the virtual object in the game scene through the terminal, and the virtual object can observe the three-dimensional virtual scene through the camera model. Taking FPS games as an example, when in the first-person perspective, the camera model is located at the head or neck of the target virtual object, and only the arm part of the virtual character can be displayed in the graphical user interface; when in the third-person perspective, the camera model is located behind the target virtual object, and only the upper body part of the virtual character can be displayed in the graphical user interface. The graphical user interface is the scene screen presented by observing the three-dimensional virtual scene through a camera model at a certain perspective.

[0084] For details, please refer to Figure 1c , Figure 1cThe first schematic diagram of the graphical user interface schematic diagram provided by the embodiment of the present application. The graphical user interface is presented by the screen of the computer device 1000, and includes a target virtual object 10 controlled by the user in the graphical user interface, the target virtual object 10 is configured with a virtual firearm, and the virtual firearm is used to fire and shoot, and a shooting aiming mark 20 for assisting the virtual firearm to aim, a cursor control 30 that prompts the user of the current direction information of the target virtual object 10, a mobile control 40 that controls the movement of the virtual object 10 in the three-dimensional virtual environment, an aiming control 50 that can be used by the target virtual object 10 when attacking, and a map control 60 that prompts the user of the location of the first virtual object 10 in the three-dimensional virtual environment, and a firing control 70 that controls the target virtual object 10 to shoot firearms in the three-dimensional virtual environment. Among them, an indication control 31 is also provided in the cursor control 30, which is used to indicate the direction of the first virtual object 10 in the cursor control 30. It can be understood that the user graphical interface includes not only the above-mentioned marks and controls, but also other functional controls or marks, which are determined according to the specific game content and are not limited here.

[0085] Specifically, the graphical user interface also includes a second type of attack control 80, which is used to control the target virtual object 10 to perform a second type of attack method. The second type of attack method is different from the first type of attack method using a virtual firearm to fire. The second type of attack method can be a melee attack or a skill release, etc., which is not limited here.

[0086] In step 102, in response to a touch operation on a second type of attack control, the shooting aiming mark is replaced with a second type of aiming mark, and the virtual object to be attacked aimed at by the second type of aiming mark is determined based on the touch operation. The second type of aiming mark is used to assist the aiming of the second type of attack.

[0087] Among them, Figure 1d As shown, Figure 1d A second schematic diagram of a graphical user interface provided in an embodiment of the present application. When a user performs a touch operation on the second type attack control 80, the original shooting aiming mark 20 in the graphical user interface is replaced with a second type aiming mark 90 for assisting the second type attack, thereby informing the user of the change in attack type from the original use of a virtual firearm to fire a gun to the second type of attack method by replacing the aiming mark.

[0088] Specifically, the second type of aiming mark 90 is used to determine the virtual object to be attacked according to the touch operation.

[0089] In some implementations, the step of determining the virtual object to be attacked targeted by the second type of targeting identifier based on the touch operation further includes:

[0090] (1) determining whether there are other virtual objects within the display range of the second type of aiming mark;

[0091] (2) If there are other virtual objects that fall within the display range of the second-type aiming mark, determine the other virtual objects as virtual objects to be attacked, and control the second-type aiming mark to aim at the virtual objects to be attacked.

[0092] Among them, Figure 1e As shown, Figure 1e The third schematic diagram of the graphical user interface provided in the embodiment of the present application. The second type of aiming mark 90 has a corresponding display range A in the graphical user interface. When there is a third candidate virtual object (such as Figure 1e If part of the head of the third candidate virtual object and the virtual firearm configured therewith fall into the display range A), the third candidate virtual object is determined as the virtual object to be attacked, and the second type aiming mark 90 is controlled to aim at the virtual object to be attacked.

[0093] Specifically, the aiming method is to align the center point of the second type aiming mark 90 with the virtual object to be attacked, so as to achieve aiming. The aiming method can be to change the position of the second type aiming mark 90 in the graphical user interface while keeping the viewing angle unchanged; or to change the viewing angle while keeping the position of the second type aiming mark 90 in the graphical user interface unchanged, which is not limited here.

[0094] In some embodiments, the second type of attack control 80 also includes an energy progress bar 81, the second type of attack method includes a first sub-attack method and a second sub-attack method, and the energy progress bar 81 is used to prompt whether the second sub-attack method in the second type of attack method can be used to attack.

[0095] Among them, Figure 1f As shown, Figure 1f A fourth schematic diagram of a graphical user interface provided for an embodiment of the present application. Based on the current energy 82 in the energy progress bar 81, two sub-attack methods are set for the second type of attack method, namely, a first sub-attack method and a second sub-attack method. Taking the second type of attack method as melee attack as an example, when the current energy 82 has not reached the upper limit, the target virtual object uses fists for melee attacks; when the current energy 82 reaches the upper limit, the target virtual object releases skills for long-range attacks. At this time, using fists for melee attacks is the first sub-attack method, and releasing skills for long-range attacks is the second sub-attack method. Therefore, the energy progress bar 81 is used to prompt the user whether the second sub-attack method in the second type of attack method can be used to attack.

[0096] Specifically, when the second sub-attack method is used to attack, the energy bar will change from the original upper limit state to the lower limit state with no energy, and the energy will increase over time.

[0097] In some embodiments, the touch operation is a click operation;

[0098] The step of determining the virtual object to be attacked targeted by the second type of targeting mark based on the touch operation includes:

[0099] (1) when the current energy of the energy progress bar has not reached an upper limit, determining a plurality of first candidate virtual objects that are within a first distance from the target virtual object;

[0100] (2) Determine a virtual object to be attacked from the plurality of first candidate virtual objects, and control the second type aiming mark to aim at the virtual object to be attacked.

[0101] Among them, when the user's touch operation for the second type of attack control is a click operation, it is determined whether the current energy in the energy progress bar has reached the upper limit. If it has not reached the upper limit, it is determined as the first sub-attack method of using fists for melee attacks. Therefore, multiple first candidate virtual objects within a first distance from the target virtual object are determined. The first distance is the attack distance for melee attacks using fists, such as 1 meter. Multiple first candidate virtual objects are determined. For example, if there are three virtual objects within 1 meter from the target virtual object, these three virtual objects are all determined as first candidate virtual objects, and the virtual objects to be attacked are screened out from the first candidate virtual objects.

[0102] Specifically, the screening method may be screening according to preset screening rules. The preset screening rule may be to compare the distance between each first candidate virtual object and the target virtual object, and determine the first candidate virtual object with the smallest distance as the virtual object to be attacked. For example, the distance between the first candidate virtual object A and the target virtual object is 0.8 meters, and the distance between the first candidate virtual object B and the target virtual object is 0.5 meters, then the first candidate virtual object B is determined as the virtual object to be attacked. The preset screening rule may also be to determine the current viewing angle, determine the angle value between the line segment formed by each first candidate virtual object and the target virtual object and the current viewing angle, and determine the first candidate virtual object with the smallest angle value as the target virtual object. This screening rule may avoid the problem that the user cannot determine the direction in a short time due to the viewing angle being too large.

[0103] When a virtual object to be attacked is determined, the second type of aiming mark is aimed at the virtual object to be attacked, so as to prompt the user that the virtual object to be attacked by the second type of attack method is the virtual object to be attacked.

[0104] In some embodiments, the method further comprises:

[0105] (1) when the current energy of the energy progress bar reaches an upper limit, determining a plurality of second candidate virtual objects that are between a first distance and a second distance from the target virtual object, wherein the second distance is greater than the first distance;

[0106] (2) Determine a virtual object to be attacked from the plurality of second candidate virtual objects, and control the second type aiming mark to aim at the virtual object to be attacked.

[0107] Among them, when the current energy reaches the upper limit, it is determined to be a second sub-attack mode of performing a long-range attack by releasing a skill. Therefore, multiple second candidate virtual objects are determined to be between the first distance and the second distance from the target virtual object. The second distance is the attack distance of the second sub-attack mode. Since it is a long-range attack, the target of the attack is set between the first distance and the second distance, and according to the preset screening rules, the virtual object to be attacked is determined from the multiple second candidate virtual objects, and the second type of aiming mark is controlled to aim at the virtual object to be attacked.

[0108] In some embodiments, the second sub-attack mode is a remote attack, and the step of controlling the target virtual object to attack the virtual object to be attacked using the second sub-attack mode includes:

[0109] (1.1) determining whether the second-type aiming mark is aimed at the virtual object to be attacked;

[0110] (1.2) If the second type of aiming mark is not aimed at the virtual object to be attacked, controlling the long-range attack issued by the second sub-attack mode to attack the virtual object to be attacked.

[0111] Among them, the second sub-attack method is a long-range attack such as skill release or virtual prop throwing. When the target virtual object is controlled to attack the virtual object to be attacked using the second sub-attack method, it can be determined whether the second type of aiming mark is aimed at the virtual object to be attacked during the attack. If it is not aimed at the virtual object to be attacked, the long-range attack is controlled to attack the virtual object to be attacked to form a tracking attack method.

[0112] In some embodiments, the method further comprises:

[0113] If the second type aiming mark is not aimed at the virtual object to be attacked, the second type aiming mark is controlled to gradually approach the virtual object to be attacked during the attack process of the second sub-attack mode to aim at the virtual object to be attacked.

[0114] Among them, if the second type of aiming mark does not aim at the virtual object to be attacked, the attack of the second sub-attack method will not hit the virtual object to be attacked, so aiming correction can be performed to assist the user in aiming at the virtual object to be attacked.

[0115] Specifically, the aiming correction method is divided into two methods for the attack process of the second sub-attack method. If the second sub-attack method is a continuous attack, the second-type aiming mark can be controlled to gradually approach the virtual object to be attacked during the continuous attack to aim at the virtual object to be attacked; if the second sub-attack method is a single attack, the second-type aiming mark can be controlled to gradually approach the virtual object to be attacked after the attack process of the single attack to aim at the virtual object to be attacked. Although the single attack misses the virtual object to be attacked, the second-type aiming mark has been moved close to and aimed at the virtual object to be attacked, which can allow the user to improve the hit rate when using the second sub-attack method for a single attack next time.

[0116] In some implementations, the step of controlling the target virtual object to attack the virtual object to be attacked using the second sub-attack mode includes:

[0117] The second type of aiming mark is controlled to aim at the virtual object to be attacked, and the target virtual object is controlled to attack the virtual object to be attacked using the second sub-attack mode.

[0118] In addition to the auxiliary aiming method, the user's control operation can also be used to control the second type of aiming mark to aim at the virtual object to be attacked, and control the target virtual object to attack the virtual object to be attacked using the second sub-attack method.

[0119] In some embodiments, the touch operation is a sliding operation;

[0120] The step of determining the virtual object to be attacked targeted by the second type of targeting mark based on the touch operation includes:

[0121] (1) adjusting the aiming direction of the second-type aiming mark according to the sliding operation;

[0122] (2) when there is a third candidate virtual object in the current aiming direction and the sliding operation ends, determining whether the progress of the energy progress bar has reached an upper limit;

[0123] (3) If the current energy of the energy progress bar has not reached the upper limit, and the distance between the third candidate virtual object and the target virtual object is within the first distance, the third candidate virtual object is determined as the virtual object to be attacked.

[0124] Among them, Figure 1gAs shown, Figure 1g A fifth schematic diagram of a graphical user interface provided for an embodiment of the present application. The user's touch operation on the second type of attack control 80 is a sliding operation, and the sliding operation can drive the second type of attack control 80 to slide in the graphical user interface, thereby adjusting the aiming direction of the second type of aiming mark. When it is detected that there is a third candidate virtual object in the current aiming direction, and when the sliding operation ends, it is confirmed that the user has selected an attack direction, and there is a third candidate virtual object in the attack direction. It is determined whether the progress of the energy progress bar has reached the upper limit. If it has not reached the upper limit, the first sub-attack method is used to attack, so it is necessary to determine whether the distance between the third candidate virtual object selected by the user and the target virtual object is within the attack distance (first distance) of the first sub-attack method. If it is, the third candidate virtual object is determined as the virtual object to be attacked.

[0125] In some embodiments, the method further comprises:

[0126] If the current energy of the energy progress bar reaches the upper limit, and the distance between the third candidate virtual object and the target virtual object is between the first distance and the second distance, the third candidate virtual object is determined as the virtual object to be attacked.

[0127] If the current energy reaches the upper limit, the second sub-attack method is adopted to attack. It is necessary to determine whether the distance between the third candidate virtual object selected by the user and the target virtual object is between the first distance and the second distance. If so, the third candidate virtual object is determined as the virtual object to be attacked.

[0128] In some embodiments, before the step of adjusting the aiming direction of the second-type aiming mark according to the sliding operation, the method further includes:

[0129] In response to a pressing operation on the second-type attack control, displaying a sliding response area in the graphical user interface;

[0130] The step of adjusting the aiming direction of the second-type aiming mark according to the sliding operation comprises:

[0131] (1.1) in response to the sliding operation in the sliding response area, determining the sliding direction, sliding duration, and sliding distance of the sliding operation;

[0132] (1.2) calculating the ratio of the sliding distance to the sliding duration to obtain a target sliding speed;

[0133] (1.3) Determine the target adjustment angle corresponding to the target sliding speed according to the mapping relationship between the sliding speed and the adjustment angle;

[0134] (1.4) Adjusting the aiming direction of the second-type aiming mark based on the current aiming direction of the second-type aiming mark, the sliding direction, and the target adjustment angle.

[0135] Among them, Figure 1h As shown, Figure 1h A sixth schematic diagram of a graphical user interface provided in an embodiment of the present application. Before the user adjusts the aiming direction of the second type aiming mark by sliding, the second type attack control is pressed, thereby displaying a sliding response area B in the graphical user interface, and the sliding response area B may have the same center as the second type aiming mark before sliding, and a radius greater than the radius of the second type aiming mark, so as to inform the user that the second type aiming mark can be dragged to slide in the sliding response area B by sliding.

[0136] Specifically, the method for adjusting the aiming direction of the second type of aiming mark according to the sliding operation can be: determine the sliding direction, sliding duration and sliding distance of the sliding operation, for example, the sliding direction is to the right, the sliding duration is 1s, and the sliding distance is 10mm; calculate the ratio of the sliding distance to the sliding duration to obtain the target sliding speed, for example, 10mm / 1s=10mm / s; determine the target adjustment angle corresponding to the target sliding speed according to the mapping relationship between the sliding speed and the adjustment angle, for example, the target adjustment angle corresponding to 10mm / s is 90°; adjust the aiming direction of the second type of aiming mark based on the current aiming direction, sliding direction and target adjustment angle of the second type of aiming mark, for example, if the current aiming direction of the second type of aiming mark is due north, the sliding direction is to the right, and the target adjustment angle is 90°, then the second type of aiming mark is controlled to start from the due north and adjust 90° to the right, and the final aiming direction is due east.

[0137] In some embodiments, the graphical user interface further includes a cancel attack control, and the method further includes:

[0138] When the sliding operation slides to the cancel attack control, the target virtual object is prohibited from attacking using the second type of attack method.

[0139] Among them, Figure 1i As shown, Figure 1i The seventh schematic diagram of the graphical user interface provided in the embodiment of the present application. A cancel attack control 100 is displayed in the graphical user interface. When it is detected that the sliding operation slides to the cancel attack control, it means that the user wants to cancel the second type of attack mode to attack, and the target virtual object is prohibited from attacking using the second type of attack mode.

[0140] Specifically, the cancel attack control 100 may be displayed in the graphical user interface when the user performs a sliding operation on the second type of attack control, or may be directly displayed in the graphical user interface when the game starts, which is not limited here.

[0141] In step 103, the target virtual object is controlled to attack the virtual object to be attacked using the second attack method.

[0142] After the virtual object to be attacked is determined in step 102, the target virtual object can be controlled to attack the virtual object to be attacked using the second attack method.

[0143] Specifically, according to whether the current energy reaches the upper limit, the first sub-attack method or the second sub-attack method in the second attack method can be used to attack.

[0144] In some implementations, the step of controlling the target virtual object to attack the virtual object to be attacked using the second type of attack method includes:

[0145] The target virtual object is controlled to attack the virtual object to be attacked using the first sub-attack mode.

[0146] Among them, for the touch operation being a click operation, after the virtual object to be attacked is determined because the current energy does not reach the upper limit, the target virtual object is controlled to attack the virtual object to be attacked using the first sub-attack method.

[0147] In some implementations, the step of controlling the target virtual object to attack the virtual object to be attacked using the second type of attack method includes:

[0148] The target virtual object is controlled to attack the virtual object to be attacked by adopting the second sub-attack mode.

[0149] Among them, for the touch operation being a click operation, after the virtual object to be attacked is determined with the current energy reaching the upper limit, the target virtual object is controlled to attack the virtual object to be attacked using the second sub-attack method.

[0150] In some implementations, the step of controlling the target virtual object to attack the virtual object to be attacked using the second type of attack method includes:

[0151] The target virtual object is controlled to attack the virtual object to be attacked using the first sub-attack mode.

[0152] Among them, when the touch operation is a sliding operation, after the virtual object to be attacked is determined because the current energy does not reach the upper limit, the target virtual object is controlled to attack the virtual object to be attacked using the first sub-attack method.

[0153] In some implementations, the step of controlling the target virtual object to attack the virtual object to be attacked using the second type of attack method includes:

[0154] The target virtual object is controlled to attack the virtual object to be attacked using the second sub-attack mode.

[0155] Among them, when the touch operation is a sliding operation, after the virtual object to be attacked is determined with the current energy reaching the upper limit, the target virtual object is controlled to attack the virtual object to be attacked by using the second sub-attack method.

[0156] In some implementations, when there are other virtual objects in the aiming direction of the second-type aiming mark, the display color of the second-type aiming mark is updated.

[0157] When there are other virtual objects in the aiming direction of the second-type aiming mark, that is, when the second-type aiming mark aims at other virtual objects, the display color of the second-type aiming mark is updated.

[0158] For example, the display color of the second type of aiming mark is white when it is not aimed at other virtual objects. When the second type of aiming mark is aimed at other virtual objects, the second type of aiming mark is displayed in red, thereby prompting the user to aim at other virtual objects.

[0159] As can be seen from the above, the embodiment of the present application displays a graphical user interface, the graphical user interface includes at least part of a virtual scene, a target virtual object located in the virtual scene, a shooting aiming mark and a second type of attack control, the target virtual object is configured with a virtual firearm, and the shooting aiming mark is used to assist the aiming of the virtual firearm; in response to a touch operation on the second type of attack control, the shooting aiming mark is replaced with a second type of aiming mark, and the virtual object to be attacked aimed at by the second type of aiming mark is determined based on the touch operation, and the second type of aiming mark is used to assist the aiming of the second type of attack; the target virtual object is controlled to attack the virtual object to be attacked using the second type of attack method. In this way, through the user's touch operation on the second type of attack control, the original method of attacking with a virtual firearm is transformed into the second type of attack method, thereby realizing the combination of multiple types of games, improving the gameplay of the game, and increasing the fun.

[0160] In order to better implement the virtual object control method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the virtual object control method. The meanings of the terms are the same as those in the virtual object control method, and the specific implementation details can refer to the description in the method embodiment.

[0161] See also Figure 2 , Figure 2 This is a schematic diagram of the structure of a virtual object control device provided in an embodiment of the present application, wherein the virtual object control device may include a display module 301, a determination module 302, and a control module 303, etc.

[0162] A display module 301 is used to display a graphical user interface, wherein the graphical user interface includes at least a portion of a virtual scene, a target virtual object located in the virtual scene, a shooting aiming mark, and a second type of attack control, wherein the target virtual object is configured with a virtual firearm, and the shooting aiming mark is used to assist in aiming the virtual firearm;

[0163] A determination module 302 is used to replace the shooting aiming mark with a second-type aiming mark in response to a touch operation on the second-type attack control, and determine the virtual object to be attacked aimed at by the second-type aiming mark based on the touch operation, wherein the second-type aiming mark is used to assist the aiming of the second-type attack;

[0164] The control module 303 is used to control the target virtual object to attack the virtual object to be attacked by adopting the second attack method.

[0165] In some embodiments, the second type of attack control also includes an energy progress bar, the second type of attack method includes a first sub-attack method and a second sub-attack method, and the energy progress bar is used to prompt whether the second sub-attack method in the second type of attack method can be used to attack.

[0166] In some embodiments, the touch operation is a click operation;

[0167] The determination module 302 includes:

[0168] A first determination submodule, configured to determine a plurality of first candidate virtual objects within a first distance from the target virtual object when the current energy of the energy progress bar has not reached an upper limit;

[0169] A second determination submodule, configured to determine a virtual object to be attacked from the plurality of first candidate virtual objects, and control the second type aiming mark to aim at the virtual object to be attacked;

[0170] The control module 303 includes:

[0171] The first control submodule is used to control the target virtual object to attack the virtual object to be attacked using the first sub-attack method.

[0172] In some implementations, the determining module 302 further includes:

[0173] A third determination submodule, configured to determine, when the current energy of the energy progress bar reaches an upper limit, a plurality of second candidate virtual objects that are between a first distance and a second distance from the target virtual object, wherein the second distance is greater than the first distance;

[0174] a fourth determination submodule, configured to determine a virtual object to be attacked from the plurality of second candidate virtual objects, and control the second type aiming mark to aim at the virtual object to be attacked;

[0175] The control module 303 includes:

[0176] The second control submodule is used to control the target virtual object to attack the virtual object to be attacked by adopting the second sub-attack method.

[0177] In some implementations, the second sub-attack mode is a remote attack, and the second control submodule includes:

[0178] A first determining unit, configured to determine whether the second-type aiming mark aims at the virtual object to be attacked;

[0179] The first control unit is used to control the long-range attack issued by the second sub-attack mode to attack the virtual object to be attacked if the second-type aiming mark is not aimed at the virtual object to be attacked.

[0180] In some implementations, the second control submodule further includes:

[0181] The second control unit is used to control the second type of aiming mark to gradually approach the virtual object to be attacked during the attack process of the second sub-attack mode to aim at the virtual object to be attacked if the second type of aiming mark is not aimed at the virtual object to be attacked.

[0182] In some implementations, the second control submodule includes:

[0183] The third control unit is used to control the second type of aiming mark to aim at the virtual object to be attacked, and control the target virtual object to attack the virtual object to be attacked using the second sub-attack method.

[0184] In some implementations, the determining module 302 includes:

[0185] A fifth determination submodule, used to determine whether there are other virtual objects falling within the display range of the second type of aiming mark;

[0186] The sixth determination submodule is used to determine other virtual objects as virtual objects to be attacked if there are other virtual objects falling within the display range of the second type aiming mark, and control the second type aiming mark to aim at the virtual object to be attacked.

[0187] In some embodiments, the touch operation is a sliding operation;

[0188] The determination module 302 includes:

[0189] an adjusting submodule, configured to adjust the aiming direction of the second-type aiming mark according to the sliding operation;

[0190] a seventh determination submodule, configured to determine whether the progress of the energy progress bar reaches an upper limit when a third candidate virtual object exists in the current aiming direction and the sliding operation ends;

[0191] an eighth determination submodule, configured to determine the third candidate virtual object as the virtual object to be attacked if the current energy of the energy progress bar has not reached an upper limit and the distance between the third candidate virtual object and the target virtual object is within a first distance;

[0192] The control module 303 includes:

[0193] The third control submodule is used to control the target virtual object to attack the virtual object to be attacked using the first sub-attack method.

[0194] In some implementations, the determining module 302 further includes:

[0195] a seventh determination submodule, configured to determine the third candidate virtual object as the virtual object to be attacked if the current energy of the energy progress bar reaches an upper limit and the distance between the third candidate virtual object and the target virtual object is between the first distance and the second distance;

[0196] The control module 303 includes:

[0197] The fourth control submodule is used to control the target virtual object to attack the virtual object to be attacked using the second sub-attack method.

[0198] In some implementations, the determining module 302 further includes:

[0199] A display submodule, configured to display a sliding response area in the graphical user interface in response to a pressing operation on the second type of attack control;

[0200] The adjustment submodule comprises:

[0201] a second determining unit, configured to determine a sliding direction, a sliding duration, and a sliding distance of the sliding operation in response to the sliding operation in the sliding response area;

[0202] A calculation unit, used for calculating the ratio of the sliding distance to the sliding duration to obtain a target sliding speed;

[0203] A third determining unit, configured to determine a target adjustment angle corresponding to a target sliding speed according to a mapping relationship between the sliding speed and the adjustment angle;

[0204] The adjusting unit is configured to adjust the aiming direction of the second-type aiming mark based on the current aiming direction of the second-type aiming mark, the sliding direction, and the target adjustment angle.

[0205] In some embodiments, the graphical user interface further includes a cancel attack control, and the device further includes:

[0206] A prohibition module is used to prohibit the target virtual object from attacking by using the second type of attack method when the sliding operation slides to the cancel attack control.

[0207] In some implementations, when there are other virtual objects in the aiming direction of the second-type aiming mark, the display color of the second-type aiming mark is updated.

[0208] As can be seen from the above, the embodiment of the present application displays a graphical user interface through the display module 301, and the graphical user interface includes at least part of a virtual scene, a target virtual object located in the virtual scene, a shooting aiming mark, and a second type of attack control, wherein the target virtual object is configured with a virtual firearm, and the shooting aiming mark is used to assist the aiming of the virtual firearm; the determination module 302 replaces the shooting aiming mark with a second type of aiming mark in response to a touch operation on the second type of attack control, and determines the virtual object to be attacked aimed at by the second type of aiming mark based on the touch operation, and the second type of aiming mark is used to assist the aiming of the second type of attack; the control module 303 controls the target virtual object to attack the virtual object to be attacked using the second type of attack method. In this way, through the user's touch operation on the second type of attack control, the original method of attacking with a virtual firearm is transformed into the second type of attack method, thereby realizing the combination of multiple types of games, improving the gameplay of the game, and increasing the fun.

[0209] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0210] Accordingly, the embodiment of the present application also provides a computer device, which may be a terminal or a server, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), or other terminal devices. Figure 3 As shown, Figure 3 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 1000 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. Those skilled in the art will appreciate that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.

[0211] The processor 401 is the control center of the computer device 1000. It uses various interfaces and lines to connect the various parts of the entire computer device 1000, executes various functions of the computer device 1000 and processes data by running or loading software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, thereby monitoring the computer device 1000 as a whole.

[0212] In the embodiment of the present application, the processor 401 in the computer device 1000 will load instructions corresponding to the processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 will run the application programs stored in the memory 402 to implement various functions:

[0213] A graphical user interface is displayed, wherein the graphical user interface includes at least a portion of a virtual scene, a target virtual object located in the virtual scene, a shooting aiming mark, and a second type of attack control, wherein the target virtual object is configured with a virtual firearm, and the shooting aiming mark is used to assist in aiming the virtual firearm; in response to a touch operation on the second type of attack control, the shooting aiming mark is replaced with a second type of aiming mark, and the virtual object to be attacked aimed at by the second type of aiming mark is determined based on the touch operation, wherein the second type of aiming mark is used to assist in aiming the second type of attack; and the target virtual object is controlled to attack the virtual object to be attacked using the second type of attack method.

[0214] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0215] Optional, such as Figure 3 As shown, the computer device 1000 further includes: a touch screen 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. The processor 401 is electrically connected to the touch screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power supply 407, respectively. Those skilled in the art can understand that Figure 3 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0216] The touch display screen 403 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 403 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the computer device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 401, and can receive the command sent by the processor 401 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 401 to determine the type of touch event, and then the processor 401 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 403 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 403 can also be used as a part of the input unit 406 to realize the input function.

[0217] In the embodiment of the present application, the processor 401 executes the game application to generate a graphical user interface on the touch screen 403. The virtual scene on the graphical user interface includes at least one skill control area, and the skill control area includes at least one skill control. The touch screen 403 is used to present the graphical user interface and receive operation instructions generated by the user acting on the graphical user interface.

[0218] The radio frequency circuit 404 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other computer devices through wireless communication, and to send and receive signals between the network device or other computer devices.

[0219] The audio circuit 405 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 405 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 405 and converted into audio data, and then the audio data is output to the processor 401 for processing, and then sent to another computer device through the radio frequency circuit 404, or the audio data is output to the memory 402 for further processing. The audio circuit 405 may also include an earphone jack to provide communication between an external headset and the computer device.

[0220] The input unit 406 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0221] The power supply 407 is used to supply power to various components of the computer device 1000. Optionally, the power supply 407 can be logically connected to the processor 401 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 407 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0222] although Figure 3 Not shown, the computer device 1000 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0223] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0224] As can be seen from the above, the computer device provided in this embodiment displays a graphical user interface, wherein the graphical user interface includes at least part of a virtual scene, a target virtual object located in the virtual scene, a shooting aiming mark, and a second type of attack control, wherein the target virtual object is configured with a virtual firearm, and the shooting aiming mark is used to assist the aiming of the virtual firearm; in response to a touch operation on the second type of attack control, the shooting aiming mark is replaced with a second type of aiming mark, and the virtual object to be attacked aimed at by the second type of aiming mark is determined based on the touch operation, and the second type of aiming mark is used to assist the aiming of the second type of attack; and the target virtual object is controlled to attack the virtual object to be attacked using the second type of attack method. In this way, through the user's touch operation on the second type of attack control, the original method of attacking with a virtual firearm is transformed into the second type of attack method, thereby realizing the combination of multiple types of games, improving the gameplay of the game, and increasing the fun.

[0225] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0226] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any skill control method provided in the embodiment of the present application. For example, the computer program can execute the following steps:

[0227] A graphical user interface is displayed, wherein the graphical user interface includes at least a portion of a virtual scene, a target virtual object located in the virtual scene, a shooting aiming mark, and a second type of attack control, wherein the target virtual object is configured with a virtual firearm, and the shooting aiming mark is used to assist in aiming the virtual firearm; in response to a touch operation on the second type of attack control, the shooting aiming mark is replaced with a second type of aiming mark, and the virtual object to be attacked aimed at by the second type of aiming mark is determined based on the touch operation, wherein the second type of aiming mark is used to assist in aiming the second type of attack; and the target virtual object is controlled to attack the virtual object to be attacked using the second type of attack method.

[0228] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0229] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0230] Since the computer program stored in the storage medium can execute the steps in any virtual object control method provided in the embodiments of the present application, the beneficial effects that can be achieved by any virtual object control method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0231] The above is a detailed introduction to a virtual object control method, device, storage medium and computer equipment provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for controlling a virtual object, characterized in that: include: Displaying a graphical user interface, the graphical user interface including at least a portion of a virtual scene, a target virtual object located in the virtual scene, a shooting aiming mark, and a second type of attack control, the target virtual object being configured with a virtual firearm, the shooting aiming mark being used to assist in aiming the virtual firearm, and the second type of attack control including an energy progress bar; In response to a touch operation on the second-type attack control, the shooting aiming mark is replaced with a second-type aiming mark, where the second-type aiming mark is used to assist the aiming of the second-type attack; When the touch operation is a sliding operation, adjusting the aiming direction of the second-type aiming mark according to the sliding operation, and when there is a third candidate virtual object in the current aiming direction and the sliding operation ends, determining whether the progress of the energy progress bar has reached an upper limit, and if the current energy of the energy progress bar has not reached the upper limit and the distance between the third candidate virtual object and the target virtual object is within the first distance, determining the third candidate virtual object as the virtual object to be attacked; The target virtual object is controlled to attack the virtual object to be attacked by using the first sub-attack method in the second attack method.

2. The method for controlling a virtual object according to claim 1, characterized in that: The second type of attack method includes a first sub-attack method and a second sub-attack method, and the energy progress bar is used to prompt whether the second sub-attack method in the second type of attack method can be used to attack.

3. The method for controlling a virtual object according to claim 2, characterized in that: The touch operation also includes a click operation, and the method further includes: When the current energy of the energy progress bar has not reached an upper limit, determining a plurality of first candidate virtual objects that are within a first distance from the target virtual object; Determine a virtual object to be attacked from the plurality of first candidate virtual objects, and control the second type aiming mark to aim at the virtual object to be attacked; The target virtual object is controlled to attack the virtual object to be attacked using the first sub-attack mode.

4. The method for controlling a virtual object according to claim 3, characterized in that: The method further comprises: When the current energy of the energy progress bar reaches an upper limit, determining a plurality of second candidate virtual objects that are between a first distance and a second distance from the target virtual object, wherein the second distance is greater than the first distance; Determine a virtual object to be attacked from the plurality of second candidate virtual objects; The target virtual object is controlled to attack the virtual object to be attacked by adopting the second sub-attack mode.

5. The method for controlling a virtual object according to claim 4, characterized in that: The second sub-attack mode is a long-range attack, and the step of controlling the target virtual object to attack the virtual object to be attacked using the second sub-attack mode includes: determining whether the second-type aiming mark is aimed at the virtual object to be attacked; If the second type aiming mark is not aimed at the virtual object to be attacked, the long-range attack issued by the second sub-attack mode is controlled to attack the virtual object to be attacked.

6. The method for controlling a virtual object according to claim 5, characterized in that: The method further comprises: If the second type aiming mark is not aimed at the virtual object to be attacked, the second type aiming mark is controlled to gradually approach the virtual object to be attacked during the attack process of the second sub-attack mode to aim at the virtual object to be attacked.

7. The method for controlling a virtual object according to claim 4, characterized in that: The step of controlling the target virtual object to attack the virtual object to be attacked using the second sub-attack mode comprises: The second type of aiming mark is controlled to aim at the virtual object to be attacked, and the target virtual object is controlled to attack the virtual object to be attacked using the second sub-attack mode.

8. The method for controlling a virtual object according to claim 1, characterized in that: The method further comprises: Determining whether there are other virtual objects within the display range of the second type of aiming mark; If there are other selected virtual objects falling within the display range of the second type aiming mark, the other virtual objects are determined as virtual objects to be attacked, and the second type aiming mark is controlled to aim at the virtual objects to be attacked.

9. The method for controlling a virtual object according to claim 2, characterized in that: The method further comprises: If the current energy of the energy progress bar reaches the upper limit, and the distance between the third candidate virtual object and the target virtual object is between the first distance and the second distance, the third candidate virtual object is determined as the virtual object to be attacked; The target virtual object is controlled to attack the virtual object to be attacked using the second sub-attack mode.

10. The method for controlling a virtual object according to claim 1, characterized in that: Before the step of adjusting the aiming direction of the second-type aiming mark according to the sliding operation, the method further includes: In response to a pressing operation on the second-type attack control, displaying a sliding response area in the graphical user interface; The step of adjusting the aiming direction of the second-type aiming mark according to the sliding operation comprises: In response to the sliding operation in the sliding response area, determining a sliding direction, a sliding duration, and a sliding distance of the sliding operation; Calculate the ratio of the sliding distance to the sliding duration to obtain a target sliding speed; Determine the target adjustment angle corresponding to the target sliding speed according to the mapping relationship between the sliding speed and the adjustment angle; The aiming direction of the second-type aiming mark is adjusted based on the current aiming direction of the second-type aiming mark, the sliding direction, and the target adjustment angle.

11. The method for controlling a virtual object according to claim 2, characterized in that: The graphical user interface also includes a cancel attack control, and the method further includes: When the sliding operation slides to the cancel attack control, the target virtual object is prohibited from attacking using the second type of attack method.

12. The method for controlling a virtual object according to any one of claims 1 to 11, characterized in that: When there are other virtual objects in the aiming direction of the second-type aiming mark, the display color of the second-type aiming mark is updated.

13. A control device for a virtual object, characterized in that: include: A display module, configured to display a graphical user interface, wherein the graphical user interface includes at least a portion of a virtual scene, a target virtual object located in the virtual scene, a shooting aiming mark, and a second type of attack control, wherein the target virtual object is configured with a virtual firearm, the shooting aiming mark is used to assist in aiming the virtual firearm, and the second type of attack control includes an energy progress bar; a determination module, configured to replace the shooting aiming mark with a second-type aiming mark in response to a touch operation on the second-type attack control, and when the touch operation is a sliding operation, adjust the aiming direction of the second-type aiming mark according to the sliding operation, and when a third candidate virtual object exists in the current aiming direction and the sliding operation ends, determine whether the progress of the energy progress bar has reached an upper limit, and if the current energy of the energy progress bar has not reached the upper limit and the distance between the third candidate virtual object and the target virtual object is within the first distance, determine the third candidate virtual object as the virtual object to be attacked; The control module is used to control the target virtual object to attack the virtual object to be attacked by using the first sub-attack method in the second attack method.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the method for controlling a virtual object according to any one of claims 1 to 12.

15. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the method for controlling a virtual object according to any one of claims 1 to 12 are implemented.

Citation Information

Patent Citations

  • Role state switching method and relevant device

    CN109550244A

  • Game live broadcast interaction method and related equipment

    CN114501055A