CN113842640A - Control method and device for common attack and electronic equipment - Google Patents

Control method and device for common attack and electronic equipment Download PDF

Info

Publication number
CN113842640A
CN113842640A CN202111138343.0A CN202111138343A CN113842640A CN 113842640 A CN113842640 A CN 113842640A CN 202111138343 A CN202111138343 A CN 202111138343A CN 113842640 A CN113842640 A CN 113842640A
Authority
CN
China
Prior art keywords
target
input
attack
user
common
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111138343.0A
Other languages
Chinese (zh)
Inventor
吴楚洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202111138343.0A priority Critical patent/CN113842640A/en
Publication of CN113842640A publication Critical patent/CN113842640A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • A63F13/2145Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1068Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to detect the point of contact of the player on a surface, e.g. floor mat, touch pad
    • A63F2300/1075Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to detect the point of contact of the player on a surface, e.g. floor mat, touch pad using a touch screen
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/65Methods for processing data by generating or executing the game program for computing the condition of a game character

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a control method and device of common attacks and electronic equipment, and belongs to the technical field of games. The method comprises the following steps: receiving a first input of a user under the condition of carrying out common attack on a first target; in response to the first input, the first target is locked and successive common attacks on the first target are maintained. Based on the technical scheme provided by the embodiment of the disclosure, the problem that the target which originally wants to be flat A is lost due to the fact that the electronic equipment automatically switches the flat A target can be solved.

Description

