CN109550243B - Game character control method and device, storage medium and electronic device - Google Patents

Game character control method and device, storage medium and electronic device Download PDF

Info

Publication number
CN109550243B
CN109550243B CN201811384925.5A CN201811384925A CN109550243B CN 109550243 B CN109550243 B CN 109550243B CN 201811384925 A CN201811384925 A CN 201811384925A CN 109550243 B CN109550243 B CN 109550243B
Authority
CN
China
Prior art keywords
distance
game
sight
determining
relative distance
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.)
Active
Application number
CN201811384925.5A
Other languages
Chinese (zh)
Other versions
CN109550243A (en
Inventor
刘容嘉
杜雅军
袁紫薇
朱英哲
陶新月
邵腾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201811384925.5A priority Critical patent/CN109550243B/en
Publication of CN109550243A publication Critical patent/CN109550243A/en
Application granted granted Critical
Publication of CN109550243B publication Critical patent/CN109550243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/803Driving vehicles or craft, e.g. cars, airplanes, ships, robots or tanks
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/837Shooting of targets
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6045Methods for processing data by generating or executing the game program for mapping control signals received from the input arrangement into game commands
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8017Driving on land or water; Flying
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8076Shooting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a game role control method and device, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring a first moving distance of a sight control operation in a terminal interaction interface, and acquiring a relative distance between a first game role and a second game role in a game; the sight of the first game character is controlled to move in an interactive interface through the sight control operation; and determining a second movement distance of the sight of the first game character in the interactive interface according to the relative distance and the first movement distance. Through the application, the problem that the sensitivity of the virtual rocker can only be set before the game starts or after the game is paused in the related technology is solved, and the effect of improving the user experience is achieved.

Description

Game character control method and device, storage medium and electronic device
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for controlling a game character, a storage medium, and an electronic apparatus.
Background
In a mobile phone game, a virtual rocker is a common control for realizing the function of a physical rocker by sliding a screen, and is commonly used in fighting games and first-view shooting games. In the air battle game, the virtual rocker is mainly used for realizing the moving operation of the airplane in the process of pursuing or avoiding the enemy plane. Generally, the left-right direction of the rocker controls the left steering and the right steering of the airplane, and the up-down direction controls the climbing and the diving of the airplane.
At present, in an air combat hand game supporting virtual rocker control, a player is allowed to manually set the sensitivity according to preference in advance, but the sensitivity cannot be changed in the game process, and the sensitivity setting can be carried out only after the game is paused. For example, in the hand tour "Galaxy on Fire 3," the player is allowed to adjust the sensitivity of the control system in the settings before the game starts or after the game is paused. The default is 50%, the higher the sensitivity is, the longer the aircraft is advanced when the rocker is moved.
In view of the above problems in the related art, no effective solution exists at present.
Disclosure of Invention
The embodiment of the application provides a method and a device for controlling game characters, a storage medium and an electronic device, which are used for at least solving the problem that the sensitivity of a virtual rocker can only be set before a game starts or after the game is paused in the related art.
According to an embodiment of the present application, there is provided a method of controlling a game character, including: acquiring a first moving distance of a sight control operation in a terminal interaction interface, and acquiring a relative distance between a first game role and a second game role in a game; the sight of the first game character is controlled to move in an interactive interface through the sight control operation; and determining a second movement distance of the sight of the first game character in the interactive interface according to the relative distance and the first movement distance.
According to another aspect of the present application, there is provided a control apparatus for a game character, including: the acquisition module is used for acquiring a first moving distance of the sight control operation in the terminal interaction interface and acquiring a relative distance between a first game role and a second game role in a game; the method comprises the steps that a sight bead of a first game character is controlled to move in an interactive interface through sight bead control operation; and the determining module is used for determining a second moving distance of the front sight of the first game role in the interactive interface according to the relative distance and the first moving distance.
According to a further embodiment of the present application, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present application, there is also provided an electronic device, comprising a memory in which a computer program is stored and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
By the method and the device, the second movement distance of the first game role is determined according to the relative distance between the first game role and the second game role and the first movement distance, namely the first movement distance of the sight of the first game role in the interactive interface can be determined in the game process; that is to say, the moving distance of the front sight of the game role can be adjusted according to the real-time situation (the relative distance between the first game role and the second game role and the first moving distance), so that the problem that the sensitivity of the virtual rocker can only be set before the game starts or after the game is paused in the related art is solved, and the experience effect of the user is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a control method of a game character according to an embodiment of the present application;
fig. 2 is a flowchart of a control method of a game character according to an embodiment of the present application;
fig. 3 is a schematic configuration diagram of a control device for a game character according to an embodiment of the present application.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the present invention running on a mobile terminal, fig. 1 is a block diagram of a hardware configuration of the mobile terminal of the method for controlling a game character according to the embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those of ordinary skill in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 can be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the control method of the game character in the embodiment of the present application, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment, a method for controlling a game character running on the mobile terminal is provided, and fig. 2 is a flowchart of a method for controlling a game character according to an embodiment of the present application, where as shown in fig. 2, the flowchart includes the following steps:
step S202, acquiring a first moving distance of the sight control operation in the terminal interaction interface, and acquiring a relative distance between a first game role and a second game role in a game; the method comprises the following steps that a sight of a first game role is controlled to move in an interactive interface through sight control operation;
and step S204, determining a second moving distance of the sight of the first game character in the interactive interface according to the relative distance and the first moving distance.
Through the steps S202 to S204, the second movement distance of the first game character is determined by the relative distance between the first game character and the second game character and the first movement distance, that is, the first movement distance of the front sight of the first game character in the interactive interface can be determined in the game process; that is to say, the moving distance of the front sight of the game role can be adjusted according to the real-time situation (the relative distance between the first game role and the second game role and the first moving distance), so that the problem that the sensitivity of the virtual rocker can only be set before the game starts or after the game is paused in the related art is solved, and the experience effect of the user is improved.
Optionally, the main body of the above steps may be a mobile phone, a tablet computer, or other terminal devices, but is not limited thereto.
In an optional implementation manner of this embodiment, a manner of acquiring the first movement distance of the front sight control operation in the terminal interaction interface in step S202 may be: acquiring a first moving distance of the sight control moved under the control of the sight control operation; and/or acquiring a first movement distance of the movement of the touch point of the sight control operation acting on the sight control.
In the case of an air battle game, the sight control operation may be a control of the movement of a sight in an interactive interface by acting a sliding operation with a sight control area of a user interactive interface of the terminal. Therefore, the moving distance of the sliding operation in the sight control area is the first moving distance involved in the present embodiment; in addition, the sight control operation in this embodiment may also be an operation performed by a virtual control, but the virtual control does not move during the operation, and the first movement distance may be determined according to the movement distance of the sliding operation in which the starting position is located at the control.
In an optional implementation manner of this embodiment, a manner for acquiring the relative distance between the first game character and the second game character in the game in step S202 may be: determining a designated game role in a preset range of the advancing direction of the first game role as a second game role; the relative distance between the first game character and the second game character in the game is obtained.
As for the foregoing manner in which the step S204 in the present embodiment determines the second movement distance of the front sight of the first game character in the interactive interface according to the relative distance and the first movement distance, in an optional implementation manner of the present embodiment, the following manner may be implemented: under the condition that the first moving distances are the same, determining that the larger the relative distance is, the smaller the corresponding second moving distance is; and/or determining that the smaller the relative distance, the larger the corresponding second movement distance.
For the above manner, in a specific application scenario of the present embodiment, taking an air combat game as an example, the sight control operation may be to control the movement of the sight in the interactive interface by acting a sliding operation with a sight control area of the user interactive interface of the terminal. Therefore, the moving distance of the sliding operation in the front sight control area is the first moving distance involved in the present embodiment; the first game role is the role (airplane or other flyer) currently controlled by the user, and the second game role is the game role (enemy or other flyer) to be combated by the first game role, that is, the relative distance is the distance between the airplane controlled by the user and the enemy in the terminal interaction interface. If the first moving distance, i.e. the moving distance of the sliding operation, is the same, if the relative distance is larger, the corresponding second moving distance is smaller; the corresponding second movement distance is larger if the relative distance is smaller. For example, the first moving distance is always 15mm, and if the relative distance is gradually increased from 30mm to 40mm, the second moving distance is gradually decreased from 8mm to 4 mm; conversely, if the relative distance is gradually decreased from 40mm to 30mm, the second moving distance is gradually increased from 4mm to 8 mm. It should be noted that the specific numerical values are merely examples, and in the case that the first moving distance is the same, the larger the relative distance is, the smaller the corresponding second moving distance is; the smaller the relative distance, the larger the corresponding second movement distance. The relationship among the relative distance, the first moving distance and the second moving distance is equivalent to the change of the operation sensitivity in the air battle game; that is to say, the sensitivity of operation can dynamic change in the actual operation in-process to improve the user and control the sight, thereby improved the gaming experience.
As to the foregoing manner in which the step S204 in this embodiment determines the second movement distance of the front sight of the first game character in the interactive interface according to the relative distance and the first movement distance, in an optional implementation manner of this embodiment, the following manner may also be implemented:
step S204-11, determining a first control coefficient according to a preset dynamic mapping relation and a relative distance; the preset dynamic mapping relation means that the first control coefficient is dynamically reduced along with time under the condition that the relative distance is dynamically increased along with time; and in the case that the relative distance becomes dynamically smaller with time, the first control coefficient becomes dynamically larger with time;
and step S204-12, determining the second moving distance as a product result of the first control coefficient and the first moving distance.
As can be seen from the above steps S204-11 and S204-12, the first control coefficient is dynamically changed, so that the second moving distance is also dynamically changed, and therefore, in the air battle game scene of a specific application, the first control coefficient is changed in inverse proportion to the distance, that is, when one dynamic becomes larger, the other dynamic becomes smaller. Therefore, the dynamic mapping is equivalent to the control sensitivity in the game, that is, the control sensitivity can be dynamically adjusted in the actual operation process, so that the control of the front sight is improved, and the effect of improving the game experience is achieved.
As to the foregoing step S204 in the present embodiment of determining the second movement distance manner of the front sight of the first game character in the interactive interface according to the relative distance and the first movement distance, in an optional implementation manner of the present embodiment, the following manner may also be implemented:
step S204-21, under the condition that the relative distance is greater than or equal to the preset threshold value, determining that the second moving distance of the sight of the first game role in the interactive interface is the moving distance obtained by multiplying the second control coefficient by the first moving distance;
step S204-22, under the condition that the relative distance is smaller than the preset threshold value, determining that the second moving distance of the sight of the first game role in the interactive interface is the moving distance obtained by multiplying the third control coefficient by the first moving distance;
wherein the second control coefficient is smaller than the third control coefficient.
In the above steps S204-21 and S204-22, when the relative distance is greater than or less than the preset threshold value, the product of the different control coefficients and the first moving distance is used as the second moving distance, so as to dynamically adjust the second moving distance in the actual operation process.
The present embodiment is described below with reference to alternative embodiments of the present embodiment;
taking the air battle game as an example, the air battle game has a fast rhythm, so that the requirements on the response speed of the player and the accuracy of airplane control are high. When the player is close to the enemy plane, the enemy plane moves fast and has large displacement relative to the mobile phone screen, and the player needs to turn fast; when the distance from the enemy plane is far, the displacement of the enemy plane is small relative to the screen of the mobile phone, and the turning amplitude needs to be smaller and more accurate. That is, the player's demands for the speed of turning, i.e., the sensitivity of the virtual stick, are different depending on the distance from the opponent's plane. Therefore, in this alternative embodiment, there is provided a virtual stick method for dynamically adjusting sensitivity in an air combat mobile phone game, by which the sensitivity can be adjusted in an actual operation process, the method comprising the steps of:
step S302, finding that the enemy plane starts to chase, and moving the virtual rocker by a distance h 1;
step S304, determining the distance d between the current controlled airplane and the enemy airplane;
step S306, judging whether the distance d is greater than a preset distance d 0; if the determination result is yes, step S308 is executed; if the judgment result is no, executing step S310;
step S308, the currently controlled airplane moves for a distance h2, wherein h2 is larger than h 1;
in step S310, the currently controlled airplane moves by a distance h2, where h2 is smaller than h 1.
According to the steps, when d is larger than or equal to d0, namely, when the distance between the player and the enemy plane is far, h2 is larger (larger than h 1), so that the player can be helped to adjust the centering position and accurately strike the enemy plane. When d is less than d0, i.e., closer to the enemy, h2 becomes smaller (h1 is smaller), helping the player quickly chase the enemy at close distances. Therefore, in the whole game process, the frustration feeling when pursuing enemy planes is reduced, and the game experience of novice players is improved; the control feeling of the airplane is improved, and the psychological expectation of the player in the actual operation is better met.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method of the embodiments of the present application.
Example 2
In this embodiment, a control device for a game character is also provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and the description of the device is omitted. The term "module" as used below may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a schematic structural diagram of a control device for a game character according to an embodiment of the present application, and as shown in fig. 3, the device includes: the obtaining module 32 is configured to obtain a first movement distance of the front sight control operation in the terminal interaction interface, and obtain a relative distance between a first game character and a second game character in the game; the method comprises the following steps that a sight of a first game role is controlled to move in an interactive interface through sight control operation; and the determining module 34 is coupled to the obtaining module 32 and configured to determine a second movement distance of the front sight of the first game character in the interactive interface according to the relative distance and the first movement distance.
Optionally, the obtaining module 32 in this embodiment may be further configured to obtain a first moving distance that the sight control moves under the control of the sight control operation; and/or acquiring a first movement distance of the touch point moving of the sight control operation acting on the sight control.
Optionally, the obtaining module 32 in this embodiment may be further configured to determine that a designated game character within a preset range of the advancing direction of the first game character is a second game character; and acquiring the relative distance between the first game character and the second game character in the game.
Optionally, the determining module 34 in this embodiment is further configured to determine a first control coefficient according to a preset dynamic mapping relationship and a relative distance; the preset dynamic mapping relation means that the first control coefficient becomes smaller along with the time dynamic under the condition that the relative distance becomes larger along with the time dynamic; and in the case that the relative distance becomes dynamically smaller with time, then the first control coefficient becomes dynamically larger with time; and determining the second moving distance as a product of the first control coefficient and the first moving distance.
Optionally, the determining module 34 in this embodiment is further configured to, in a case that the first moving distances are the same, determine that the larger the relative distance is, the smaller the corresponding second moving distance is; and/or determining that the smaller the relative distance, the larger the corresponding second movement distance.
Optionally, the determining module 34 in this embodiment is further configured to, when the relative distance is greater than or equal to the preset threshold, determine that a second moving distance of the sight of the first game character in the interactive interface is a moving distance obtained by multiplying the second control coefficient by the first moving distance; under the condition that the relative distance is smaller than a preset threshold value, determining that a second moving distance of the sight of the first game role in the interactive interface is a moving distance obtained by multiplying a third control coefficient by the first moving distance; wherein the second control coefficient is smaller than the third control coefficient.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present application further provide a storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a first moving distance of the sight control operation in the terminal interaction interface, and acquiring a relative distance between a first game role and a second game role in the game; the method comprises the following steps that a sight of a first game role is controlled to move in an interactive interface through sight control operation;
and S2, determining a second moving distance of the front sight of the first game character in the interactive interface according to the relative distance and the first moving distance.
Optionally, in this embodiment, the storage medium may include but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Example 4
Embodiments of the present application further provide an electronic device, comprising a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a first moving distance of the sight control operation in the terminal interaction interface, and acquiring a relative distance between a first game role and a second game role in the game; the method comprises the following steps that a sight of a first game role is controlled to move in an interactive interface through sight control operation;
and S2, determining a second moving distance of the sight of the first game character in the interactive interface according to the relative distance and the first moving distance.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed out of order, or separately as integrated circuit modules, or multiple modules or steps thereof may be implemented as a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for controlling a sight of a game character, comprising:
acquiring a first moving distance of a sight control operation in a terminal interaction interface, and acquiring a relative distance between a first game role and a second game role in a game; the method comprises the steps that a sight bead of a first game character is controlled to move in an interactive interface through sight bead control operation;
determining a second moving distance of the sight of the first game character in the interactive interface according to the relative distance and the first moving distance;
wherein, the obtaining the relative distance between the first game role and the second game role in the game comprises: determining a designated game role in a preset range of the advancing direction of the first game role as the second game role; acquiring the relative distance between the first game role and the second game role in the game;
the obtaining of the first movement distance of the sight control operation in the terminal interaction interface includes: acquiring a first movement distance of a sight control moving under the control of the sight control operation; and/or acquiring a first movement distance of the movement of the touch point of the sight control operation acting on the sight control.
2. The method of claim 1, wherein determining a second distance of movement of the sight of the first game character in the interactive interface based on the relative distance and the first distance of movement comprises:
determining a first control coefficient according to a preset dynamic mapping relation and the relative distance; the preset dynamic mapping relation means that the first control coefficient becomes smaller dynamically with time under the condition that the relative distance becomes larger dynamically with time; and in the case that the relative distance becomes dynamically smaller with time, then the first control coefficient becomes dynamically larger with time;
and determining the second movement distance as a product of the first control coefficient and the first movement distance.
3. The method of claim 1, wherein determining a second distance of movement of the sight of the first game character in the interactive interface based on the relative distance and the first distance of movement comprises:
under the condition that the first moving distances are the same, determining that the larger the relative distance is, the smaller the corresponding second moving distance is; and/or determining that the smaller the relative distance is, the larger the corresponding second movement distance is.
4. The method of claim 1, wherein determining the second movement distance of the first game character based on the relative distance and the first movement distance comprises:
when the relative distance is larger than or equal to a preset threshold value, determining that a second moving distance of the front sight of the first game role in the interactive interface is a moving distance obtained by multiplying a second control coefficient by the first moving distance;
when the relative distance is smaller than a preset threshold value, determining that a second moving distance of the front sight of the first game role in the interactive interface is a moving distance obtained by multiplying a third control coefficient by the first moving distance;
wherein the second control coefficient is less than the third control coefficient.
5. A control device for a game character, comprising:
the acquisition module is used for acquiring a first moving distance of the sight control operation in the terminal interaction interface and acquiring a relative distance between a first game role and a second game role in a game; the method comprises the steps that a sight bead of a first game character is controlled to move in an interactive interface through sight bead control operation;
the determining module is used for determining a second moving distance of the sight of the first game role in the interactive interface according to the relative distance and the first moving distance;
the device is also used for determining the appointed game role in the preset range of the advancing direction of the first game role as the second game role; acquiring the relative distance between the first game role and the second game role in the game;
wherein the obtaining module is further configured to: acquiring a first movement distance of a sight control moving under the control of the sight control operation; and/or acquiring a first movement distance of the movement of the touch point of the sight control operation acting on the sight control.
6. The apparatus of claim 5, wherein the determining module comprises:
the first determining unit is used for determining a first control coefficient according to a preset dynamic mapping relation and the relative distance; the preset dynamic mapping relation means that the first control coefficient becomes smaller dynamically with time under the condition that the relative distance becomes larger dynamically with time; and in the case that the relative distance becomes dynamically smaller with time, then the first control coefficient becomes dynamically larger with time;
a second determining unit, configured to determine that the second moving distance is a product of the first control coefficient and the first moving distance.
7. The apparatus of claim 5, wherein the determining module comprises:
a third determining unit, configured to determine that, when the first moving distances are the same, the larger the relative distance is, the smaller the corresponding second moving distance is; and/or determining that the smaller the relative distance is, the larger the corresponding second movement distance is.
8. The apparatus of claim 5, wherein the determining module comprises:
a fourth determining unit, configured to determine, when the relative distance is greater than or equal to a preset threshold, that a second movement distance of the front sight of the first game character in the interactive interface is a movement distance obtained by multiplying a second control coefficient by the first movement distance;
a fifth determining unit, configured to determine, when the relative distance is smaller than a preset threshold, that a second movement distance of the front sight of the first game character in the interactive interface is a movement distance obtained by multiplying a third control coefficient by the first movement distance;
wherein the second control coefficient is less than the third control coefficient.
9. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 4 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has a computer program stored therein, and the processor is configured to execute the computer program to perform the method of any of claims 1 to 4.
CN201811384925.5A 2018-11-20 2018-11-20 Game character control method and device, storage medium and electronic device Active CN109550243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811384925.5A CN109550243B (en) 2018-11-20 2018-11-20 Game character control method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811384925.5A CN109550243B (en) 2018-11-20 2018-11-20 Game character control method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN109550243A CN109550243A (en) 2019-04-02
CN109550243B true CN109550243B (en) 2022-08-19

Family

ID=65866903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811384925.5A Active CN109550243B (en) 2018-11-20 2018-11-20 Game character control method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN109550243B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111603758A (en) * 2020-05-28 2020-09-01 网易(杭州)网络有限公司 Visual angle adjusting method for game role, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101582296B1 (en) * 2015-06-26 2016-01-04 주식회사 레드덕 Automatic aiming system and method for mobile game
CN107029428A (en) * 2016-02-04 2017-08-11 网易(杭州)网络有限公司 A kind of control system of shooting game, method and terminal
CN108310764A (en) * 2018-02-09 2018-07-24 鲸彩在线科技(大连)有限公司 Assisted location method, device and equipment
CN108635858A (en) * 2018-05-18 2018-10-12 腾讯科技(深圳)有限公司 Interface display method, device, electronic device and computer readable storage medium
CN108744513A (en) * 2018-04-24 2018-11-06 网易(杭州)网络有限公司 Method of sight, device, electronic equipment in shooting game and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101582296B1 (en) * 2015-06-26 2016-01-04 주식회사 레드덕 Automatic aiming system and method for mobile game
CN107029428A (en) * 2016-02-04 2017-08-11 网易(杭州)网络有限公司 A kind of control system of shooting game, method and terminal
CN108310764A (en) * 2018-02-09 2018-07-24 鲸彩在线科技(大连)有限公司 Assisted location method, device and equipment
CN108744513A (en) * 2018-04-24 2018-11-06 网易(杭州)网络有限公司 Method of sight, device, electronic equipment in shooting game and storage medium
CN108635858A (en) * 2018-05-18 2018-10-12 腾讯科技(深圳)有限公司 Interface display method, device, electronic device and computer readable storage medium

Also Published As

Publication number Publication date
CN109550243A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
US11446566B2 (en) In-game display control method and apparatus, storage medium processor, and terminal
US11383165B2 (en) In-game display control method and apparatus, storage medium, processor, and terminal
US11446565B2 (en) In-game display control method and apparatus, storage medium processor, and terminal
US10857462B2 (en) Virtual character controlling method and apparatus, electronic device, and storage medium
US11717751B2 (en) In-game display control method and apparatus, storage medium, processor, and terminal
JP6715301B2 (en) Information processing method and device, program, storage medium, electronic device
CN108415639B (en) Visual angle adjusting method and device, electronic device and computer readable storage medium
CN111905370B (en) Method and device for controlling virtual character in game, electronic equipment and storage medium
US11511184B2 (en) In-game display control method and apparatus, storage medium processor, and terminal
US11241625B2 (en) Positioning information prompting method and apparatus, storage medium, and electronic device
CN108319478B (en) Object attribute adjusting method and device, storage medium and electronic device
US11779843B2 (en) Virtual object control method and apparatus, storage medium, and electronic device
CN110180190B (en) Method and device for processing action of virtual character, storage medium and electronic device
CN110215710B (en) In-game event determination method and device, electronic equipment and storage medium
CN107998654B (en) Acceleration adjusting method and device, storage medium and electronic device
US10825261B2 (en) Method and device for determining and adjusting spatial attribute of virtual character in virtual reality applications
US20220054935A1 (en) Virtual prop control method and apparatus, storage medium, and electronic device
US20160121210A1 (en) Method and apparatus for configuring an accessory device
CN113318434A (en) Game information processing method and device and storage medium
US20220266141A1 (en) Method and apparatus for selecting virtual object interaction mode, device, medium, and product
CN109550243B (en) Game character control method and device, storage medium and electronic device
US20210291057A1 (en) Method and apparatus for controlling virtual race car, storage medium, and device
US20220161144A1 (en) Image display method and apparatus, storage medium, and electronic device
CN113304478B (en) Skill indicator control method and device, storage medium and electronic equipment
US20220040579A1 (en) Virtual object control method and apparatus, computer device, and storage 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
GR01 Patent grant
GR01 Patent grant