CN116999834A - Method and device for controlling target object in game, electronic equipment and storage medium - Google Patents
Method and device for controlling target object in game, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN116999834A CN116999834A CN202311016945.8A CN202311016945A CN116999834A CN 116999834 A CN116999834 A CN 116999834A CN 202311016945 A CN202311016945 A CN 202311016945A CN 116999834 A CN116999834 A CN 116999834A
- Authority
- CN
- China
- Prior art keywords
- virtual
- character
- target
- teammate
- game
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000012546 transfer Methods 0.000 claims abstract description 72
- 238000003825 pressing Methods 0.000 claims description 34
- 230000005540 biological transmission Effects 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 5
- 238000012163 sequencing technique Methods 0.000 claims description 5
- 230000003993 interaction Effects 0.000 description 28
- 238000010586 diagram Methods 0.000 description 14
- 230000009471 action Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 6
- 230000004044 response Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000013507 mapping Methods 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008485 antagonism Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features 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/10—Features 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/1068—Features 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/1075—Features 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
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features 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/30—Features 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 output arrangements for receiving control signals generated by the game device
- A63F2300/308—Details of the user interface
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features 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/60—Methods for processing data by generating or executing the game program
- A63F2300/64—Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides a control method, a device, electronic equipment and a storage medium of a target object in a game, wherein a target virtual character, a mobile control and a transfer control with control right of the target object are displayed on a graphical user interface; responding to a first triggering operation for the transfer control, and acquiring an operation parameter corresponding to a second triggering operation for the mobile control; determining a first virtual character from the teammate virtual characters based on operation parameters of the first triggering operation and the station positions of the teammate virtual characters in the target game battle in the game scene, and displaying character identifiers for referring to the first virtual character; and responding to the selection operation aiming at the target character identification in the character identifications, determining the target pass character from the first virtual character, and controlling the target virtual character to transmit the target object to the direction of the target pass character. Thus, the target pass character can be accurately selected from teammate virtual characters, and the accuracy of target pass character selection is improved.
Description
Technical Field
The present application relates to the field of game technologies, and in particular, to a method and apparatus for controlling a target object in a game, an electronic device, and a storage medium.
Background
With the continuous development of game technology, a great number of games with different themes are developed to meet the requirements of players. Sports games are one type of game. In the related art, a plurality of controls are displayed on a scene picture of a sports competition game running in a terminal device in an overlapping manner, wherein the controls comprise a moving control and at least one action control, the moving control can be used for controlling a virtual character to move in a game scene, and the action control is used for controlling the virtual character to execute corresponding competition actions.
For ball games, a plurality of virtual characters in the same camp are required to cooperate to transmit a target object to a designated area to complete scoring, and in the process of transporting the target object, transfer operation between different virtual characters in the same camp is an important control step.
In the related art, the target pass character of the target virtual character with the useful ball control right is generally selected according to the operation parameters of the mobile control while the transfer control in the control is touched by a point, for example, different pass objects can be selected according to the operation duration of the trigger operation of the mobile control, but in the actual operation process, it is difficult for a player to precisely control the operation duration of the trigger operation of the mobile control to accurately select the target pass character, that is, whether the pass mode of selecting different target pass characters through the operation duration of the trigger operation of the mobile control or the selection accuracy of the target pass character is low is a problem.
Disclosure of Invention
Accordingly, an object of the present application is to provide a method, an apparatus, an electronic device, and a storage medium for controlling a target object in a game, wherein a first virtual character is selected according to an operation parameter for a trigger operation of a movement control and a station of a teammate virtual character in a game scene, a character identifier of the first teammate virtual character is displayed in a graphical user interface, and a target pass character is determined through a selection operation for the character identifier of the first teammate virtual character, so that the target virtual character is controlled to transmit the target object in a direction in which the target pass character is located, and the target pass character can be accurately selected from the teammate virtual characters, thereby contributing to improving accuracy of target pass character selection.
In a first aspect, an embodiment of the present application provides a method for controlling a target object in a game, where a graphical user interface is provided by a terminal device, where at least a part of a game scene is displayed on the graphical user interface, where the game scene includes a plurality of game camps and a target object, each game camps includes a plurality of virtual characters, and the virtual characters of the plurality of game camps compete for control rights of the target object in the game scene; the control method comprises the following steps:
Displaying a target virtual character with the target object control right, a movement control and a transfer control on the graphical user interface, wherein the target virtual character is any virtual character in a target game camp, the movement control is used for controlling the target virtual character to move in the game scene, the transfer control is used for controlling the target virtual character to transfer the target object in the game scene, and the target game camp is the game camp controlled by the terminal equipment;
responding to a first triggering operation for the transfer control, and acquiring an operation parameter corresponding to a second triggering operation for the mobile control, wherein the second triggering operation is used for controlling the target virtual character to move together with the target object in the game scene;
determining a first virtual role from the teammate virtual roles based on operation parameters corresponding to the second triggering operation and the station positions of the teammate virtual roles in the target game battle in the game scene, and displaying a role identifier for referring to the first virtual role on the graphical user interface;
And responding to the selection operation aiming at the target role identification in the role identifications, determining a target pass role from the first virtual roles, and controlling the target virtual roles to transmit the target object to the direction in which the target pass role is located.
In a second aspect, an embodiment of the present application further provides a control device for a target object in a game, where a graphical user interface is provided through a terminal device, where at least a part of a game scene is displayed on the graphical user interface, where the game scene includes a plurality of game camps and a target object, each game camps includes a plurality of virtual characters, and the virtual characters of the plurality of game camps compete for control rights of the target object in the game scene; the control device includes:
the object display module is used for displaying a target virtual character with the control right of the target object, a moving control and a transfer control on the graphical user interface, wherein the target virtual character is any virtual character in a target game camp, the moving control is used for controlling the target virtual character to move in the game scene, the transfer control is used for controlling the target virtual character to transfer the target object in the game scene, and the target game camp is the game camp controlled by the terminal equipment;
The mobile control module is used for responding to the first triggering operation of the transfer control and obtaining operation parameters corresponding to the second triggering operation of the mobile control, wherein the second triggering operation is used for controlling the target virtual character to move together with the target object in the game scene;
the role identification display module is used for determining a first virtual role from the teammate virtual roles based on the operation parameters corresponding to the second trigger operation and the station positions of the teammate virtual roles in the target game battle in the game scene, and displaying the role identification for referring to the first virtual role on the graphical user interface;
and the transmission control module is used for responding to the selection operation aiming at the target role identifier in the role identifiers, determining a target pass role from the first virtual roles and controlling the target virtual roles to transmit the target object to the direction in which the target pass role is located.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the method of controlling a target object in a game as described in any one of the first aspects.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method for controlling a target object in a game as described in any one of the first aspects.
The method, the device, the electronic equipment and the storage medium for controlling the target object in the game display the target virtual character, the mobile control and the transfer control with the control right of the target object on the graphical user interface; responding to a first triggering operation for the transfer control, and acquiring an operation parameter corresponding to a second triggering operation for the mobile control; determining a first virtual role from the teammate virtual roles based on operation parameters corresponding to the first triggering operation and the station positions of the teammate virtual roles in the target game battle in the game scene, and displaying a role identifier for referring to the first virtual role on a graphical user interface; and responding to the selection operation aiming at the target character identification in the character identifications, determining the target pass character from the first virtual character, and controlling the target virtual character to transmit the target object to the direction of the target pass character. In this way, according to the operation parameters aiming at the triggering operation of the mobile control and the station position of the teammate virtual role in the game scene, the first virtual role is screened out, the role identification of the first teammate virtual role is displayed in the graphical user interface, and the target pass role is determined through the selection operation of the role identification of the first teammate virtual role, so that the target virtual role is controlled to transmit the target object to the direction of the target pass role, the target pass role can be accurately selected from the teammate virtual roles, and the accuracy of the target pass role selection is facilitated to be improved.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for controlling a target object in a game according to an embodiment of the present application;
FIG. 2 is a schematic diagram of adjusting the identity of a teammate virtual character according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a graphical user interface according to an embodiment of the present application;
FIG. 4 is a second diagram of a graphical user interface according to an embodiment of the present application;
FIG. 5 is a third diagram of a graphical user interface according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a control device for a target object in a game according to an embodiment of the present application;
FIG. 7 is a second schematic diagram of a control device for a target object in a game according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments of the present application, every other embodiment obtained by a person skilled in the art without making any inventive effort falls within the scope of protection of the present application.
First, the terms related to the present application will be described:
(1) Terminal equipment
The terminal equipment related in the embodiment of the application mainly refers to a terminal which is used for providing a graphical user interface and can control and operate the virtual roles. The terminal device may be a local terminal device mentioned below, or a client device in a cloud interaction system. The terminal device may include, but is not limited to, any of the following: in the embodiment of the application, the application program is introduced as a game application, and alternatively, the application program can be a stand-alone application program, such as a stand-alone 3D game program, or a network online application program.
(2) Graphic user interface
A graphical user interface is an interface display format in which a person communicates with a computer, allowing a user to manipulate icons, logos, or menu options on a screen using an input device such as a mouse or a keyboard, and also allowing a user to manipulate icons or menu options on a screen by performing a touch operation on a touch screen of a touch terminal to select a command, start a program, or perform some other task, etc.
(3) Game scene
A game scene is a scene that an application program displays (or provides) when running on a terminal or a server, i.e., a scene used in normal game play. That is, the game scene refers to a virtual game control carrying a virtual character during the progress of a game, and the virtual character can be controlled by an operation instruction issued by a user (i.e., a player) to a terminal device in the game scene to perform actions such as movement and skill release. Optionally, the game scene may be a simulation environment for the real world, a semi-simulation and semi-fictional virtual environment, or a pure fictional virtual environment. The game scene can be any one of a two-dimensional virtual interaction scene, a 2.5-dimensional virtual interaction scene and a three-dimensional virtual interaction scene, and the virtual environment can be sky, land, ocean and the like, wherein the land comprises environmental elements such as deserts, cities and the like. The game scene is a scene of a complete game logic of a virtual character controlled by a user. Alternatively, the game scenario may also be used for a game scenario fight between at least two virtual characters, with virtual resources available for use by the at least two virtual characters in the game scenario. By way of example, a game scene may include any one or more of the following elements: game background elements, game object elements, game prop elements, game material elements, and the like.
(4) Virtual roles:
refers to dynamic objects that can be controlled in a game scene. Alternatively, the dynamic object may be a virtual character, a virtual animal, a cartoon character, or the like. The virtual Character is a Character that a Player controls through an input device (e.g., a terminal device), or is an artificial intelligence (Artificial Intelligence, AI) set in a virtual scene fight by training, or is a Non-Player Character (NPC) set in a game scene fight. Alternatively, the avatar may include a avatar that plays in the game scene. Optionally, the number of virtual characters in the game scene fight is preset, or is dynamically determined according to the number of clients joining the fight, which is not limited by the embodiment of the present application. In one possible implementation, a user can control a virtual character to move in the virtual scene, e.g., control the virtual character to run, jump, crawl, etc., as well as control the virtual character to fight other virtual characters using skills, virtual props, etc., provided by the application.
Next, the technical background of the present application is described:
With the continuous development of game technology, a great number of games with different themes are developed to meet the requirements of players. Sports games are one type of game. In the related art, a plurality of controls are displayed on a scene picture of a sports competition game running in a terminal device in an overlapping manner, wherein the controls comprise a moving control and at least one action control, the moving control can be used for controlling a virtual character to move in a game scene, and the action control is used for controlling the virtual character to execute corresponding competition actions.
For ball games, a plurality of virtual characters in the same camp are required to cooperate to transmit a target object to a designated area to complete scoring, and in the process of transporting the target object, transfer operation between different virtual characters in the same camp is an important control step.
In the related art, the target pass character of the target virtual character with the useful ball control right is generally selected according to the operation parameters of the mobile control while the transfer control in the control is touched by a point, for example, different pass objects can be selected according to the operation duration of the trigger operation of the mobile control, but in the actual operation process, it is difficult for a player to precisely control the operation duration of the trigger operation of the mobile control to accurately select the target pass character, that is, whether the pass mode of selecting different target pass characters through the operation duration of the trigger operation of the mobile control or the selection accuracy of the target pass character is low is a problem.
Based on the above, the embodiment of the application provides a control method of a target object in a game so as to improve the accuracy of selecting a target pass role.
The method for controlling the target object in the seed game in one embodiment of the application can be operated on a local terminal device or a server. When the control method of the target object in the game is operated on the server, the method can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, the running main body of the game program and the game picture presentation main body are separated, the storage and running of the control method of the target object in the game are completed on the cloud game server, and the function of 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; but the cloud game server which performs information processing is a cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through the graphical user interface, namely, conventionally downloading and installing the game program through the electronic device and running. 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 by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
In a possible implementation manner, the embodiment of the present invention provides a method for controlling a target object in a game, and a graphical user interface is provided through a terminal device, where the terminal device may be a local terminal device (such as a local touch terminal) mentioned above, or may be a client device in a cloud interaction system mentioned above. The following description will take the example that the control method of the target object in the game runs on a local terminal device (hereinafter referred to as a terminal device).
Referring to fig. 1, fig. 1 is a flowchart of a method for controlling a target object in a game according to an embodiment of the application. As shown in fig. 1, a method for controlling a target object in a game according to an embodiment of the present application includes:
s101, displaying a target virtual character with the target object control right, a movement control and a transfer control on the graphical user interface, wherein the target virtual character is any virtual character in a target game camp, the movement control is used for controlling the target virtual character to move in the game scene, the transfer control is used for controlling the target virtual character to transfer the target object in the game scene, and the target game camp is the game camp controlled by the terminal equipment.
S102, responding to a first trigger operation for the transfer control, and acquiring an operation parameter corresponding to a second trigger operation for the mobile control, wherein the second trigger operation is used for controlling the target virtual character to move together with the target object in the game scene.
S103, determining a first virtual role from the teammate virtual roles based on operation parameters corresponding to the second trigger operation and the station positions of the teammate virtual roles in the target game battle in the game scene, and displaying the role identification for referring to the first virtual role on the graphical user interface.
S104, determining a target pass role from the first virtual role in response to the selection operation of the target role identifier in the role identifiers, and controlling the target virtual role to transmit the target object to the direction in which the target pass role is located.
According to the control method for the target object in the game, which is provided by the embodiment of the application, the first virtual role is screened out according to the operation parameters aiming at the triggering operation of the mobile control and the station position of the teammate virtual role in the game scene, the role identification of the first teammate virtual role is displayed in the graphical user interface, and the target pass role is determined through the selection operation of the role identification of the first teammate virtual role, so that the target virtual role is controlled to transmit the target object to the direction of the target pass role, the target pass role can be accurately selected from the teammate virtual roles, and the accuracy of the target pass role selection is facilitated to be improved.
Exemplary steps of embodiments of the present application are described below:
s101, displaying a target virtual character with the target object control right, a movement control and a transfer control on the graphical user interface, wherein the target virtual character is any virtual character in a target game camp, the movement control is used for controlling the target virtual character to move in the game scene, the transfer control is used for controlling the target virtual character to transfer the target object in the game scene, and the target game camp is the game camp controlled by the terminal equipment.
In the embodiment of the application, a game scene comprises a plurality of game camps and a target object, the plurality of game camps compete for the control right of the target object through antagonism interaction, a target object is utilized to trigger a scoring event, the scores of different camps are settled, when a specified condition is met (a certain time is reached, a game ending time can be preset, when the time node is reached, a game is directly settled, when the game ending time is reached, a game camping with higher score obtains the winning of the game, or a certain game camping rate reaches a certain score, a game ending score can be preset, and when a certain game camping reaches the game ending score, the game is determined to end, the game camping with the game ending score obtains the winning of the game, the antagonism interaction is ended, the settlement score determines which camping wins and which camping fails), and the like.
In one possible implementation, when competing for control of a target object, a corresponding game interaction may be performed with respect to the target object, taking the target object as a virtual sphere as an example, the game interaction including a hold interaction, as well as other interactions. The target virtual character's ball holding interactions for the virtual ball include ball control and dribbling, controlling the ball to move along the virtual character in the game scene, other interactions include passing, robbing, capping (in the case where the virtual ball is a virtual basketball), shoveling (in the case where the virtual ball is a virtual football), and controlling the virtual ball to enter the target area (e.g., controlling the virtual basketball to enter the virtual basket in the case where the virtual ball is a virtual basketball; controlling the virtual football to enter the virtual goal in the case where the virtual ball is a virtual football).
In particular, the hold interactions of the virtual character on the virtual sphere may include the virtual character manipulating the virtual sphere movements (when the virtual character holds a ball, the virtual sphere moves following the virtual character holding the ball); in the process of holding a ball by any virtual character, other interactions can be carried out between the virtual character of any battle and the virtual character of the holding ball (taking a virtual ball as an example, other interactions can be the defending operation of the virtual character aiming at the virtual character of the holding ball or the capping operation of the virtual character aiming at the virtual basketball; other interactions directed to the virtual sphere also include triggering scoring events (controlling the virtual sphere to enter a target area), such as, for example, virtual basketball, where the scoring events may be to drop the virtual basketball into a virtual basket, and to determine a specific score (2 points, 3 points, etc.) according to a specific position of the virtual character in throwing the virtual basketball or to obtain a scoring opportunity if the virtual character is an opponent's virtual character fount, and drop the virtual basketball into the virtual basket at the penalty position; taking a virtual football as an example, the scoring event can be shooting the virtual football into a virtual goal, or acquiring a scoring opportunity under the condition that the virtual football is infraction of an enemy virtual character, shooting the virtual football into the virtual goal at a penalty position, and scoring a score by one ball; notably, regardless of the ball holding score for that avatar, the score counts into the campaigns in which the avatar is located;
Specifically, during the ball holding interaction of the virtual character, the virtual sphere is controlled to move along with the virtual character in the virtual scene, for example, the virtual sphere moves along with the virtual character in the virtual scene at a preset speed.
In one possible implementation, the scoring event triggered by the ball holding interaction and other interactions of the virtual ball is controlled according to the virtual character, and after the triggered game settlement condition, the score of the camping where the virtual character is located is counted, for example, if the virtual character controls the virtual ball to enter the designated area (for example, if the virtual ball is a virtual basketball, the virtual basketball enters the virtual basket, and if the virtual ball is a virtual football, the virtual football enters the virtual goal), the score of the scoring event is accumulated for the camping where the virtual character controlling the virtual ball to enter the designated area.
In one possible implementation, the score is calculated by integrating the virtual character according to the position of the virtual ball when the virtual ball is controlled to enter the designated area, for example, in the case that the virtual ball is a virtual basketball, the score of three-way ball and two-way ball are calculated according to the position of the virtual ball when the virtual ball enters the designated area.
For example, taking a virtual ball as an example of a virtual basketball, the scoring event may be to throw the virtual basketball into a virtual basket, and determine a specific score (2 points, 3 points, etc.) based on the virtual character's specific location at which the virtual basketball was thrown; taking a virtual ball as an example of a virtual football, the scoring event may be playing the virtual football into a virtual goal, and scoring the ball.
In one possible implementation, a movement control is displayed in the graphical user interface for controlling the target virtual character to move in the game scene, and a transfer control is used for controlling the target virtual character to transfer the target object in the game scene, and when a player can compete for control rights of the target object through triggering operations on the movement control and/or the transfer control, and perform game interaction for the target object.
It should be noted that, in the game in the embodiment of the present application, the same mobile control and the transfer control are used to control multiple virtual roles of the same game (taking the target object as a virtual sphere, the virtual sphere is a virtual football as an example, at this time, the same mobile control and the transfer control can control 11 virtual roles), which virtual role in the current game scene has the control right to the target object, at this time, the triggering operation of the player on the mobile control and the transfer control is performed by the virtual role that the player has the control right to the target object in the current game scene, that is, the virtual role that the player has the triggering operation control on the mobile control and the transfer control is switched among multiple different virtual roles.
In one possible implementation, since a game requiring coordination between multiple teammate virtual characters of the same game play, the target object may be transferred between different teammate virtual characters, i.e., interactions directed to the target object may also include pass interactions.
S102, responding to a first trigger operation for the transfer control, and acquiring an operation parameter corresponding to a second trigger operation for the mobile control, wherein the second trigger operation is used for controlling the target virtual character to move together with the target object in the game scene.
In one possible implementation, a transfer control is displayed on the graphical user interface, and the player can control the target virtual character currently having the control right of the target object to move together with the target object in the game scene by triggering the transfer control, so as to transfer the target object.
Specifically, in order to ensure convenience of player operation, a movement control and a transfer control for controlling movement of the target virtual character may be disposed on opposite sides of the graphical user interface, for example, the movement control may be disposed on the left side of the graphical user interface and the transfer control may be disposed on the right side of the graphical user interface.
In one possible implementation, the player can control the target virtual character to move together with the target object in the game scene through the transfer control, so as to transfer the target object; the goal shooting control can be set on the same side as the transmission control in the graphical user interface, and the player controls the target virtual character to complete the goal shooting action through triggering operation of the goal shooting control; the method can also set a sprint control on the same side as the transfer control in the graphical user interface, and a player controls the target virtual character to accelerate movement to compete for the control right for the virtual football through the triggering operation of the sprint control; the virtual football control system can also set a detrusor control on the same side of the transmission control in the graphical user interface, and a player controls a target virtual character to detruse to break the virtual football controlled by other virtual characters through triggering operation of the detrusor control so as to enable the target virtual character to obtain the ball control right.
S103, responding to a first trigger operation for the transfer control, and acquiring an operation parameter corresponding to a second trigger operation for the mobile control, wherein the second trigger operation is used for controlling the target virtual character to move together with the target object in the game scene.
In a possible implementation manner, for the transfer control, two different control modes are provided in the embodiment of the present application, which may be an accurate control mode or a non-accurate control mode, and after receiving the first triggering operation for the transfer control, it is required to determine whether to trigger the accurate control mode in the embodiment of the present application and the control mode for transferring the target object under the different control modes according to the operation parameters of the second triggering operation of the mobile control.
Specifically, the step of determining a first virtual character from the teammate virtual characters based on the operation parameters corresponding to the second trigger operation and the positions of the teammate virtual characters in the target game battle in the game scene, and displaying a character identifier for referring to the first virtual character on the graphical user interface, includes:
a1: and detecting whether the pressing force of the second triggering operation is larger than a preset force threshold value.
a2: and if the pressing force of the second triggering operation is larger than the preset force threshold, determining a pass line of the target virtual character based on the operation direction of the first triggering operation.
a3: a first virtual character is determined from among the teammate virtual characters based on the position of the teammate virtual character in the game scene and the distance between the teammate virtual character and the pass line, and a character identification for referring to the first virtual character is displayed on the graphical user interface.
In the embodiment of the application, the operation direction of the second trigger operation, the operation duration of the second trigger operation and the pressing force of the second trigger operation.
Specifically, the detection of the pressing force of the second triggering operation of the mobile control may be the detection of the pressing force of the triggering operation of the mobile control, or may be the detection of the pressing force of the preset area of the mobile control in the graphical user interface directly by expanding the detection range.
For example, for the above example, the movement control is disposed on the left side of the graphical user interface, and the pressing force of the entire left side area of the graphical user interface (the entire area where the line in the terminal device is extended leftward) can be detected at the same time.
In one possible implementation, the preset pressing force threshold may be set after counting pressing forces of a plurality of different historical players, where setting of the preset pressing force threshold may place misoperation of the player to a certain extent, for example, setting the preset pressing force threshold higher, and when the player does not press subjectively, the accurate pass mode will not be triggered.
Further, when it is determined that the pressing force of the second triggering operation for the mobile control is greater than the preset force threshold, it is determined that the accurate pass mode is entered, and at this time, according to the operation direction of the second triggering operation, a first virtual character capable of passing a pass is determined from teammate virtual characters, and character identification of the first virtual character is displayed.
The display position of the character identifier of the first virtual character is determined based on the station position of the first virtual character in the game scene.
In the embodiment of the application, the player mainly controls the target virtual character to move in the game scene through the movement control, and controls the moving direction of the target virtual character through the operation direction of the triggering operation of the movement control, so that when the player controls the target virtual character to transmit the target object through the movement control, in order to ensure that the passing direction of the target virtual character is determined through the triggering operation of the movement control, the target virtual character cannot move again, and the passing failure is caused, and when the target virtual character is determined to transmit the target object, the control direction of the movement control is fixed, namely, the target virtual character is not controlled to move in the scene through the triggering operation of the movement control at the moment of passing.
In one possible embodiment, when the target virtual character transfers the target object, the pass line and the pass direction of the target virtual character may be determined according to the current operation direction of the second trigger operation for the movement control.
Specifically, for the way of determining the pass line, the pass direction may be determined according to the operation direction of the second trigger operation, and the ray along the pass direction is the pass line with the position of the target virtual character as the starting point.
For example, when the target virtual character transfers the target object, the second trigger operation direction for the movement control is lower right, and then the determined pass route is a route extending in the lower right direction with the position of the target virtual character as the starting point.
Notably, the pass line is a reference line when calculating the teammate virtual character or the direction of the pass, and is not displayed in the graphical user interface.
In one possible implementation manner, after determining the ball passing route of the target virtual character, it is required to determine whether there is a teammate virtual character capable of passing a ball on the ball passing route, and further determine, according to the intelligence of the teammate virtual character in the game scene, that the first virtual character can be performed and the character identification of the first virtual character.
Specifically, in one aspect, after the step of "determining the pass line of the target virtual character based on the operation direction of the first trigger operation", the control method further includes:
b1: detecting whether a teammate virtual character exists in the ball passing direction of the ball passing route;
b2: if a teammate virtual character exists in the passing direction of the passing route, determining a first virtual character from the teammate virtual characters based on the station position of the teammate virtual character in the game scene and the distance between the teammate virtual character and the passing route, and displaying character identification for referring to the first virtual character on the graphical user interface.
In the embodiment of the application, after determining the pass route of the target virtual character, whether at least one teammate virtual character exists in the pass direction of the pass route is detected, if so, a first virtual character can be determined according to the station position of the teammate virtual character in the game scene and the distance between the teammate virtual character and the pass route, and a character identifier for referring to the first virtual character is displayed on a graphical user interface.
Specifically, when the teammate virtual character is plural, the step of "determining a first virtual character from the teammate virtual characters based on the positions of the teammate virtual characters in the game scene and the distances between the teammate virtual characters and the pass route, and displaying character identifications for referring to the first virtual character on the graphical user interface" includes:
c1: and determining the distance between each teammate virtual role and the pass route, and sequencing each teammate virtual role according to the order of the distance between each teammate virtual role and the pass route from small to large.
c2: and determining at least one teammate virtual role with the ordering position in front of a preset position as the first virtual role, and displaying a role identifier for referring to the first virtual role on the graphical user interface according to the station position of the first virtual role in the game scene.
In the embodiment of the application, when the number of teammate virtual characters on the ball transmission route is multiple, each teammate virtual character is required to be ordered according to the distance between the station of each teammate virtual character in the game scene and the ball transmission route and according to the order from small to large of the distance between each teammate virtual character and the ball transmission route.
In one possible embodiment, for the distance between each teammate virtual character and the pass line, a ray is emitted to the pass line starting from the station of the teammate virtual character in the game scene, and the vertical distance between the station of the teammate virtual character in the game scene and the pass line is determined as the distance between the teammate virtual character and the pass line.
In one possible implementation manner, when there are multiple teammate virtual roles in the passing direction, if the role identifiers of the teammate virtual roles are displayed in the gui, the gui may cause shielding of the game scene displayed by the gui, and may affect execution and control of the game task, at this time, the number of display identifiers may be set, and when the number of teammate virtual roles in the passing direction is less than the number of the set display identifiers, the role identifier of each teammate virtual role is normally displayed in a mapping manner according to the position of each teammate virtual role in the game scene.
When the number of the teammate virtual characters in the passing direction is larger than the number of the set display identifiers, a preset number of first virtual characters (teammate virtual characters with smaller distance from the passing route) are screened out from the teammate virtual characters according to the distance between the positions of the teammate virtual characters and the passing route, and the character identifiers of the screened first virtual characters are displayed in a mapping mode according to the positions of the first virtual characters in the game scene.
For example, if the number of the teammate virtual characters that can be displayed is set to be 3, when the number of the teammate virtual characters in the passing direction is greater than 3, the teammate virtual characters need to be sorted from small to large according to the distance between the teammate virtual characters and the passing route, then the teammate virtual characters located in the first three (the first three small distances from the passing route) are screened out to be determined as first virtual characters that can be displayed, and then the character identifications of the first virtual characters are mapped and displayed according to the positions of the first virtual characters in the game scene.
In one possible implementation manner, in order to further prevent misoperation of the player, when the character identifications of the first virtual characters are displayed, mapping is required according to the station relation of the first virtual characters in the game scene, and the display positions of the character identifications of the first virtual characters in the graphical user interface are set.
In one possible implementation manner, the position relation between the first virtual roles may be determined based on the plane in which the virtual camera is located, and the position mapping may be performed.
Specifically, the step of displaying at least one teammate virtual character identifier on the graphical user interface based on the operation parameters of the trigger operation and the position of the teammate virtual character in the game scene includes:
d1: and determining at least one teammate virtual character in the ball passing direction of the target virtual character based on the operation direction of the second trigger operation.
d2: determining a first virtual character from the teammate virtual characters according to the distance sequence between the station of each teammate virtual character in the game scene and the virtual camera, and displaying character identifiers for referring to the first virtual character on the graphical user interface.
In the embodiment of the application, the distance between each first virtual character and the plane of the virtual camera is determined based on the plane of the virtual camera, and the larger the distance between the first virtual character and the plane of the virtual camera is, the closer the displayed position is to the upper edge position of the graphical user interface when the display is performed in the graphical user interface, so that the upper and lower position relationship between each first virtual character can be determined according to the distance between the first virtual character and the plane of the virtual camera, and the character identification of at least one first virtual character can be further determined.
For example, the number of first virtual characters to be displayed is two, namely, a first virtual character a and a first virtual character B, and it is known through calculation that the distance between the first virtual character a and the plane in which the virtual camera is located is smaller than the distance between the first virtual character B and the plane in which the virtual camera is located, and then, in the expression form on the graphical user interface, the first virtual character a is located below the first virtual character B, and further, when the character identifications of the first virtual character a and the first virtual character B are displayed, the character identification of the first virtual character B is located above the character identification of the first virtual character a in the vertical direction.
On the other hand, after the step of detecting whether or not there is a teammate virtual character in the passing direction of the passing route, when it is determined that there is no teammate virtual character in the currently determined passing direction, it is necessary to determine whether or not the virtual character identification is required to be displayed according to the half-field area in which the target virtual character is currently located.
Specifically, after the step of "detecting whether or not there is a teammate virtual character in the passing direction of the pass", the control method further includes:
e1: if no teammate virtual role exists in the ball passing direction of the ball passing route, detecting whether the current position of the target virtual role is located in the battle site.
e2: and if the current position of the target virtual character is positioned in the campsite, displaying the character identification of the target teammate character in the campsite in the graphical user interface.
And e3: and if the current position of the target virtual character is not located in the campsite, not displaying character identification on the graphical user interface.
In the embodiment of the application, if no teammate virtual role exists on the current determined pass route, at this time, whether the current position of the target virtual role is located at the battlefield is required to be determined, because the target object is taken as a virtual sphere, the virtual sphere is taken as a virtual football as an example, according to football rules, when a team member is located at the half-field, even if no teammate (movable teammate) exists at the half-field, the football can be selectively transferred to the gate, that is, at this time, the role identifier of the gate can be selectively displayed to carry out accurate pass.
In one possible implementation manner, in determining that there is no teammate virtual character in the ball passing direction of the ball passing route, detecting whether the current position of the target virtual character is located at the campsite, if the current position of the target virtual character is located at the campsite, displaying the character identifier of the target teammate character in the campsite (if the virtual ball is a virtual football, the character identifier of the character can be displayed by the teammate portal) in the graphical user interface.
In another possible implementation manner, if the current position of the target virtual character is not located in the campsite, it is determined that the target virtual character cannot transmit the virtual sphere to the corresponding teammate virtual character at this time, any character identifier may not be displayed any more, and at the same time, prompt information may be displayed in the graphical user interface, so as to prompt that no teammate virtual character capable of receiving the ball exists in the current direction of the target virtual character, and the selection of the ball passing direction needs to be updated, so that the ball passing operation is triggered again to perform the ball passing.
The prompting information may be text information or graphic information, for example, the text information may be "failed pass this time," please pass again ", etc.
In one possible implementation, the display of the character identity for the first virtual character may be displayed at a preset position of the mobile control and adjusted to follow the display position of the child control on the rocker.
Specifically, the step of displaying, on the graphical user interface, a character identifier for referring to the first virtual character includes:
f1: and detecting whether the distance between the mobile sub-control of the mobile control and the edge position of the graphical user interface is smaller than a preset distance threshold.
f2: and if not, displaying the character identification of the first virtual character at the first preset position of the mobile sub-control.
In the embodiment of the application, for the mobile control, the movement direction of the target virtual character needs to be controlled according to the movement of the mobile sub-control (rocker), so that in order to ensure the continuity of operation, the character identification of the first virtual character needs to be displayed in the preset range of the current position of the mobile sub-control (rocker).
In a possible implementation manner, if the shape of the mobile control is circular, the character identifiers of the first virtual character may be arranged in a sector shape, and the first virtual character is displayed around a preset position of the mobile sub-control.
In one possible implementation, the preset distance threshold may be determined according to the size of the mobile control and the movement range of the mobile sub-control, for example, the mobile sub-control merely slides within the control range of the mobile control, where the distance between the side position of the mobile control near the edge position of the graphical user interface and the edge position of the graphical user interface may be determined as the preset distance threshold.
If it is determined that the distance between the mobile sub-control and the edge position of the graphical user interface is greater than the preset distance threshold, and it is determined that the current display of the virtual identifier is not blocked by the edge of the graphical user interface, then the character identifier may be directly displayed at the first preset position where the current mobile sub-control (rocker) is located.
Further, if the character identifier of the first virtual character is displayed at the preset position of the mobile sub-control (rocker) when the mobile sub-control moves to the edge of the screen, the situation that the character identifier is not displayed fully and is blocked by the edge of the screen of the device may exist, and in this case, the display position of the character identifier of the first virtual character needs to be adjusted in real time.
Specifically, the control method further includes:
g1: and detecting whether the distance between the mobile sub-control of the mobile control and the edge position of the graphical user interface is smaller than a preset distance threshold.
g2: if so, displaying the character identification of the first virtual character at a second preset position of the mobile sub-control, so that the display position of the character identification of the first virtual character is not blocked.
In the embodiment of the application, the preset distance threshold may be determined according to the size of the mobile control and the movement range of the mobile sub-control, for example, the mobile sub-control slides only in the control range of the mobile control, and at this time, the distance between the side position of the mobile control close to the edge position of the graphical user interface and the edge position of the graphical user interface may be determined as the preset distance threshold.
In one possible implementation manner, after determining that the current position of the mobile sub-control is blocked by displaying the character identifier of the first virtual character, displaying the character identifier at a second preset position of the current position of the mobile sub-control (rocker), where the second preset position may be that the first preset position is determined (only the background is confirmed and not displayed), then adjusting the determined first preset position, and further directly displaying the virtual identifier at the second preset position of the mobile sub-control.
Specifically, the adjustment mode is that the character identifier of the first virtual character is adjusted from a first preset position to a second preset position capable of completely displaying the character identifier of the first virtual character.
For example, the mobile control is generally disposed at the lower left corner of the graphical user interface, when the mobile sub-control (rocker) moves to be close to the left edge of the graphical user interface, a second preset position needs to be displayed, and the mobile control is also generally located closer to the lower edge of the graphical user interface, and there may be a situation that the character identifier of the first virtual character cannot be completely displayed, so that in order to ensure operation consistency, the second preset position where the character identifier of the first virtual character is displayed is preferably determined to be above the mobile control (the right side is not selected because the mobile sub-control moves from the left side rocker to the right corner identifier, the movement range is larger, and the player cannot easily operate the mobile control).
It should be noted that when the number of the first virtual characters is more than one, the adjustment is performed on the whole of the character identifications of the at least one first virtual character when the display position of the character identifications of the at least one first virtual character is adjusted, that is, the relative display position between the character identifications of the respective first virtual characters is not adjusted, that is, the adjacent positional relationship between the character identifications of the respective first virtual characters is not changed.
For example, referring to fig. 2, fig. 2 is a schematic diagram of character identification adjustment of a first virtual character according to an embodiment of the present application, as shown in fig. 2, there are a plurality of first virtual characters, and according to the position of each first virtual character in a game scene, it is determined that if the character identifications of the first virtual character are arranged up and down, the arrangement order is character identification 2, character identification 1 and character identification 3, and then, when the character identifications of the first virtual character are adjusted to be arranged above a movement control, the arrangement order from right to left is character identification 3, character identification 1 and character identification 2, and the relative positions among the character identifications are unchanged.
Further, after the character identifier of the first virtual character is displayed in the graphical user interface, the player can determine the target pass character through the selection operation of the character identifier of the first virtual character, and control the target virtual character to transmit the target object to the direction where the target pass character is located.
S104, determining a target pass role from the first virtual role in response to the selection operation of the target role identifier in the role identifiers, and controlling the target virtual role to transmit the target object to the direction in which the target pass role is located.
In the embodiment of the present application, the selection operation of the character identifier of the first virtual character may be a continuous touch operation with the second trigger operation of the mobile control, for example, the same sliding operation; a different trigger operation is also possible, for example, the first second trigger operation (click operation) for the movement control is to determine the pass direction, and the second trigger operation (click operation) for the character identification of the first virtual character is to determine the target pass character.
In one possible implementation manner, the selected target pass character may be determined according to the first virtual character corresponding to the character identifier where the end position of the selection operation is located; and determining the first virtual character corresponding to the character identifier of the first virtual character with the longest operation duration as the target pass character according to the operation duration of the selection operation on the character identifiers of the first virtual characters.
In another possible implementation manner, if it is determined that the pressing force for the second triggering operation of the mobile control is not greater than the preset force threshold, it is determined to enter the inaccurate pass mode, and at this time, a specific target pass character may be determined according to the operation duration for the second triggering operation of the mobile control.
Specifically, after the step of detecting whether the pressing force of the second triggering operation is greater than a preset force threshold, the control method further includes:
h1: if the pressing force of the second triggering operation is not greater than the preset force threshold, determining a target pass character based on the operation parameters of the second triggering operation, determining the target pass character, and controlling the target virtual character to transmit the target object to the direction of the target pass character.
In one possible implementation, the teammate virtual character is no longer precisely selected for the inaccurate pass mode, but rather the specific target pass character is determined according to the operation parameter of the second trigger operation for the movement control, and the target virtual character is controlled to pass the target object in the direction of the target pass character.
Specifically, the step of determining the target pass character based on the operation parameter of the second trigger operation includes:
i1: and determining a pass route of the target virtual character based on the operation direction of the second trigger operation, and determining a distance between the teammate virtual character and the pass route.
i2: and detecting whether the operation duration of the second triggering operation is greater than a preset duration threshold.
And i3: and if the operation duration of the second triggering operation is not greater than a preset duration threshold, determining the teammate virtual character with the minimum distance from the pass route as the target pass character.
i4: and if the operation time of the second triggering operation is longer than a preset time threshold, determining the teammate virtual character with the second smallest distance from the pass route as the target pass character.
In the embodiment of the application, when the target virtual character transmits the target object, the ball passing direction and the ball passing route are determined according to the second trigger operation on the mobile control, and then the linear distance between the teammate virtual character and the ball passing route on the ball passing route is determined.
The determination mode of the ball passing route and the straight line distance between the teammate virtual character on the ball passing route and the ball passing route is identical to the determination mode, and is not repeated here.
In one possible embodiment, when the number of teammate virtual characters on the pass is plural, it is necessary to determine a teammate virtual character closest to the pass and a teammate virtual character second closest to the pass among the plural teammate virtual characters, and to determine a specific target pass according to an operation time for the second trigger operation of the movement control.
Specifically, if the operation time of the second triggering operation is not greater than a preset time threshold, determining a teammate virtual character closest to the pass route among the teammate virtual characters as a target pass character; and if the operation time of the triggering operation is smaller than a preset time threshold, determining the teammate virtual role which is the second closest to the pass route in the teammate virtual roles as a target pass role, and controlling the target virtual role to transmit a target object to the direction of the target pass role after determining the target pass role.
In one possible implementation, the preset time threshold is determined according to game settings and the trigger operation duration of the historical player, and may be set to 0.5s, for example.
In one possible embodiment, if more than one teammate virtual character is closest to the pass line or the teammate virtual character is closest to the second pass line, the teammate virtual characters may be further screened based on current movement data (whether there is a trend of moving toward the target virtual character) and historical game action data (a goal success rate, etc. in the historical battle).
The following will describe a control process of a target object in a game in an embodiment of the present application by a specific example, where in this example, the target object is a virtual ball, and the virtual ball is a virtual football as an example:
referring to fig. 3, fig. 3 is a schematic diagram of a graphical user interface provided by an embodiment of the present application, as shown in fig. 3, in the graphical user interface 300, a plurality of virtual characters are competing for control rights of a virtual football 301 in a game scene, a target virtual character 302 is having control rights to the virtual football 301, after a triggering operation of a transfer control 303 is performed, it is determined that a current control direction of a control operation currently directed to a movement control 304 is a right lower direction, and at this time, the control direction of the movement control 304 is locked, and a ball transfer route of the target virtual character 302 is determined.
Further, referring to fig. 4, fig. 4 is a second schematic diagram of a graphical user interface provided by an embodiment of the present application, as shown in fig. 4, three teammate virtual characters exist on a pass line, namely, 1 teammate virtual character 305, 2 teammate virtual character 306 and 3 teammate virtual character 307, respectively, linear distances between the 1 teammate virtual character 305, 2 teammate virtual character 306 and 3 teammate virtual character 307 and the pass line are calculated, and according to the distance of the linear distances and positions of the 1 teammate virtual character 305, 2 teammate virtual character 306 and 3 teammate virtual character 307 in a game scene, a 1 teammate virtual character identifier 308, a 2 teammate virtual character identifier 309 and a 3 teammate virtual character identifier 310 are displayed at a rocker position of the movement control 304.
Further, referring to fig. 5, fig. 5 is a third schematic diagram of a graphical user interface provided in an embodiment of the present application, as shown in fig. 5, in response to a selection operation for the 1 teammate virtual character identifier 308, the 2 teammate virtual character identifier 309, and the 3 teammate virtual character identifier 310, the 1 teammate virtual character identifier 308 is determined to be selected according to a stop position of the selection operation, and at this time, the control target virtual character 302 transmits the virtual football 301 to the direction in which the 1 teammate virtual character 305 is located, so as to complete the current pass.
The method for controlling the target object in the game provided by the embodiment of the application displays a target virtual character, a moving control and a transfer control with control right of the target object on a graphical user interface; responding to a first triggering operation for the transfer control, and acquiring an operation parameter corresponding to a second triggering operation for the mobile control; determining a first virtual role from the teammate virtual roles based on operation parameters corresponding to the first triggering operation and the station positions of the teammate virtual roles in the target game battle in the game scene, and displaying a role identifier for referring to the first virtual role on a graphical user interface; and responding to the selection operation aiming at the target character identification in the character identifications, determining the target pass character from the first virtual character, and controlling the target virtual character to transmit the target object to the direction of the target pass character. In this way, according to the operation parameters aiming at the triggering operation of the mobile control and the station position of the teammate virtual role in the game scene, the first virtual role is screened out, the role identification of the first teammate virtual role is displayed in the graphical user interface, and the target pass role is determined through the selection operation of the role identification of the first teammate virtual role, so that the target virtual role is controlled to transmit the target object to the direction of the target pass role, the target pass role can be accurately selected from the teammate virtual roles, and the accuracy of the target pass role selection is facilitated to be improved.
Based on the same inventive concept, the embodiment of the present application further provides a control device for an in-game target object corresponding to the control method for an in-game target object, and since the principle of solving the problem by the device in the embodiment of the present application is similar to that of the control method for an in-game target object in the embodiment of the present application, the implementation of the device may refer to the implementation of the method, and the repetition is omitted.
Referring to fig. 6 and 7, fig. 6 is a schematic structural diagram of a control device for an in-game target object according to an embodiment of the application, and fig. 7 is a schematic structural diagram of a second control device for an in-game target object according to an embodiment of the application. As shown in fig. 6, the control device 600 includes:
an object display module 610, configured to display, on the graphical user interface, a target virtual character having control rights of the target object, a movement control, and a transfer control, where the target virtual character is any virtual character in a target game camp, the movement control is configured to control the target virtual character to move in the game scene, the transfer control is configured to control the target virtual character to transfer the target object in the game scene, and the target game camp is a game camp controlled by the terminal device;
A movement control module 620, configured to obtain, in response to a first trigger operation for the transfer control, an operation parameter corresponding to a second trigger operation for the movement control, where the second trigger operation is used to control the target virtual character to move together with the target object in the game scene;
the first display module 630 is configured to determine a first virtual character from the teammate virtual characters based on the operation parameters corresponding to the second trigger operation and the station positions of the teammate virtual characters in the target game camp in the game scene, and display a character identifier for referring to the first virtual character on the graphical user interface;
and the transfer control module 640 is used for determining a target pass role from the first virtual roles in response to the selection operation of the target role identifier in the role identifiers, and controlling the target virtual roles to transfer the target object to the direction in which the target pass role is located.
In a possible embodiment, as shown in fig. 7, the control device 600 further includes a second display module 650, where the second display module 650 is configured to:
detecting whether the distance between the mobile sub-control of the mobile control and the edge position of the graphical user interface is smaller than a preset distance threshold;
If so, displaying the character identification of the first virtual character at a second preset position of the mobile sub-control, so that the display position of the character identification of the first virtual character is not blocked.
In one possible implementation, as shown in fig. 7, the control apparatus 600 further includes a pass role determining module 660, where the pass role determining module 660 is configured to:
if the pressing force of the second triggering operation is not greater than the preset force threshold, determining a target pass character based on the operation parameters of the second triggering operation, determining the target pass character, and controlling the target virtual character to transmit the target object to the direction of the target pass character.
In a possible implementation manner, as shown in fig. 7, the control apparatus 600 further includes a virtual character detection module 670, where the virtual character detection module 670 is configured to:
detecting whether a teammate virtual character exists in the ball passing direction of the ball passing route;
if a teammate virtual character exists in the passing direction of the passing route, determining a first virtual character from the teammate virtual characters based on the station position of the teammate virtual character in the game scene and the distance between the teammate virtual character and the passing route, and displaying character identification for referring to the first virtual character on the graphical user interface.
In a possible implementation manner, the operation parameters corresponding to the second triggering operation for the mobile control include at least one of the following: the operation direction of the second trigger operation, the operation duration of the second trigger operation and the pressing force of the second trigger operation;
the first display module 630 is configured to, when determining a first virtual character from among the teammate virtual characters based on the operation parameters corresponding to the second trigger operation and the positions of the teammate virtual characters in the target game camp in the game scene, and displaying a character identifier for referring to the first virtual character on the graphical user interface, the first display module 630 is configured to:
detecting whether the pressing force of the second triggering operation is larger than a preset force threshold value or not;
if the pressing force of the second triggering operation is larger than the preset force threshold, determining a pass line of the target virtual character based on the operation direction of the first triggering operation;
determining a first virtual character from the teammate virtual characters based on the station positions of the teammate virtual characters in the game scene and the distance between the teammate virtual characters and the pass route, and displaying character identifications for referring to the first virtual character on the graphical user interface;
The display position of the character identifier of the first virtual character is determined based on the station position of the first virtual character in the game scene.
In one possible implementation, when the teammate virtual character is plural, the first display module 630 is configured to determine a first virtual character from the teammate virtual characters based on a position of the teammate virtual character in the game scene and a distance between the teammate virtual character and the pass line, and display a character identification for referring to the first virtual character on the graphical user interface, the first display module 630 is configured to:
determining the distance between each teammate virtual role and the pass route, and sequencing each teammate virtual role according to the sequence that the distance between each teammate virtual role and the pass route is from small to large;
and determining at least one teammate virtual role with the ordering position in front of a preset position as the first virtual role, and displaying a role identifier for referring to the first virtual role on the graphical user interface according to the station position of the first virtual role in the game scene.
In a possible implementation manner, when the first display module 630 is configured to display, on the graphical user interface, a character identifier for referring to the first virtual character, the first display module 630 is configured to:
detecting whether the distance between the mobile sub-control of the mobile control and the edge position of the graphical user interface is smaller than a preset distance threshold;
and if not, displaying the character identification of the first virtual character at the first preset position of the mobile sub-control.
In a possible implementation manner, the pass role determining module 660 is configured, when configured to determine the target pass role based on the operation parameter of the second trigger operation, to:
determining a pass route of the target virtual character based on an operation direction of the second trigger operation, and determining a distance between the teammate virtual character and the pass route;
detecting whether the operation duration of the second triggering operation is greater than a preset duration threshold;
if the operation duration of the second triggering operation is not greater than a preset duration threshold, determining a teammate virtual character with the minimum distance from the pass route as the target pass character;
And if the operation time of the second triggering operation is longer than a preset time threshold, determining the teammate virtual character with the second smallest distance from the pass route as the target pass character.
In one possible implementation, the virtual role detection module 670 is further configured to:
if no teammate virtual role exists in the ball passing direction of the ball passing route, detecting whether the current position of the target virtual role is located in the current battle site;
if the current position of the target virtual character is located in the campsite, displaying character identifiers of target teammate characters in the campsite in the graphical user interface;
and if the current position of the target virtual character is not located in the campsite, not displaying character identification on the graphical user interface.
In one possible implementation, the game scene in the graphical user interface is captured based on a virtual camera; the first display module 630 is configured to, when determining a first virtual character from among the teammate virtual characters based on the operation parameters corresponding to the second trigger operation and the positions of the teammate virtual characters in the target game camp in the game scene, and displaying a character identifier for referring to the first virtual character on the graphical user interface, the first display module 630 is configured to:
Determining at least one teammate virtual character in a ball passing direction of the target virtual character based on an operation direction of the trigger operation;
determining at least one teammate virtual character in the ball passing direction of the target virtual character based on the operation direction of the second trigger operation;
determining a first virtual character from the teammate virtual characters according to the distance sequence between the station of each teammate virtual character in the game scene and the virtual camera, and displaying character identifiers for referring to the first virtual character on the graphical user interface.
The control device for the target object in the game provided by the embodiment of the application displays a target virtual character, a moving control and a transfer control with control right of the target object on a graphical user interface; responding to a first triggering operation for the transfer control, and acquiring an operation parameter corresponding to a second triggering operation for the mobile control; determining a first virtual role from the teammate virtual roles based on operation parameters corresponding to the first triggering operation and the station positions of the teammate virtual roles in the target game battle in the game scene, and displaying a role identifier for referring to the first virtual role on a graphical user interface; and responding to the selection operation aiming at the target character identification in the character identifications, determining the target pass character from the first virtual character, and controlling the target virtual character to transmit the target object to the direction of the target pass character. In this way, according to the operation parameters aiming at the triggering operation of the mobile control and the station position of the teammate virtual role in the game scene, the first virtual role is screened out, the role identification of the first teammate virtual role is displayed in the graphical user interface, and the target pass role is determined through the selection operation of the role identification of the first teammate virtual role, so that the target virtual role is controlled to transmit the target object to the direction of the target pass role, the target pass role can be accurately selected from the teammate virtual roles, and the accuracy of the target pass role selection is facilitated to be improved.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the application. As shown in fig. 8, the electronic device 800 includes a processor 810, a memory 820, and a bus 830.
The memory 820 stores machine readable instructions executable by the processor 810, which when the electronic device 800 is running, communicate between the processor 810 and the memory 820 over the bus 830, such that the processor 810 when running performs the following instructions:
displaying a target virtual character with the target object control right, a movement control and a transfer control on the graphical user interface, wherein the target virtual character is any virtual character in a target game camp, the movement control is used for controlling the target virtual character to move in the game scene, the transfer control is used for controlling the target virtual character to transfer the target object in the game scene, and the target game camp is the game camp controlled by the terminal equipment;
responding to a first triggering operation for the transfer control, and acquiring an operation parameter corresponding to a second triggering operation for the mobile control, wherein the second triggering operation is used for controlling the target virtual character to move together with the target object in the game scene;
Determining a first virtual role from the teammate virtual roles based on operation parameters corresponding to the second triggering operation and the station positions of the teammate virtual roles in the target game battle in the game scene, and displaying a role identifier for referring to the first virtual role on the graphical user interface;
and responding to the selection operation aiming at the target role identification in the role identifications, determining a target pass role from the first virtual roles, and controlling the target virtual roles to transmit the target object to the direction in which the target pass role is located.
In a possible implementation manner, in the instructions executed by the processor 810, the operation parameters corresponding to the second triggering operation for the mobile control include at least one of the following: the operation direction of the second trigger operation, the operation duration of the second trigger operation and the pressing force of the second trigger operation;
the step of determining a first virtual role from the teammate virtual roles based on the operation parameters corresponding to the second trigger operation and the station positions of the teammate virtual roles in the target game battle in the game scene, and displaying the role identification for referring to the first virtual role on the graphical user interface, comprises the following steps:
Detecting whether the pressing force of the second triggering operation is larger than a preset force threshold value or not;
if the pressing force of the second triggering operation is larger than the preset force threshold, determining a pass line of the target virtual character based on the operation direction of the first triggering operation;
determining a first virtual character from the teammate virtual characters based on the station positions of the teammate virtual characters in the game scene and the distance between the teammate virtual characters and the pass route, and displaying character identifications for referring to the first virtual character on the graphical user interface;
the display position of the character identifier of the first virtual character is determined based on the station position of the first virtual character in the game scene.
In a possible implementation manner, in the instructions executed by the processor 810, when the teammate virtual character is plural, the determining, based on the position of the teammate virtual character in the game scene and the distance between the teammate virtual character and the pass line, a first virtual character from the teammate virtual characters, and displaying, on the graphical user interface, a character identifier for referring to the first virtual character includes:
Determining the distance between each teammate virtual role and the pass route, and sequencing each teammate virtual role according to the sequence that the distance between each teammate virtual role and the pass route is from small to large;
and determining at least one teammate virtual role with the ordering position in front of a preset position as the first virtual role, and displaying a role identifier for referring to the first virtual role on the graphical user interface according to the station position of the first virtual role in the game scene.
In a possible implementation manner, in the instructions executed by the processor 810, the displaying, on the graphical user interface, a role identifier for referring to the first virtual role includes:
detecting whether the distance between the mobile sub-control of the mobile control and the edge position of the graphical user interface is smaller than a preset distance threshold;
and if not, displaying the character identification of the first virtual character at the first preset position of the mobile sub-control.
In a possible implementation manner, the instructions executed by the processor 810 further include:
detecting whether the distance between the mobile sub-control of the mobile control and the edge position of the graphical user interface is smaller than a preset distance threshold;
If so, displaying the character identification of the first virtual character at a second preset position of the mobile sub-control, so that the display position of the character identification of the first virtual character is not blocked.
In a possible implementation manner, the instructions executed by the processor 810 further include:
if the pressing force of the second triggering operation is not greater than the preset force threshold, determining a target pass character based on the operation parameters of the second triggering operation, determining the target pass character, and controlling the target virtual character to transmit the target object to the direction of the target pass character.
In a possible implementation manner, in the instructions executed by the processor 810, the determining the target pass role based on the operation parameter of the second trigger operation includes:
determining a pass route of the target virtual character based on an operation direction of the second trigger operation, and determining a distance between the teammate virtual character and the pass route;
detecting whether the operation duration of the second triggering operation is greater than a preset duration threshold;
if the operation duration of the second triggering operation is not greater than a preset duration threshold, determining a teammate virtual character with the minimum distance from the pass route as the target pass character;
And if the operation time of the second triggering operation is longer than a preset time threshold, determining the teammate virtual character with the second smallest distance from the pass route as the target pass character.
In a possible implementation manner, the instructions executed by the processor 810 further include:
detecting whether a teammate virtual character exists in the ball passing direction of the ball passing route;
if a teammate virtual character exists in the passing direction of the passing route, determining a first virtual character from the teammate virtual characters based on the station position of the teammate virtual character in the game scene and the distance between the teammate virtual character and the passing route, and displaying character identification for referring to the first virtual character on the graphical user interface.
In a possible implementation manner, the instructions executed by the processor 810 further include:
if no teammate virtual role exists in the ball passing direction of the ball passing route, detecting whether the current position of the target virtual role is located in the current battle site;
if the current position of the target virtual character is located in the campsite, displaying character identifiers of target teammate characters in the campsite in the graphical user interface;
And if the current position of the target virtual character is not located in the campsite, not displaying character identification on the graphical user interface.
In a possible implementation manner, the game scene in the graphical user interface is obtained based on shooting by a virtual camera; in the instructions executed by the processor 810, the determining, based on the operation parameter corresponding to the second trigger operation and the position of the teammate virtual character in the target game camp in the game scene, a first virtual character from the teammate virtual characters, and displaying, on the graphical user interface, a character identifier for referring to the first virtual character includes:
determining at least one teammate virtual character in the ball passing direction of the target virtual character based on the operation direction of the second trigger operation;
determining a first virtual character from the teammate virtual characters according to the distance sequence between the station of each teammate virtual character in the game scene and the virtual camera, and displaying character identifiers for referring to the first virtual character on the graphical user interface.
According to the method, the first virtual character is screened out according to the operation parameters aiming at the triggering operation of the mobile control and the station position of the teammate virtual character in the game scene, the character identification of the first teammate virtual character is displayed in the graphical user interface, the target pass character is determined through the selection operation of the character identification of the first teammate virtual character, the target virtual character is controlled to transmit a target object to the direction of the target pass character, the target pass character can be accurately selected from the teammate virtual characters, and the accuracy of the target pass character selection is improved; meanwhile, a target object control mode with different precision can be selected according to the pressing force aiming at the mobile control, so that the diversity of man-machine interaction can be improved, and misoperation of a player is reduced; further, the display position of the character identifier in the graphical user interface can be adjusted according to the relative relation between the display position of the character identifier of the first virtual character and the edge position of the graphical user so as to ensure the display integrity of the character identifier.
Embodiments of the present application also provide a computer-readable storage medium having a computer program stored thereon, such that the computer program, when executed by a processor, performs the following instructions:
displaying a target virtual character with the target object control right, a movement control and a transfer control on the graphical user interface, wherein the target virtual character is any virtual character in a target game camp, the movement control is used for controlling the target virtual character to move in the game scene, the transfer control is used for controlling the target virtual character to transfer the target object in the game scene, and the target game camp is the game camp controlled by the terminal equipment;
responding to a first triggering operation for the transfer control, and acquiring an operation parameter corresponding to a second triggering operation for the mobile control, wherein the second triggering operation is used for controlling the target virtual character to move together with the target object in the game scene;
determining a first virtual role from the teammate virtual roles based on operation parameters corresponding to the second triggering operation and the station positions of the teammate virtual roles in the target game battle in the game scene, and displaying a role identifier for referring to the first virtual role on the graphical user interface;
And responding to the selection operation aiming at the target role identification in the role identifications, determining a target pass role from the first virtual roles, and controlling the target virtual roles to transmit the target object to the direction in which the target pass role is located.
In a possible implementation manner, in the instructions executed by the computer-readable storage medium, the operation parameters corresponding to the second triggering operation for the mobile control include at least one of the following: the operation direction of the second trigger operation, the operation duration of the second trigger operation and the pressing force of the second trigger operation;
the step of determining a first virtual role from the teammate virtual roles based on the operation parameters corresponding to the second trigger operation and the station positions of the teammate virtual roles in the target game battle in the game scene, and displaying the role identification for referring to the first virtual role on the graphical user interface, comprises the following steps:
detecting whether the pressing force of the second triggering operation is larger than a preset force threshold value or not;
if the pressing force of the second triggering operation is larger than the preset force threshold, determining a pass line of the target virtual character based on the operation direction of the first triggering operation;
Determining a first virtual character from the teammate virtual characters based on the station positions of the teammate virtual characters in the game scene and the distance between the teammate virtual characters and the pass route, and displaying character identifications for referring to the first virtual character on the graphical user interface;
the display position of the character identifier of the first virtual character is determined based on the station position of the first virtual character in the game scene.
In a possible implementation manner, in the instructions executed by the computer-readable storage medium, when the teammate virtual character is plural, the determining, based on the position of the teammate virtual character in the game scene and the distance between the teammate virtual character and the pass route, a first virtual character from the teammate virtual characters, and displaying, on the graphical user interface, a character identifier for referring to the first virtual character, includes:
determining the distance between each teammate virtual role and the pass route, and sequencing each teammate virtual role according to the sequence that the distance between each teammate virtual role and the pass route is from small to large;
And determining at least one teammate virtual role with the ordering position in front of a preset position as the first virtual role, and displaying a role identifier for referring to the first virtual role on the graphical user interface according to the station position of the first virtual role in the game scene.
In a possible implementation manner, in the instructions executed by the computer-readable storage medium, the displaying, on the graphical user interface, a role identifier for referring to the first virtual role includes:
detecting whether the distance between the mobile sub-control of the mobile control and the edge position of the graphical user interface is smaller than a preset distance threshold;
and if not, displaying the character identification of the first virtual character at the first preset position of the mobile sub-control.
In a possible implementation manner, the instructions executed by the computer-readable storage medium further include:
detecting whether the distance between the mobile sub-control of the mobile control and the edge position of the graphical user interface is smaller than a preset distance threshold;
if so, displaying the character identification of the first virtual character at a second preset position of the mobile sub-control, so that the display position of the character identification of the first virtual character is not blocked.
In a possible implementation manner, the instructions executed by the computer-readable storage medium further include:
if the pressing force of the second triggering operation is not greater than the preset force threshold, determining a target pass character based on the operation parameters of the second triggering operation, determining the target pass character, and controlling the target virtual character to transmit the target object to the direction of the target pass character.
In a possible implementation manner, in the instructions executed by the computer-readable storage medium, the determining the target pass role based on the operation parameter of the second trigger operation includes:
determining a pass route of the target virtual character based on an operation direction of the second trigger operation, and determining a distance between the teammate virtual character and the pass route;
detecting whether the operation duration of the second triggering operation is greater than a preset duration threshold;
if the operation duration of the second triggering operation is not greater than a preset duration threshold, determining a teammate virtual character with the minimum distance from the pass route as the target pass character;
and if the operation time of the second triggering operation is longer than a preset time threshold, determining the teammate virtual character with the second smallest distance from the pass route as the target pass character.
In a possible implementation manner, the instructions executed by the computer-readable storage medium further include:
detecting whether a teammate virtual character exists in the ball passing direction of the ball passing route;
if a teammate virtual character exists in the passing direction of the passing route, determining a first virtual character from the teammate virtual characters based on the station position of the teammate virtual character in the game scene and the distance between the teammate virtual character and the passing route, and displaying character identification for referring to the first virtual character on the graphical user interface.
In a possible implementation manner, the instructions executed by the computer-readable storage medium further include:
if no teammate virtual role exists in the ball passing direction of the ball passing route, detecting whether the current position of the target virtual role is located in the current battle site;
if the current position of the target virtual character is located in the campsite, displaying character identifiers of target teammate characters in the campsite in the graphical user interface;
and if the current position of the target virtual character is not located in the campsite, not displaying character identification on the graphical user interface.
In a possible implementation manner, the game scene in the graphical user interface is obtained based on shooting by a virtual camera; in the instructions executed by the computer-readable storage medium, the determining, based on the operation parameter corresponding to the second trigger operation and the position of the teammate virtual character in the target game camp in the game scene, a first virtual character from the teammate virtual characters, and displaying, on the graphical user interface, a character identifier for referring to the first virtual character, includes:
determining at least one teammate virtual character in the ball passing direction of the target virtual character based on the operation direction of the second trigger operation;
determining a first virtual character from the teammate virtual characters according to the distance sequence between the station of each teammate virtual character in the game scene and the virtual camera, and displaying character identifiers for referring to the first virtual character on the graphical user interface.
According to the method, the first virtual character is screened out according to the operation parameters aiming at the triggering operation of the mobile control and the station position of the teammate virtual character in the game scene, the character identification of the first teammate virtual character is displayed in the graphical user interface, the target pass character is determined through the selection operation of the character identification of the first teammate virtual character, the target virtual character is controlled to transmit a target object to the direction of the target pass character, the target pass character can be accurately selected from the teammate virtual characters, and the accuracy of the target pass character selection is improved; meanwhile, a target object control mode with different precision can be selected according to the pressing force aiming at the mobile control, so that the diversity of man-machine interaction can be improved, and misoperation of a player is reduced; further, the display position of the character identifier in the graphical user interface can be adjusted according to the relative relation between the display position of the character identifier of the first virtual character and the edge position of the graphical user so as to ensure the display integrity of the character identifier.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above examples are only specific embodiments of the present application, and are not intended to limit the scope of the present application, but it should be understood by those skilled in the art that the present application is not limited thereto, and that the present application is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
Claims (13)
1. A method for controlling a target object in a game, characterized in that a graphical user interface is provided through a terminal device, at least part of game scenes are displayed on the graphical user interface, each game scene comprises a plurality of game camps and a target object, each game camps comprises a plurality of virtual roles, and the virtual roles of the plurality of game camps compete for the control right of the target object in the game scenes; the control method comprises the following steps:
displaying a target virtual character with the target object control right, a movement control and a transfer control on the graphical user interface, wherein the target virtual character is any virtual character in a target game camp, the movement control is used for controlling the target virtual character to move in the game scene, the transfer control is used for controlling the target virtual character to transfer the target object in the game scene, and the target game camp is the game camp controlled by the terminal equipment;
responding to a first triggering operation for the transfer control, and acquiring an operation parameter corresponding to a second triggering operation for the mobile control, wherein the second triggering operation is used for controlling the target virtual character to move together with the target object in the game scene;
Determining a first virtual role from the teammate virtual roles based on operation parameters corresponding to the second triggering operation and the station positions of the teammate virtual roles in the target game battle in the game scene, and displaying a role identifier for referring to the first virtual role on the graphical user interface;
and responding to the selection operation aiming at the target role identification in the role identifications, determining a target pass role from the first virtual roles, and controlling the target virtual roles to transmit the target object to the direction in which the target pass role is located.
2. The control method of claim 1, wherein the operating parameter corresponding to the second trigger operation for the mobile control comprises at least one of: the operation direction of the second trigger operation, the operation duration of the second trigger operation and the pressing force of the second trigger operation;
the step of determining a first virtual role from the teammate virtual roles based on the operation parameters corresponding to the second trigger operation and the station positions of the teammate virtual roles in the target game battle in the game scene, and displaying the role identification for referring to the first virtual role on the graphical user interface, comprises the following steps:
Detecting whether the pressing force of the second triggering operation is larger than a preset force threshold value or not;
if the pressing force of the second triggering operation is larger than the preset force threshold, determining a pass line of the target virtual character based on the operation direction of the first triggering operation;
determining a first virtual character from the teammate virtual characters based on the station positions of the teammate virtual characters in the game scene and the distance between the teammate virtual characters and the pass route, and displaying character identifications for referring to the first virtual character on the graphical user interface;
the display position of the character identifier of the first virtual character is determined based on the station position of the first virtual character in the game scene.
3. The control method according to claim 2, wherein when the teammate virtual character is plural, the determining a first virtual character from the teammate virtual characters based on a position of the teammate virtual character in the game scene and a distance between the teammate virtual character and the pass line, and displaying character identifications for referring to the first virtual character on the graphical user interface, includes:
Determining the distance between each teammate virtual role and the pass route, and sequencing each teammate virtual role according to the sequence that the distance between each teammate virtual role and the pass route is from small to large;
and determining at least one teammate virtual role with the ordering position in front of a preset position as the first virtual role, and displaying a role identifier for referring to the first virtual role on the graphical user interface according to the station position of the first virtual role in the game scene.
4. The control method according to claim 1, wherein the displaying, on the graphical user interface, a character identification for referring to the first virtual character, includes:
detecting whether the distance between the mobile sub-control of the mobile control and the edge position of the graphical user interface is smaller than a preset distance threshold;
and if not, displaying the character identification of the first virtual character at the first preset position of the mobile sub-control.
5. The control method according to claim 1, characterized in that the control method further comprises:
detecting whether the distance between the mobile sub-control of the mobile control and the edge position of the graphical user interface is smaller than a preset distance threshold;
If so, displaying the character identification of the first virtual character at a second preset position of the mobile sub-control, so that the display position of the character identification of the first virtual character is not blocked.
6. The control method according to claim 2, characterized in that after the detection of whether the pressing force of the second trigger operation is greater than a preset force threshold, the control method further comprises:
if the pressing force of the second triggering operation is not greater than the preset force threshold, determining a target pass character based on the operation parameters of the second triggering operation, determining the target pass character, and controlling the target virtual character to transmit the target object to the direction of the target pass character.
7. The control method according to claim 6, wherein the determining a target pass character based on the operation parameter of the second trigger operation includes:
determining a pass route of the target virtual character based on an operation direction of the second trigger operation, and determining a distance between the teammate virtual character and the pass route;
detecting whether the operation duration of the second triggering operation is greater than a preset duration threshold;
If the operation duration of the second triggering operation is not greater than a preset duration threshold, determining a teammate virtual character with the minimum distance from the pass route as the target pass character;
and if the operation time of the second triggering operation is longer than a preset time threshold, determining the teammate virtual character with the second smallest distance from the pass route as the target pass character.
8. The control method according to claim 2, characterized in that after the determination of the pass line of the target virtual character based on the operation direction of the first trigger operation, the control method further comprises:
detecting whether a teammate virtual character exists in the ball passing direction of the ball passing route;
if a teammate virtual character exists in the passing direction of the passing route, determining a first virtual character from the teammate virtual characters based on the station position of the teammate virtual character in the game scene and the distance between the teammate virtual character and the passing route, and displaying character identification for referring to the first virtual character on the graphical user interface.
9. The control method according to claim 8, characterized in that after said detecting whether or not there is a teammate virtual character in the passing direction of the passing route, the control method further comprises:
If no teammate virtual role exists in the ball passing direction of the ball passing route, detecting whether the current position of the target virtual role is located in the current battle site;
if the current position of the target virtual character is located in the campsite, displaying character identifiers of target teammate characters in the campsite in the graphical user interface;
and if the current position of the target virtual character is not located in the campsite, not displaying character identification on the graphical user interface.
10. The control method according to claim 1, wherein the game scene in the graphical user interface is photographed based on a virtual camera; the step of determining a first virtual role from the teammate virtual roles based on the operation parameters corresponding to the second trigger operation and the station positions of the teammate virtual roles in the target game battle in the game scene, and displaying the role identification for referring to the first virtual role on the graphical user interface, comprises the following steps:
determining at least one teammate virtual character in the ball passing direction of the target virtual character based on the operation direction of the second trigger operation;
Determining a first virtual character from the teammate virtual characters according to the distance sequence between the station of each teammate virtual character in the game scene and the virtual camera, and displaying character identifiers for referring to the first virtual character on the graphical user interface.
11. A control device for target objects in a game, characterized in that a graphical user interface is provided through a terminal device, at least part of game scenes are displayed on the graphical user interface, each game scene comprises a plurality of game camps and a target object, each game camps comprises a plurality of virtual roles, and the virtual roles of the plurality of game camps compete for the control right of the target object in the game scenes; the control device includes:
the object display module is used for displaying a target virtual character with the control right of the target object, a moving control and a transfer control on the graphical user interface, wherein the target virtual character is any virtual character in a target game camp, the moving control is used for controlling the target virtual character to move in the game scene, the transfer control is used for controlling the target virtual character to transfer the target object in the game scene, and the target game camp is the game camp controlled by the terminal equipment;
The mobile control module is used for responding to the first triggering operation of the transfer control and obtaining operation parameters corresponding to the second triggering operation of the mobile control, wherein the second triggering operation is used for controlling the target virtual character to move together with the target object in the game scene;
the role identification display module is used for determining a first virtual role from the teammate virtual roles based on the operation parameters corresponding to the second trigger operation and the station positions of the teammate virtual roles in the target game battle in the game scene, and displaying the role identification for referring to the first virtual role on the graphical user interface;
and the transmission control module is used for responding to the selection operation aiming at the target role identifier in the role identifiers, determining a target pass role from the first virtual roles and controlling the target virtual roles to transmit the target object to the direction in which the target pass role is located.
12. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the method of controlling a target object in a game as claimed in any one of claims 1 to 10.
13. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, performs the steps of the method of controlling a target object in a game as claimed in any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311016945.8A CN116999834A (en) | 2023-08-14 | 2023-08-14 | Method and device for controlling target object in game, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311016945.8A CN116999834A (en) | 2023-08-14 | 2023-08-14 | Method and device for controlling target object in game, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116999834A true CN116999834A (en) | 2023-11-07 |
Family
ID=88576000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311016945.8A Pending CN116999834A (en) | 2023-08-14 | 2023-08-14 | Method and device for controlling target object in game, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116999834A (en) |
-
2023
- 2023-08-14 CN CN202311016945.8A patent/CN116999834A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5734566B2 (en) | Method of interacting with virtual environment, processing system, and computer program | |
WO2021227870A1 (en) | Virtual object control method and apparatus, terminal, and storage medium | |
TWI804032B (en) | Method for data processing in virtual scene, device, apparatus, storage medium and program product | |
CN113101635B (en) | Virtual map display method and device, electronic equipment and readable storage medium | |
CN114225372B (en) | Virtual object control method, device, terminal, storage medium and program product | |
JP2023521496A (en) | VIRTUAL OBJECT CONTROL METHOD AND DEVICE, TERMINAL, AND COMPUTER PROGRAM | |
CN114510184B (en) | Target locking method and device, electronic equipment and readable storage medium | |
KR20220163452A (en) | Interaction processing method of virtual props, device, electronic device and readable storage medium | |
US20230277923A1 (en) | Apparatus and method for controlling user interface of computing apparatus | |
KR101204244B1 (en) | Method and apparatus for controlling character in soccer game | |
JP2024026661A (en) | Control method of virtual object, device, terminal, and computer program | |
CN116999834A (en) | Method and device for controlling target object in game, electronic equipment and storage medium | |
JP2012016616A (en) | Game device and game program | |
CN117482517A (en) | Information processing method and device in game, electronic equipment and readable storage medium | |
KR20130040390A (en) | Method and system for controlling charater of soccer game | |
KR102106273B1 (en) | The method for manipulating characters in games | |
CN116271823B (en) | Information processing method and device in game, electronic equipment and readable storage medium | |
CN117959709A (en) | Character state switching method and device, electronic equipment and readable storage medium | |
CN115888112A (en) | Control method, control device, equipment and medium for virtual role | |
CN117732075A (en) | Information processing method and device in game, electronic equipment and readable storage medium | |
KR20230158075A (en) | Computer programs, gaming systems and control methods used in them | |
CN117654035A (en) | Method and device for releasing skills in game, electronic equipment and readable storage medium | |
CN116712726A (en) | Game interface switching control method and device, electronic equipment and medium | |
CN117732077A (en) | Information processing method and device in game, electronic equipment and readable storage medium | |
CN117414581A (en) | Information processing method, device, electronic equipment and medium |
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 |