Control method and device for common attack and electronic equipment
Technical Field
The disclosure belongs to the technical field of games, and particularly relates to a control method and device of common attacks and electronic equipment.
Background
With the development of game technology, more and more games, such as MOBA (Multiplayer Online Battle Arena) games, can be supported on mobile terminals.
Currently, in MOBA games, players often need to use a flat a (general attack) enemy hero, or a flat a complement knife.
However, in the case of the level a, if there are a plurality of enemy units, and according to the attack rule of the level a, for example, the hero is attacked preferentially or the soldier is attacked preferentially, the electronic device automatically switches to the level a target, and the target originally intended for the level a is lost.
Disclosure of Invention
The embodiment of the disclosure aims to provide a method and a device for controlling a common attack and an electronic device, which can solve the problem that an original target which wants to be flat A is lost due to automatic switching of the flat A target by the electronic device.
In order to solve the technical problem, the present disclosure is implemented as follows:
in a first aspect, an embodiment of the present disclosure provides a method for controlling a common attack, where the method includes: receiving a first input of a user under the condition of carrying out common attack on a first target; in response to the first input, the first target is locked and successive common attacks on the first target are maintained.
In a second aspect, an embodiment of the present disclosure provides a device for controlling a common attack, where the device includes: a receiving module and a locking module; the receiving module is used for receiving a first input of a user under the condition of carrying out common attack on a first target; and the locking module is used for responding to the first input received by the receiving module, locking the first target and keeping continuous common attacks on the first target.
In a third aspect, the disclosed embodiments provide an electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor implement the steps of the method according to the first aspect.
In a fourth aspect, the disclosed embodiments provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, the embodiments of the present disclosure provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the present disclosure, in the case of performing a normal attack on the first target, if the electronic device receives a first input of a user, the electronic device may lock the first target in response to the first input, and keep performing a continuous normal attack on the first target. Under the condition that the game comprises a plurality of attack targets, the electronic equipment can be prevented from automatically switching the targets of common attacks to cause the loss of the targets which the user originally wants to attack, so that the attack failure caused by the automatic switching of rules in the game is avoided, the user is not required to switch the attack targets of the common attacks back and forth in the game process, the operation flow of the user is simplified, and the operation experience of the user is improved.
Drawings
Fig. 1 is one of schematic flow diagrams of a control method of a common attack provided in an embodiment of the present disclosure;
FIG. 2 is a schematic view of an interface provided by an embodiment of the present disclosure;
fig. 3 is a second schematic flowchart of a method for controlling a common attack according to an embodiment of the disclosure;
fig. 4 is a third schematic flowchart of a control method of a common attack according to an embodiment of the present disclosure;
fig. 5 is a fourth schematic flowchart of a control method of a common attack according to an embodiment of the present disclosure;
FIG. 6 is a second schematic view of an interface provided by the present disclosure;
fig. 7 is a schematic structural diagram of a possible control device for a common attack according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure;
fig. 9 is a hardware schematic diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
First, some nouns or terms appearing in the description of the embodiments of the present disclosure are explained:
1. virtual scene: is a virtual scene that an application program displays (or provides) when running on a terminal or server.
Optionally, the virtual scene is a simulated environment of the real world, or a semi-simulated semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene, and the virtual environment can be sky, land, sea and the like, wherein the land comprises environmental elements such as deserts, cities and the like. For example, in a sandbox type 3D shooting game, the virtual scene is a 3D game world for a player to control a virtual object to play against, and an exemplary virtual scene may include: at least one element selected from a group consisting of a mountain, a flat ground, a river, a lake, an ocean, a desert, a sky, a plant, a building, and a vehicle; for example, for a 2D card game in which a virtual scene is a scene for displaying a released card or a virtual object corresponding to a card, an example virtual scene may include: a arena, a battle field, or other 'field' elements or other elements capable of displaying the card battle state; for a 2D or 3D multiplayer online tactical sports game, the virtual scene is a 2D or 3D terrain scene for the virtual object to fight against, and exemplary virtual scenes may include: mountains, lines, rivers, classrooms, tables and chairs, podium and other elements in the canyon style.
2. Virtual object: refers to a dynamic object that can be controlled in a virtual scene.
Alternatively, the dynamic object may be a virtual character, a virtual animal, an animation character, or the like. The virtual object is a Character that a Player controls through an input device, or an AI (Artificial Intelligence) set in a virtual environment match-up through training, or a Non-NPC (Non-Player Character) set in a virtual scene match-up. Optionally, the virtual object is a virtual character playing a game in a virtual scene. Optionally, the number of virtual objects in the virtual scene match is preset, or is dynamically determined according to the number of clients participating in the match, which is not limited in the embodiment of the present disclosure. In one possible implementation, the user can control the virtual object to move in the virtual scene, e.g., control the virtual object to run, jump, crawl, etc., and can also control the virtual object to fight against other virtual objects using skills, virtual props, etc., provided by the application. The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
In the control method of the common attack in the embodiment of the present disclosure, the method may be executed in a terminal device or a server. The terminal device may be a local terminal device. When the control method of the common attack is operated on the server, the control method of the common attack can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
Optionally, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud games. Taking a cloud game as an example, a cloud game refers to a game mode based on cloud computing. In the cloud game operation mode, the game program operation main body and the game picture presentation main body are separated, the storage and the operation of the control method of the common attack are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; however, the terminal device performing the information processing is a cloud game server in the cloud. When a game is played, a player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, data such as game pictures and the like are encoded and compressed, the data are returned to the client device through a network, and finally the data are decoded through the client device and the game pictures are output.
Alternatively, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
The terms first, second and the like in the description and in the claims of the present disclosure are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the disclosure may be practiced other than those illustrated or described herein, and that the objects identified as "first," "second," etc. are generally a class of objects and do not limit the number of objects, e.g., a first object may be one or more. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a control method for common attacks provided by the embodiments of the present disclosure with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flowchart of a method for controlling a common attack according to an embodiment of the present disclosure, as shown in fig. 1, the method includes the following steps S101 and S102:
s101, under the condition that common attack is conducted on a first target, the electronic equipment receives first input of a user.
It will be appreciated that the first input is an input that triggers the target of an attack that locks against a common attack.
Optionally, the first input may be a preset input of a default setting, or may also be an input defined by a user, which is not specifically limited in this disclosure.
Optionally, in this embodiment of the present disclosure, the first input may be an input of a user on a screen, or may also be an input of a user controlling a gesture of the electronic device to be in a preset state.
For example, the first input may be an input of a user pressing a virtual key of a general attack, or an input of a user tilting the electronic device to a preset angle.
S102, the electronic equipment responds to the first input, locks the first target and keeps continuously and commonly attacking the first target.
It should be noted that the control method of the common attack provided by the embodiment of the present disclosure may be applied to a game on an electronic device, for example, an MOBA game.
In the method for controlling a common attack provided by the embodiment of the present disclosure, when a common attack is performed on a first target, if the electronic device receives a first input of a user, the electronic device may lock the first target in response to the first input, and keep performing a continuous common attack on the first target. Under the condition that the game comprises a plurality of attack targets, the electronic equipment can be prevented from automatically switching the targets of common attacks to cause the loss of the targets which the user originally wants to attack, so that the attack failure caused by the automatic switching of rules in the game is avoided, the user is not required to switch the attack targets of the common attacks back and forth in the game process, the operation flow of the user is simplified, and the operation experience of the user is improved.
Alternatively, in the embodiment of the present disclosure, the first input may be an input of a user pressing a virtual key of a common attack for a long time.
It is understood that in the game interface, the electronic device may display a plurality of virtual keys for the user to operate, wherein the plurality of virtual keys may include a common attack virtual key.
An application scenario of the present embodiment is provided below. Fig. 2 is a schematic diagram of a graphical user interface provided in an embodiment of the present disclosure. The interface includes a game scene and a virtual object located in the game scene, which are not shown in fig. 2. The player controls the movement of the virtual object in the game scene. The interface in fig. 2 shows a generic attack control 21, the generic attack control 21 being displayed on top of the game scene. And triggering an attack instruction through touch operation acting on an attack response area of the common attack control, and controlling the virtual character to execute attack operation in a game scene according to the attack instruction. For example, when the player clicks, the attack behavior triggered by the common attack control 21 is a single parallel a behavior, and when the player presses for a long time, the attack behavior triggered by the common attack control 21 is to lock the second virtual character and perform a continuous parallel a behavior on the second virtual character; the display position of the common attack control 21 can be adjusted according to a position setting instruction, where the position setting instruction may be triggered on a setting interface or in the process of dealing with an office. The touch operation acting on the attack control can be clicking, double clicking, long pressing, sliding and the like.
Based on the scheme, after the user starts to carry out common attack on the first target, if the user needs to lock the first target for attack, the user can press the virtual key of the common attack for a long time to lock the first target, the common attack can be continuously carried out on the first target, the user does not need to click the virtual key all the time, the operation is simple, the labor is saved, and the game experience of the user is improved.
Optionally, with reference to fig. 1, as shown in fig. 3, the method for controlling a common attack provided by the embodiment of the present disclosure may further include, after the above S102, the following S103:
s103, under the condition that the common attack on the first target is kept, if the distance of the first target is larger than the common attack distance, the electronic equipment tracks the first target and keeps continuously carrying out the common attack on the first target.
It can be understood that in a normal attack scenario, a maximum normal attack distance is usually set, and if the distance between the attacked object and the player object is greater than the normal attack distance, the player's normal attack cannot attack the attacked object.
For example, the electronic device may detect whether the target distance of the first target from the player is greater than the distance of the normal attack while maintaining the normal attack on the first target.
In the case where the target distance is greater than the common attack distance, the electronic device may trigger the player object to begin tracking the first target and keep continuing to make successive common attacks on the first target.
Based on the scheme, the electronic device can determine whether to track the first target according to the distance between the first target and the player under the condition of keeping the common attack on the first target, and can start to track the first target under the condition that the distance of the first target is greater than the distance of the common attack, and keep continuous common attack on the first target in the tracking process. The attack target is tracked without additional operation of the user, and the operation steps of the user are simplified, so that the attack target can be prevented from being lost in continuous common attack, and the operation experience of the user is improved.
Optionally, the method for controlling a common attack provided by the embodiment of the present disclosure may further include, after S102 or S103, S104 described below. In fig. 4, S104 is executed after S102 as an example.
And S104, if the electronic equipment detects that the user cancels the first input, the electronic equipment cancels the continuous common attack on the first target and cancels the locking of the first target.
It will be appreciated that if the user no longer needs to lock on the first target, the user may cancel the target input, thereby releasing the lock on the first target and canceling the continued common attack on the first target.
Illustratively, in a case where the first input is that the user presses a virtual key of a normal attack for a long time, the user may cancel the long-press operation on the virtual key. It may be switched to a single click input, for example.
It should be noted that, after the electronic device cancels the locking of the first target, if the user needs to continue to perform the ordinary attack, the electronic device may also continue to perform the single ordinary attack on the first target according to the operation of the user. For example, the user can switch the operation gesture of the virtual key under normal attack, and the user directly and quickly switches from long-pressing the virtual key under normal attack to clicking input of the virtual key under normal attack once, so that normal attack is performed on the first target once.
Based on the scheme, under the condition of carrying out continuous common attack on the first target lock, if the user does not need to lock the first target any more, the user can directly cancel the input of the first input, so that the electronic equipment can quickly cancel the target lock on the common attack.
Optionally, the method for controlling a common attack provided by the embodiment of the present disclosure may further include, after S102 or S103, S105 described below. Fig. 5 exemplifies that S105 is executed after S102.
S105, the electronic equipment switches the target of the continuous common attack to the second target under the condition that the second input of the user is received.
Wherein the second target is determined based on the input parameters of the second input.
For example, the input parameter of the second input may include at least one of a shape of an input trajectory, a duration of the input, a direction of the input, and a distance of the input.
Optionally, the second input may be a preset gesture input or a user-defined gesture input.
It should be noted that, in the case of locking the target of the normal attack to perform the continuous normal attack, the user may quickly switch the target of the continuous normal attack based on the second input.
Based on the scheme, under the condition that the first target is locked and the continuous common attack is continuously carried out on the first target, if the user needs to switch the target of the continuous common attack, the user can input the second input to manually control the electronic equipment to switch the target which needs to be locked again to carry out the continuous common attack, the electronic equipment is prevented from being automatically switched to cause the target to be switched to the attack target which is not expected by the user, the operation is simple, and the game physical examination of the user is better.
Optionally, in the control method of a general attack provided in the embodiment of the present disclosure, in a case that the first input is an input that the user presses the virtual key of the general attack for a long time, the second input is an input that the user slides in the first direction in a process of pressing the virtual key of the general attack for a long time.
Wherein the second target is a target determined from a plurality of targets according to the first direction.
For example, the user may slide toward the first direction at the pressed position, and the user may rotate toward the first direction at the pressed position.
It should be noted that, if the user needs to switch the target of the continuous common attack in the game process, the user may slide to the first direction where the second target is located under the condition of long-pressing the virtual key of the common attack, and the electronic device may determine the second target corresponding to the first direction where the user slides as the target of the continuous common attack to be locked again
Based on the scheme, in the process of playing the game by the user, if the user needs to switch the target of the common attack, for example, the user estimates that the target of the continuous attack is about to be died after 1 second, the user can continuously press the virtual key of the common attack for a long time and slide or rotate towards the attack target expected by the user, so that the target which needs the continuous common attack again can be quickly selected and locked, the operations of clicking the moving position on the screen for many times and the like by the user are not needed, the operation steps of the user are simplified, the switching time is shortened, the attack efficiency of the user can be increased, and the game experience of the user is improved.
Optionally, in the control method of a general attack provided in the embodiment of the present disclosure, in a case that the second input is received, the electronic device may display the indication information and the identification information of the target to be switched according to an input direction of the second input.
Exemplarily, fig. 6 is a schematic diagram of a display interface provided by an embodiment of the present disclosure. Assuming that the player is locking enemy 1 by long-pressing the general attack control 21 and is continuously leveling a enemy 1, as shown in fig. 6, if the user long-presses and slides to the right on the general attack control 21 (second input), the electronic apparatus may display a selection indicator, for example, "2" on enemy 2, "1" on enemy 3, and an arrow orientation indicating a direction from the player toward enemy 2, on the attack target in the map corresponding to the direction of the second input, pointing to enemy 2 shown in the figure.
It can be understood that, after the identification information of the attack target is displayed, the user can quickly adjust the direction according to the arrow displayed on the screen, so that the electronic device can quickly lock the target which the user needs to switch.
Based on the scheme, after the targets of the continuous common attacks are locked, if the user needs to switch the targets of the continuous locked continuous common attacks, after the user inputs the second input, the electronic device can display identification information of the targets which can be attacked and indication information of the input direction of the second input on a screen so as to prompt the user to quickly and accurately switch the locked targets according to the indication information of the input direction and the displayed identification information of the targets to be switched, the probability of switching errors can be reduced, the user does not need to switch for multiple times, and the operation time of the user is shortened.
Optionally, in the control method of a general attack provided in the embodiment of the present disclosure, the second input may be an input that a user slides to the first direction and keeps the first direction for a preset time.
Illustratively, the preset time period may be 0.1 second, 0.5 second, or the like.
It should be noted that, during the process of adjusting the locked successive common attack targets by the user, the user may slide toward a direction, and after the direction is continuously pressed for a certain period of time, the electronic device may determine that the target in the direction is selected by the user as the attack target.
Based on the scheme, under the condition of adjusting the locked target of continuous common attack, a user does not need to leave a finger from a screen, and only needs to slide towards one direction and keep the preset time length in the process of keeping long press, the locked target can be quickly switched, the user operation is simplified, the problem that the switching time length is long due to the fact that the user operation is not skilled enough and needs a plurality of operation steps is avoided, and the probability of casualties caused by the fact that the user is attacked for a long time in switching is reduced.
On the basis of the application scenario, the player can trigger the control method for executing the common attack in the embodiment by triggering the preset control.
It should be noted that, in the control method of a general attack provided in the embodiment of the present disclosure, the execution subject may be a control device of the general attack, or a control module of the method for executing control of the general attack in the control device of the general attack. In the embodiment of the present disclosure, a method for a control device of a general attack to execute control of the general attack is taken as an example, and a device for controlling the general attack provided in the embodiment of the present disclosure is described.
Fig. 7 is a control apparatus for a general attack provided in an embodiment of the present disclosure, and as shown in fig. 7, the control apparatus 700 for a general attack includes: a receiving module 701 and a locking module 702; a receiving module 701, configured to receive a first input of a user under a condition that a common attack is performed on a first target; a locking module 702, configured to lock the first target in response to the first input received by the receiving module 701, and keep performing successive common attacks on the first target.
Optionally, the locking module is further configured to, under the condition that a common attack on the first target is kept, track the first target and keep performing a continuous common attack on the first target if the distance of the first target is greater than a common attack distance.
Optionally, the locking module is further configured to, after keeping performing a common attack on the first target, cancel performing a continuous common attack on the first target and cancel locking on the first target if it is detected that the user cancels the first input.
Optionally, the locking module is further configured to, under a condition that continuous common attacks are kept on the first target, switch the target of the continuous common attacks to a second target under a condition that a second input of the user is received; wherein the second target is determined according to the input parameters of the second input.
Optionally, the first input is an input of a user pressing a virtual key of a common attack for a long time.
Optionally, the second input is input by a user sliding in a first direction in a process of long-pressing a virtual key of a common attack, and the second target is a target determined from a plurality of targets according to the first direction.
Optionally, the apparatus for controlling a general attack further includes: a display module; the display module is used for displaying direction indication information and identification information of the target to be switched according to the input direction of the second input under the condition that the second input is received.
Optionally, the second input is an input that a user slides to a first direction and keeps the first direction for a preset time.
The embodiment of the disclosure provides a control device for common attacks, which, in a case of performing a common attack on a first target, if a first input of a user is received, may lock the first target in response to the first input, and keep performing a continuous common attack on the first target. Under the condition that the game comprises a plurality of attack targets, the target which the user originally wants to attack can be prevented from being lost due to automatic switching of the targets of common attack, so that attack failure caused by automatic switching of rules in the game is avoided, the user does not need to switch the targets of common attack back and forth in the game process, the operation flow of the user is simplified, and the operation experience of the user is improved.
The control device of the common attack in the embodiment of the present disclosure may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, a UMPC (ultra-mobile personal computer), a netbook, a PDA (personal digital assistant), or the like, and the non-mobile electronic device may be a server, a NAS (Network Attached Storage), a PC (personal computer), a TV (television), a teller machine, a self-service machine, or the like, and the disclosed embodiments are not limited in particular.
The control device of the common attack in the embodiment of the present disclosure may be a device having an operating system. The operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present disclosure is not particularly limited.
The control device for common attacks provided in the embodiments of the present disclosure can implement each process implemented by the method embodiments of fig. 1 to fig. 6, and is not described here again to avoid repetition.
Optionally, as shown in fig. 8, an electronic device 800 according to an embodiment of the present disclosure is further provided, and includes a processor 801, a memory 802, and a program or an instruction stored in the memory 802 and executable on the processor 801, where the program or the instruction is executed by the processor 801 to implement each process of the foregoing control method embodiment of the common attack, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present disclosure includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present disclosure.
The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910.
Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The system comprises a user input unit, a first target processing unit and a second target processing unit, wherein the user input unit is used for receiving a first input of a user under the condition of carrying out common attack on a first target; a processor 910, configured to lock the first target and keep performing successive common attacks on the first target in response to the first input.
The embodiment of the disclosure provides an electronic device, where in a case of performing a general attack on a first target, if the electronic device receives a first input of a user, the electronic device may lock the first target in response to the first input, and keep performing a continuous general attack on the first target. Under the condition that the game comprises a plurality of attack targets, the electronic equipment can be prevented from automatically switching the targets of common attacks to cause the loss of the targets which the user originally wants to attack, so that the attack failure caused by the automatic switching of rules in the game is avoided, the user is not required to switch the attack targets of the common attacks back and forth in the game process, the operation flow of the user is simplified, and the operation experience of the user is improved.
It is to be understood that, in the embodiment of the present disclosure, the input Unit 904 may include a GPU (Graphics Processing Unit) 941 and a microphone 942, and the Graphics processor 941 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 906 may include a display panel 961, and the display panel 961 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes a touch panel 971 and other input devices 972. A touch panel 971, also referred to as a touch screen. The touch panel 971 may include two portions of a touch detection device and a touch controller. Other input devices 972 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 909 can be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 910 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The embodiments of the present disclosure further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned control method for a general attack, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiment of the present disclosure further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the control method embodiment of the foregoing general attack, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present disclosure may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it is noted that the scope of the methods and apparatus in the embodiments of the present disclosure is not limited to performing functions in the order shown or discussed, but may include performing functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present disclosure.
While the present disclosure has been described with reference to the embodiments illustrated in the drawings, which are intended to be illustrative rather than restrictive, it will be apparent to those of ordinary skill in the art in light of the present disclosure that many more modifications may be made without departing from the spirit of the disclosure and the scope of the appended claims.

Claims (11)

1. A method for controlling a common attack, the method comprising:
receiving a first input of a user under the condition of carrying out common attack on a first target;
and locking the first target in response to the first input, and keeping continuous common attacks on the first target.
2. The method of claim 1, further comprising:
under the condition of keeping the common attack on the first target, if the distance of the first target is greater than the common attack distance, tracking the first target and keeping the continuous common attack on the first target.
3. The method of claim 1, further comprising: after the maintaining of the common attack on the first target, the method further comprises:
and if the user is detected to cancel the first input, canceling the continuous common attack on the first target and canceling the locking of the first target.
4. The method of claim 1, wherein in the case of maintaining successive common attacks on the first target, the method further comprises:
under the condition of receiving a second input of the user, switching the target of the continuous common attack into a second target;
wherein the second target is determined according to the input parameters of the second input.
5. The method of claim 1, wherein the first input is a user's long press of a virtual key of a common attack.
6. The method of claim 5, wherein the second input is an input of a user sliding in a first direction during a long press of a virtual key of a common attack, and the second target is a target determined from a plurality of targets according to the first direction.
7. The method of claim 6, further comprising:
and under the condition of receiving the second input, displaying direction indication information and identification information of the target to be switched according to the input direction of the second input.
8. The method of claim 7, wherein the second input is an input by a user sliding in a first direction and holding in the first direction for a preset length of time.
9. A general attack control apparatus, comprising: a receiving module and a locking module;
the receiving module is used for receiving a first input of a user under the condition of carrying out common attack on a first target;
the locking module is used for responding to the first input, locking the first target and keeping continuous common attacks on the first target.
10. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method of controlling a common attack according to any one of claims 1 to 8.
11. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the method of controlling a general attack according to any one of claims 1 to 8.
CN202111138343.0A 2021-09-27 2021-09-27 Control method and device for common attack and electronic equipment Pending CN113842640A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111138343.0A CN113842640A (en) 2021-09-27 2021-09-27 Control method and device for common attack and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111138343.0A CN113842640A (en) 2021-09-27 2021-09-27 Control method and device for common attack and electronic equipment

Publications (1)

Publication Number Publication Date
CN113842640A true CN113842640A (en) 2021-12-28

Family

ID=78980187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111138343.0A Pending CN113842640A (en) 2021-09-27 2021-09-27 Control method and device for common attack and electronic equipment

Country Status (1)

Country Link
CN (1) CN113842640A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203075637U (en) * 2012-12-04 2013-07-24 博睿祥科技(天津)有限公司 Handheld game terminal with functions of fast switching targets and locking targets
CN111589130A (en) * 2020-04-24 2020-08-28 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium in virtual scene
WO2021043069A1 (en) * 2019-09-05 2021-03-11 腾讯科技(深圳)有限公司 Virtual object attack prompt method and apparatus, and terminal and storage medium
CN112691375A (en) * 2021-01-13 2021-04-23 腾讯科技(深圳)有限公司 Virtual object control method, device, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203075637U (en) * 2012-12-04 2013-07-24 博睿祥科技(天津)有限公司 Handheld game terminal with functions of fast switching targets and locking targets
WO2021043069A1 (en) * 2019-09-05 2021-03-11 腾讯科技(深圳)有限公司 Virtual object attack prompt method and apparatus, and terminal and storage medium
CN111589130A (en) * 2020-04-24 2020-08-28 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium in virtual scene
CN112691375A (en) * 2021-01-13 2021-04-23 腾讯科技(深圳)有限公司 Virtual object control method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN110548288B (en) Virtual object hit prompting method and device, terminal and storage medium
WO2022017063A1 (en) Method and apparatus for controlling virtual object to recover attribute value, and terminal and storage medium
CN113440846B (en) Game display control method and device, storage medium and electronic equipment
CN111399639B (en) Method, device and equipment for controlling motion state in virtual environment and readable medium
JP7477640B2 (en) Virtual environment screen display method, device, and computer program
CN112416196B (en) Virtual object control method, device, equipment and computer readable storage medium
CN112755527A (en) Virtual character display method, device, equipment and storage medium
CN113546417A (en) Information processing method and device, electronic equipment and storage medium
KR20210142739A (en) Virtual object control method and apparatus, terminal and storage medium
CN113289331B (en) Display method and device of virtual prop, electronic equipment and storage medium
CN114225372B (en) Virtual object control method, device, terminal, storage medium and program product
CN113181651A (en) Method and device for controlling movement of virtual object in game, electronic equipment and storage medium
CN112843682B (en) Data synchronization method, device, equipment and storage medium
CN113398601A (en) Information transmission method, information transmission device, computer-readable medium, and apparatus
CN114377396A (en) Game data processing method and device, electronic equipment and storage medium
CN111249726B (en) Operation method, device, equipment and readable medium of virtual prop in virtual environment
CN112717386A (en) Method, device, equipment and medium for displaying checkpoint picture
WO2024098628A1 (en) Game interaction method and apparatus, terminal device, and computer-readable storage medium
CN115634449A (en) Method, device, equipment and product for controlling virtual object in virtual scene
CN113842640A (en) Control method and device for common attack and electronic equipment
CN115105835A (en) Operation method and device in game, nonvolatile storage medium and electronic device
CN113663326A (en) Game skill aiming method and device
CN115970262A (en) Game interaction method and device, terminal equipment and computer-readable storage medium
CN118767424A (en) Information processing method and device in game, electronic equipment and storage medium
CN117122916A (en) Game character attack direction control method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination