CN114225418A - Method and device for controlling flight of game character, storage medium, and electronic device - Google Patents

Method and device for controlling flight of game character, storage medium, and electronic device Download PDF

Info

Publication number
CN114225418A
CN114225418A CN202111643379.4A CN202111643379A CN114225418A CN 114225418 A CN114225418 A CN 114225418A CN 202111643379 A CN202111643379 A CN 202111643379A CN 114225418 A CN114225418 A CN 114225418A
Authority
CN
China
Prior art keywords
game
team
flight
role
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111643379.4A
Other languages
Chinese (zh)
Inventor
白雪
冷纪国
胡浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Perfect Time And Space Software Co ltd
Original Assignee
Shanghai Perfect Time And Space Software 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 Shanghai Perfect Time And Space Software Co ltd filed Critical Shanghai Perfect Time And Space Software Co ltd
Priority to CN202111643379.4A priority Critical patent/CN114225418A/en
Publication of CN114225418A publication Critical patent/CN114225418A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • 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/847Cooperative playing, e.g. requiring coordinated actions from several players to achieve a common goal

Abstract

The invention provides a flight control method and device for game characters, a storage medium and an electronic device, wherein the method comprises the following steps: detecting a team flight request triggered by a first game client in a virtual scene, wherein the first game client is used for controlling a first game role in the virtual scene; forwarding a team flight request to a second game client, wherein the first game client and the second game client are accessed to a game server, and the second game client is used for controlling a second game role in the virtual scene; detecting a team accepting instruction returned by the second game client based on the team flight request; and controlling the second game role to fly along with the first game role in the virtual scene in response to the team formation receiving instruction. According to the invention, the technical problem that the game roles in the related technology can not form a team to fly in the virtual scene is solved, and the flying control flexibility of the game roles and the playability of the game are improved.

Description

Method and device for controlling flight of game character, storage medium, and electronic device
Technical Field
The invention relates to the technical field of computers, in particular to a flight control method and device of game characters, a storage medium and an electronic device.
Background
In the related art, in a massively Multiplayer Online Role-Playing Game scene or a battle-like scene in the current market, a virtual character may fly in the scene or change a habitat topography.
In the related art, there is no multi-player flying scene, and the flying carrier cannot carry multiple players simultaneously, nor interact in the flying process, so that the multi-player interactive scene in the virtual game is limited, and the interaction efficiency is low.
In view of the above problems in the related art, no effective solution has been found at present.
Disclosure of Invention
The embodiment of the invention provides a flight control method and device for game characters, a storage medium and an electronic device.
According to an embodiment of the present invention, there is provided a flight control method of a game character, including: detecting a team flight request triggered by a first game client in a virtual scene, wherein the first game client is used for controlling a first game role in the virtual scene; forwarding the team flight request to a second game client, wherein the first game client and the second game client access a game server, and the second game client is used for controlling a second game role in the virtual scene; detecting a team accepting instruction returned by a second game client based on the team flight request; and controlling the second game role to fly along with the first game role in the virtual scene in response to the team accepting command.
According to another embodiment of the present invention, there is provided a flight control apparatus for a game character, including: the system comprises a first detection module, a first queue management module and a second queue management module, wherein the first detection module is used for detecting a queue flying request triggered by a first game client in a virtual scene, and the first game client is used for controlling a first game role in the virtual scene; the forwarding module is used for forwarding the formation flying request to a second game client, wherein the first game client and the second game client are accessed to a game server, and the second game client is used for controlling a second game role in the virtual scene; the second detection module is used for detecting a team formation receiving instruction returned by the second game client based on the team formation flight request; and the first control module is used for responding to the team accepting instruction and controlling the second game role to fly along with the first game role in the virtual scene.
According to a further embodiment of the present invention, 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 invention, there is also provided an electronic device, including 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 above method embodiments.
According to the invention, a team flight request triggered by a first game client in a virtual scene is detected, wherein the first game client is used for controlling a first game role in the virtual scene; the method comprises the steps of forwarding a team formation flight request to a second game client, wherein the first game client and the second game client are accessed to a game server, the second game client is used for controlling a second game role in a virtual scene, detecting a team formation acceptance instruction returned by the second game client based on the team formation flight request, responding to the team formation acceptance instruction, controlling the second game role to fly along with the first game role in the virtual scene, forwarding the team formation flight request of the first game role to the second game role, and controlling the second game role to fly along with the first game role in the virtual scene, so that the technical problem that the game role in the related technology cannot fly in the virtual scene in a team formation mode is solved, and the flight control activity of the game role and the game playing flexibility are improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a block diagram of the hardware architecture of a flight control computer for a game character according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for controlling the flight of a game character according to an embodiment of the present invention;
FIG. 3 is a schematic illustration of a flight followed in a team array according to an embodiment of the present invention;
FIG. 4 is a schematic illustration of an embodiment of the present invention following a flight within a team air wall;
FIG. 5 is a block diagram of a flight control device for a game character according to an embodiment of the present invention;
fig. 6 is a block diagram of an electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. 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. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile phone, a tablet, a server, a computer, or a similar electronic terminal. Taking the example of running on a computer, fig. 1 is a hardware structure block diagram of a flight control computer of a game character according to an embodiment of the present invention. As shown in fig. 1, the computer 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, a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those of ordinary skill in the art that the configuration shown in FIG. 1 is illustrative only and is not intended to limit the configuration of the computer described above. For example, a computer 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 a computer program corresponding to a flight control method of a game character in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program 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 examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. In the present embodiment, the processor 104 is configured to control the target virtual character to perform a specified operation to complete the game task in response to the human-machine interaction instruction and the game policy. The memory 104 is used for storing program scripts of the electronic game, configuration information, attribute information of the virtual character, and the like.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
Optionally, the input/output device 108 further includes a human-computer interaction screen for acquiring a human-computer interaction instruction through a human-computer interaction interface and for presenting a picture in a virtual scene;
in this embodiment, a flight control method for a game character is provided, and fig. 2 is a schematic flow chart of a flight control method for a game character according to an embodiment of the present invention, as shown in fig. 2, the flow chart includes the following steps:
step S202, detecting a team flight request triggered by a first game client in a virtual scene, wherein the first game client is used for controlling a first game role in the virtual scene;
optionally, the virtual scene applied in this embodiment may be a virtual game scene, a virtual teaching scene, a virtual demonstration scene, and the like, where the virtual scene includes a plurality of virtual characters (e.g., a first virtual Character, a second virtual Character, and the like in this embodiment), and the virtual characters may be Controlled by a user operation or a system AI and move in the virtual scene such as the game scene, where the virtual characters may be Controlled by a user, such as a PCC (Player-Controlled Character) in a virtual game Controlled by a master Player. In this embodiment, a virtual scene is taken as an example of a game scene.
In the present embodiment, the game scene includes a plurality of spaces, such as land, water, and airspace, and the description is given by taking flight control of the game character in the airspace as an example.
When the first game role moves on the land or in the water, if the skill of light power, the flight skill, the flight vehicle and the like are triggered, the first game role enters the airspace and is switched to the flight state.
Optionally, the first game character may be controlled to enter the flight state by manipulating the flight trigger control, or the first game character may be switched from the current state to the flight state by triggering a specified attack skill combination, or triggering a specified skill button for a predetermined number of times. When the state is switched from the non-flight state to the flight state, the first operation control on the current control interface of the first game role can be synchronously updated to the second operation control in the flight state.
Step S204, forwarding a formation flying request to a second game client, wherein the first game client and the second game client are accessed to a game server, and the second game client is used for controlling a second game role in the virtual scene;
step S206, detecting a team formation receiving instruction returned by the second game client based on the team formation flight request;
and S208, controlling the second game role to fly along with the first game role in the virtual scene in response to the team formation receiving instruction.
Optionally, the flight following states of the first game character and the second game character include multiple types, in an example, after the second game character receives the team flight, the character state of the second game character is switched to the flight following state, the character state of the first game character is switched to the flight leading state, the first game character in the flight leading state can control the second game character in the flight following state, for example, the following position and the following distance of the second game character are adjusted, the flight following state of the second game character is released, and meanwhile, the following position and the following distance between the second game character and the first game character can be adjusted in the following range by the second game character.
Through the steps, a team flight request triggered by a first game client in a virtual scene is detected, wherein the first game client is used for controlling a first game role in the virtual scene; the method comprises the steps of forwarding a team formation flight request to a second game client, wherein the first game client and the second game client are accessed to a game server, the second game client is used for controlling a second game role in a virtual scene, detecting a team formation acceptance instruction returned by the second game client based on the team formation flight request, responding to the team formation acceptance instruction, controlling the second game role to fly along with the first game role in the virtual scene, forwarding the team formation flight request of the first game role to the second game role, and controlling the second game role to fly along with the first game role in the virtual scene, so that the technical problem that the game role in the related technology cannot fly in the virtual scene in a team formation mode is solved, and the flight control activity of the game role and the game playing flexibility are improved.
In one implementation of this embodiment, controlling the second game character to fly in the virtual scene following the first game character comprises: positioning a three-dimensional coordinate position of a first game role in a virtual scene; creating a team array by taking the three-dimensional coordinate position as a reference position, wherein the team array comprises a plurality of array points with fixed positions; positioning a first array point of a first game role in a team array, and distributing a second array point to a second game role; and controlling the second game character to fly along with the first game character in the virtual scene based on the second array point in the team array.
Optionally, the three-dimensional coordinate position of the first game character in the virtual scene may be a central position of a team array, the team array is at a position of a first preset row and a second preset column, or a position selected by the first game character in a self-defined manner, each array point of the team array is used for allocating a game character to follow, the team array is connected with the first game character through the first array point, the first game character is a driving point of the team array, and the first game character drives the team array to fly in real time in the game scene and simultaneously drives other game characters in the team array, such as the second game character.
Fig. 3 is a schematic diagram of the embodiment of the present invention following a flight in a team array, the team array is a honeycomb-shaped array including 7 array points, array point 1 to array point 7, respectively, a first game character is on array point 1, a second game character is on array point 5, and other empty array points can be continuously assigned with other game characters following the flight of the first game character. In addition, the team array may be a straight long snake array or the like.
In another implementation of this embodiment, controlling the second game character to fly in the virtual scene following the first game character comprises:
s11, positioning the three-dimensional coordinate position of the first game role in the virtual scene;
s12, establishing a team air wall by taking the three-dimensional coordinate position as a reference position, wherein the wall boundary of the team air wall is the farthest moving boundary of the second game role in the team flight state;
optionally, the three-dimensional coordinate position of the first game character in the virtual scene may be a center position of a team air wall, a boundary position of a wall body on one side of the team air wall, and the like, the range of the team air wall is a range in which the second game character flies along with the first game character, the team air wall is connected to the first game character through a first position (the first position is a fixed position or a real-time position of the first game character in the team air wall) in the wall, the first game character is a driving point of the team air wall, the first game character drives the team air wall to fly in real time in the game scene, and simultaneously drives other game characters in the team air wall to fly, such as the second game character.
And S13, controlling the second game character to fly along the first game character in the virtual scene within the range of the air wall of the team.
Fig. 4 is a schematic view of the embodiment of the present invention following flight in a team air wall, wherein the team air wall is a spherical wall, and the first game character and the second game character follow flight in the spherical wall.
In some examples, after controlling the second game character to fly in the virtual scene following the first game character within a range of the air wall of the team, the method further comprises: detecting a movement instruction triggered by a second game role in an air wall of a team; responding to the moving instruction, and judging whether the second game role is separated from the range of the air wall of the team or not; and if the second game character leaves the range of the air wall of the team, sending a departure notification message to the first game client, wherein the departure notification message is used for indicating that the second game character stops flying in the team with the first game character.
Optionally, in the flight process of the team array or the whole team in the team air wall, the team members in the team can change the team shape or change the positions of the team members in the team, and by calculating the separation distance between the game characters or the distance between the game characters and the wall boundary of the team air wall in real time, when the separation distance meets the preset condition, it is determined that the second game character automatically leaves the team.
Based on the above example, determining whether the second game character is off the team air wall includes: calculating a separation distance between the second game character and the first game character; if the spacing distance between the second game role and the first game role is greater than the preset distance, determining that the second game role is separated from the team air wall; and/or monitoring whether collision operation occurs between the second game role and the team air wall; and if the collision operation occurs between the second game character and the team air wall, determining that the second game character is separated from the team air wall.
In some other examples, the second game character is a plurality of characters, including the first character and the second character, and determining whether the second game character is off the air wall of the team includes: calculating a first spacing distance between the first role and the first game role, if the first spacing distance is greater than a first preset distance; and determining a second role closest to the first role, calculating a second spacing distance between the first role and the second role, determining that the first role is separated from the team air wall if the second spacing distance is greater than a second preset distance, and determining that the first role is not separated from the team air wall if the second spacing distance is less than or equal to the second preset distance. By this example, when a plurality of second game characters fly following the first game character, as long as the separation distance between any two second game characters is less than a certain distance, it is possible to determine the state in which the second game characters are still flying in a team.
In one implementation of this embodiment, forwarding the formation flight request to the second game client comprises: acquiring role attribute information of a first game role; determining a game play to which the first game role belongs and a role type of the first game role in the game play based on the role attribute information; and if the role type is the designated type, forwarding a formation flight request to a second game client corresponding to a second game role in the game formation.
Optionally, the designated type may be a role type such as a captain, a help leader, and the like, or a role type whose role level meets certain requirements. In some examples, the team flight request is triggered by a designated virtual item in a game scene, for example, a summoning button in a control skill area of a first game character is clicked to summon other team members to enter a high-altitude flight following state, and the other team members accept the team flight request to enter a flight following state to follow the first game character initiating summoning according to a certain team shape. Optionally, only the designated type of character in the team can initiate the summons, and after a second game character leaves the team, the team or captain flying by the whole team receives the prompt message.
In some implementation scenarios, the solution of this embodiment further includes:
s21, detecting a ride sharing request triggered by the first game client on the target flight vehicle, wherein the ride sharing request is used for requesting a third game role in the virtual scene to ride on the target flight vehicle of the first game role;
s22, acquiring prop attribute information of the target flight vehicle;
s23, judging whether the target flying carrier is a multi-person flying carrier according to the property attribute information;
and S24, if the target flying carrier is a multi-player flying carrier, forwarding a ride sharing request to a third game client corresponding to a third game role, and controlling the third game role and the first game role to ride on the target flying carrier together.
Optionally, the multi-person flying vehicle may be a double-person flying vehicle, a triple-person flying vehicle or a flying vehicle rated to carry more game characters.
Optionally, after controlling the third game character and the first game character to ride on the target flying vehicle at the same time, the method further includes:
s25, acquiring the number of load-limiting members of the target flight carrier;
the number of load-limiting members is the number of game roles loaded by the target flight carrier in a rated mode, and can be read from the attribute information of the target flight carrier.
S26, judging whether the number of the current boarding members of the target flight carrier is larger than the number of the load limiting members;
and S27, if the number of the current boarding members of the target flight vehicle is larger than the number of the load limiting members, reducing the maximum flight speed of the target flight vehicle, and/or reducing the maximum flight height of the target flight vehicle, and/or freezing the designated function button of the target flight vehicle.
In this example, the target flying vehicle is taken as an aircraft for illustration, when the number of the loaded characters on the aircraft is larger, the flying speed is slower, the aircraft with the rated number of people can be overloaded, when the aircraft is overloaded, certain specific functions of the aircraft cannot be triggered, and the flying speed and the flying height are obviously reduced. Wherein reducing the maximum flying height of the target flying vehicle comprises: and acquiring the initial maximum flight height of the target flight carrier, calculating the overload capacity of the target flight carrier according to the current number of the boarding members and the number of the load limiting members, and calculating the target maximum flight height to be updated based on the overload capacity and the initial maximum flight height. For example, the initial maximum flying height is 100 (unit: meter), the number of load-limited members is 4, the number of currently-used boarding members is 6, the overload amount is calculated by the difference (6-4) or the ratio ((6-4)/4), and if the overload amount is 50% by calculation of the ratio, the target maximum flying height is calculated to be 100 × 50%, which is 50%. The example of calculating the maximum flight speed is similar to the above example, for example, multiple speeds are configured in the attribute information of the target flight vehicle, each speed corresponds to a range of the number of people currently picked up by one target flight vehicle, and is respectively the first speed, the second speed and the third speed, the number of picked up people is less than the number of load-limiting members, for example, 1 person flies according to the first speed, the number of picked up people is equal to the number of load-limiting members, 4 persons flies according to the second speed, the number of picked up people is greater than the number of load-limiting members, 5 persons flies according to the third speed, the first speed is greater than the second speed, and the second speed is greater than the third speed.
Optionally, after controlling the third game character and the first game character to jointly ride on the target flying vehicle, the method further includes: detecting a multi-person interaction request triggered by a first game client on a target flight carrier; and responding to the multi-player interaction request, and controlling the first game role and the third game role to execute interactive operation matched with each other on the target flight carrier.
The interactive operation of this embodiment can be, but is not limited to: embrace each other, jump simultaneously, first game role and third game role carry out first action and second action etc. of mutually supporting respectively. The interactive operation matched with each other can be completed or the special effect animation of the interactive operation can be played by simultaneously driving the skeleton models of the first game role and the third game role.
Optionally, the controlling the first game character and the third game character to perform the interactive operation on the target flying vehicle in cooperation with each other includes: acquiring a first gender attribute of the first game role and a second gender attribute of a third game role, and comparing the first gender attribute with the second gender attribute; and if the third game role and the first game role are the same-sex roles, controlling the first game role and the third game role to execute a second interactive operation matched with each other on the target flight carrier. In the scene of the same sex character, differential interaction operation can be further executed between two game characters with different sex attributes according to the sex attributes of the game characters.
When flying by two persons, the other roles can be invited to carry out the double-person flying state through the ride sharing button in the flying control area, and the double-person flying state can be carried out if the 'ride sharing invitation' button in the role control area is clicked. After the double-person flight state is entered, the double-person flight state can be released by clicking the ride sharing release button, the game role to which the aircraft belongs can be selected to release the double-person flight state, after the double-person flight state is released, two game roles on the aircraft can land at the same time, or one game role can be selected from the two game roles to land, if the owner of the aircraft is kept on the aircraft, if the game role of the ride sharing release button is triggered to land.
In some implementation scenarios of this embodiment, after detecting the multi-player interaction request triggered by the first game client on the target flying vehicle, the method further includes: generating a control instruction of the target flight vehicle according to the interaction request; and responding to the control instruction, searching for a flight animation special effect matched with the interactive operation, displaying the flight animation special effect on the flight track of the target flight vehicle, and/or searching for a flight control parameter matched with the interactive operation, and adjusting the flight speed and/or the flight track of the target flight vehicle based on the flight control parameter.
During ride-sharing flight, for example, the character 1 invites the character 2 to share the target flight vehicle, and the display special effect of the ride-sharing picture or the flight state (such as the flight speed or the flight animation special effect displayed during flight) of the target flight vehicle can be controlled according to the interaction action initiated by the two people during ride-sharing. The method comprises the following steps: and displaying a special effect corresponding to the interaction action while the target flight vehicle flies, and adjusting the flying speed, the acceleration and the flying track of the target flight vehicle in real time according to the flight control parameters corresponding to the interaction action.
In some implementation scenarios of this embodiment, after controlling the third game character and the first game character to jointly ride on the target flying vehicle, the scheme further includes: and allocating a first control authority of the target flight vehicle to the first game role, and allocating a second control authority of the target flight vehicle to the third game role.
In one example, a first control right is used for controlling a cockpit of the target flying vehicle, a second control right is used for controlling a weapon cabin of the target flying vehicle, in another example, the first control right is used for controlling the target flying vehicle in a horizontal direction, the second control right is used for controlling the flying height of the target flying vehicle, in yet another example, the first control right is used for controlling a first control of the target flying vehicle, the second control right is used for controlling a second control of the target flying vehicle, and the operation controls of the target flying vehicle comprise the first control and the second control.
When two games ride on one target flight vehicle, the flight altitude and direction can be controlled by the full authority of the initiating role of the ride-sharing request, or the flight vehicle can be controlled by all the shared roles, for example, the role 1 transfers the altitude control authority of the flight vehicle to the role 2, the role 1 controls the front, the back, the left and the right, the role 2 controls the flight altitude, and two persons cooperate to control the flight state.
By adopting the scheme of the embodiment, the following flight and flight interaction of multiple persons are realized, and the human-computer interaction efficiency is improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can 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 invention 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 according to the embodiments of the present invention.
Example 2
In this embodiment, a flight control device for a game character is further provided, which is used to implement the foregoing embodiments and preferred embodiments, and the description of the flight control device is omitted. As used below, the term "module" 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. 5 is a block diagram showing a configuration of a flight control apparatus for a game character according to an embodiment of the present invention, as shown in fig. 5, the apparatus including: a first detection module 50, a forwarding module 52, a second detection module 54, a first control module 56, wherein,
a first detecting module 50, configured to detect a team flight request triggered by a first game client in a virtual scene, where the first game client is configured to control a first game role in the virtual scene;
a forwarding module 52, configured to forward the team flight request to a second game client, where the first game client and the second game client access a game server, and the second game client is used to control a second game role in the virtual scene;
a second detection module 54, configured to detect a team acceptance instruction returned by the second game client based on the team flight request;
a first control module 56, configured to control the second game character to fly in the virtual scene following the first game character in response to the team accepting instruction.
Optionally, the first control module includes: the positioning unit is used for positioning the three-dimensional coordinate position of the first game role in the virtual scene; a first creating unit configured to create a team array with the three-dimensional coordinate position as a reference position, wherein the team array includes a plurality of fixed-position array points; the allocation unit is used for positioning a first array point of the first game character in the team array and allocating a second array point to the second game character; a first control unit for controlling the second game character to fly in the virtual scene following the first game character based on the second array points in the team array. Optionally, the first control module includes: the positioning unit is used for positioning the three-dimensional coordinate position of the first game role in the virtual scene; a second creating unit, configured to create a team air wall with the three-dimensional coordinate position as a reference position, where a wall boundary of the team air wall is a farthest moving boundary of the second game character in a team flight state; and the second control unit is used for controlling the second game character to fly along with the first game character within the range of the air wall of the team in the virtual scene.
Optionally, the first control module further includes: a detection unit, configured to detect a movement instruction triggered by the second game character within the team air wall after the second control unit controls the second game character to fly along with the first game character within the range of the team air wall in the virtual scene; the judging unit is used for responding to the moving instruction and judging whether the second game role is separated from the range of the team air wall; and a notification unit, configured to send a dequeue notification message to the first game client if the second game character departs from the range of the team air wall, where the dequeue notification message is used to indicate that the second game character has stopped flying in a team with the first game character.
Optionally, the determining unit includes: a calculation subunit configured to calculate a separation distance between the second game character and the first game character; if the spacing distance between the second game role and the first game role is larger than a preset distance, determining that the second game role is separated from the team air wall; and/or the monitoring subunit is used for monitoring whether collision operation occurs between the second game role and the team air wall; and if the collision operation occurs between the second game character and the team air wall, determining that the second game character is separated from the team air wall.
Optionally, the forwarding module includes: an acquisition unit configured to acquire character attribute information of the first game character; a determination unit configured to determine, based on the character attribute information, a game play to which the first game character belongs, and a character type of the first game character in the game play; and the forwarding unit is used for forwarding the formation flying request to a second game client corresponding to a second game role in the game formation if the role type is the designated type.
Optionally, the apparatus further comprises: a third detection module, configured to detect a ride sharing request triggered by the first game client on a target flight vehicle, where the ride sharing request is used to request a third game role in the virtual scene to ride on the target flight vehicle of the first game role; the first acquisition module is used for acquiring prop attribute information of the target flight vehicle; the first judgment module is used for judging whether the target flight carrier is a multi-person flight carrier or not according to the prop attribute information; and the second control module is used for forwarding the sharing request to a third game client corresponding to the third game role if the target flying carrier is a multi-player flying carrier, and controlling the third game role and the first game role to be shared on the target flying carrier.
Optionally, the apparatus further comprises: a second obtaining module, configured to obtain the number of load-limiting members of the target flight vehicle after the second control module controls the third game role and the first game role to ride on the target flight vehicle at the same time; the second judgment module is used for judging whether the number of the current riding members of the target flight carrier is greater than the number of the load limiting members; and the third control module is used for reducing the maximum flight speed of the target flight vehicle and/or reducing the maximum flight height of the target flight vehicle and/or freezing a designated function button of the target flight vehicle if the number of the current boarding members of the target flight vehicle is greater than the number of the load limiting members.
Optionally, the apparatus further comprises: the fourth detection module is used for detecting a multi-player interaction request triggered by the first game client on the target flying carrier after the second control module controls the third game role and the first game role to jointly ride on the target flying carrier; and the fourth control module is used for responding to the multi-person interaction request and controlling the first game role and the third game role to execute interactive operation matched with each other on the target flight carrier.
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
Fig. 6 is a structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 6, the electronic device includes a processor 61, a communication interface 62, a memory 63, and a communication bus 64, where the processor 61, the communication interface 62, and the memory 63 complete mutual communication through the communication bus 64, and the memory 63 is used for storing a computer program;
the processor 61 is configured to implement the following steps when executing the program stored in the memory 63: detecting a team flight request triggered by a first game client in a virtual scene, wherein the first game client is used for controlling a first game role in the virtual scene; forwarding the team flight request to a second game client, wherein the first game client and the second game client access a game server, and the second game client is used for controlling a second game role in the virtual scene; detecting a team accepting instruction returned by a second game client based on the team flight request; and controlling the second game role to fly along with the first game role in the virtual scene in response to the team accepting command.
Optionally, the controlling the second game character to fly in the virtual scene following the first game character includes: positioning a three-dimensional coordinate position of the first game character in the virtual scene; creating a team array by taking the three-dimensional coordinate position as a reference position, wherein the team array comprises a plurality of array points with fixed positions; positioning a first array point of the first game character in the team array, and allocating a second array point to the second game character; controlling the second game character to follow the first game character in the virtual scene based on a second array point in the team array.
Optionally, the controlling the second game character to fly in the virtual scene following the first game character includes: positioning a three-dimensional coordinate position of the first game character in the virtual scene; creating a team air wall by taking the three-dimensional coordinate position as a reference position, wherein the wall boundary of the team air wall is the farthest moving boundary of the second game character in a team flight state; and controlling the second game character to fly along with the first game character within the range of the air wall of the team in the virtual scene.
Optionally, after controlling the second game character to fly along the first game character within the range of the team air wall in the virtual scene, the method further includes: detecting a movement instruction triggered by the second game character in the air wall of the team; responding to the moving instruction, and judging whether the second game role is separated from the range of the air wall of the team or not; and if the second game character departs from the range of the team air wall, sending a departure notification message to the first game client, wherein the departure notification message is used for indicating that the second game character stops flying in team with the first game character.
Optionally, the determining whether the second game character is separated from the team air wall includes: calculating a separation distance between the second game character and the first game character; if the spacing distance between the second game role and the first game role is larger than a preset distance, determining that the second game role is separated from the team air wall; and/or monitoring whether collision operation occurs between the second game role and the team air wall; and if the collision operation occurs between the second game character and the team air wall, determining that the second game character is separated from the team air wall.
Optionally, forwarding the team flight request to the second game client includes: acquiring role attribute information of the first game role; determining a game play to which the first game character belongs and a character type of the first game character in the game play based on the character attribute information; and if the role type is the designated type, forwarding the team flight request to a second game client corresponding to a second game role in the game formation.
Optionally, the method further includes: detecting a ride sharing request triggered by the first game client on a target flying vehicle, wherein the ride sharing request is used for requesting a third game role in the virtual scene to ride on the target flying vehicle of the first game role; acquiring prop attribute information of the target flight carrier; judging whether the target flight carrier is a multi-person flight carrier or not according to the property attribute information; and if the target flying carrier is a multi-player flying carrier, forwarding the ride sharing request to a third game client corresponding to the third game role, and controlling the third game role and the first game role to ride on the target flying carrier together.
Optionally, after controlling the third game character and the first game character to ride on the target flying vehicle simultaneously, the method further comprises: acquiring the number of load-limiting members of the target flight carrier; judging whether the current number of the riding members of the target flight carrier is larger than the limited number of the riding members; if the number of the current boarding members of the target flight vehicle is larger than the number of the load limiting members, reducing the maximum flight speed of the target flight vehicle, and/or reducing the maximum flight height of the target flight vehicle, and/or freezing a designated function button of the target flight vehicle.
Optionally, after controlling the third game character and the first game character to ride together on the target flying vehicle, the method further comprises: detecting a multi-person interaction request triggered by the first game client on a target flight carrier; and responding to the multi-person interaction request, and controlling the first game role and the third game role to execute interactive operation matched with each other on the target flight carrier.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment provided by the present application, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute the flight control method of a game character as described in any one of the above embodiments.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of flight control of a game character as described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute 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 Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (12)

1. A method for controlling the flight of a game character, comprising:
detecting a team flight request triggered by a first game client in a virtual scene, wherein the first game client is used for controlling a first game role in the virtual scene;
forwarding the team flight request to a second game client, wherein the first game client and the second game client access a game server, and the second game client is used for controlling a second game role in the virtual scene;
detecting a team accepting instruction returned by a second game client based on the team flight request;
and controlling the second game role to fly along with the first game role in the virtual scene in response to the team accepting command.
2. The method of claim 1, wherein controlling the second game character to fly in the virtual scene following the first game character comprises:
positioning a three-dimensional coordinate position of the first game character in the virtual scene;
creating a team array by taking the three-dimensional coordinate position as a reference position, wherein the team array comprises a plurality of array points with fixed positions;
positioning a first array point of the first game character in the team array, and allocating a second array point to the second game character;
controlling the second game character to follow the first game character in the virtual scene based on a second array point in the team array.
3. The method of claim 1, wherein controlling the second game character to fly in the virtual scene following the first game character comprises:
positioning a three-dimensional coordinate position of the first game character in the virtual scene;
creating a team air wall by taking the three-dimensional coordinate position as a reference position, wherein the wall boundary of the team air wall is the farthest moving boundary of the second game character in a team flight state;
and controlling the second game character to fly along with the first game character within the range of the air wall of the team in the virtual scene.
4. The method of claim 3, wherein after controlling the second game character to fly in the virtual scene following the first game character within the range of the team air wall, the method further comprises:
detecting a movement instruction triggered by the second game character in the air wall of the team;
responding to the moving instruction, and judging whether the second game role is separated from the range of the air wall of the team or not;
and if the second game character departs from the range of the team air wall, sending a departure notification message to the first game client, wherein the departure notification message is used for indicating that the second game character stops flying in team with the first game character.
5. The method of claim 4, wherein determining whether the second game character is out of the team air wall comprises:
calculating a separation distance between the second game character and the first game character; if the spacing distance between the second game role and the first game role is larger than a preset distance, determining that the second game role is separated from the team air wall; and/or the presence of a gas in the gas,
monitoring whether collision operation occurs between the second game role and the team air wall; and if the collision operation occurs between the second game character and the team air wall, determining that the second game character is separated from the team air wall.
6. The method of claim 1, wherein forwarding the team flight request to a second game client comprises:
acquiring role attribute information of the first game role;
determining a game play to which the first game character belongs and a character type of the first game character in the game play based on the character attribute information;
and if the role type is the designated type, forwarding the team flight request to a second game client corresponding to a second game role in the game formation.
7. The method of claim 1, further comprising:
detecting a ride sharing request triggered by the first game client on a target flying vehicle, wherein the ride sharing request is used for requesting a third game role in the virtual scene to ride on the target flying vehicle of the first game role;
acquiring prop attribute information of the target flight carrier;
judging whether the target flight carrier is a multi-person flight carrier or not according to the property attribute information;
and if the target flying carrier is a multi-player flying carrier, forwarding the ride sharing request to a third game client corresponding to the third game role, and controlling the third game role and the first game role to ride on the target flying carrier together.
8. The method of claim 7, wherein after controlling the third game character and the first game character to ride on the target flying vehicle simultaneously, the method further comprises:
acquiring the number of load-limiting members of the target flight carrier;
judging whether the current number of the riding members of the target flight carrier is larger than the limited number of the riding members;
if the number of the current boarding members of the target flight vehicle is larger than the number of the load limiting members, reducing the maximum flight speed of the target flight vehicle, and/or reducing the maximum flight height of the target flight vehicle, and/or freezing a designated function button of the target flight vehicle.
9. The method of claim 7, wherein after controlling the third game character and the first game character to ride together on the target flying vehicle, the method further comprises:
detecting a multi-person interaction request triggered by the first game client on a target flight carrier;
and responding to the multi-person interaction request, and controlling the first game role and the third game role to execute interactive operation matched with each other on the target flight carrier.
10. A flight control apparatus for a game character, comprising:
the system comprises a first detection module, a first queue management module and a second queue management module, wherein the first detection module is used for detecting a queue flying request triggered by a first game client in a virtual scene, and the first game client is used for controlling a first game role in the virtual scene;
the forwarding module is used for forwarding the formation flying request to a second game client, wherein the first game client and the second game client are accessed to a game server, and the second game client is used for controlling a second game role in the virtual scene;
the second detection module is used for detecting a team formation receiving instruction returned by the second game client based on the team formation flight request;
and the first control module is used for responding to the team accepting instruction and controlling the second game role to fly along with the first game role in the virtual scene.
11. 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 9 when executed.
12. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 9.
CN202111643379.4A 2021-12-29 2021-12-29 Method and device for controlling flight of game character, storage medium, and electronic device Pending CN114225418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111643379.4A CN114225418A (en) 2021-12-29 2021-12-29 Method and device for controlling flight of game character, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111643379.4A CN114225418A (en) 2021-12-29 2021-12-29 Method and device for controlling flight of game character, storage medium, and electronic device

Publications (1)

Publication Number Publication Date
CN114225418A true CN114225418A (en) 2022-03-25

Family

ID=80744396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111643379.4A Pending CN114225418A (en) 2021-12-29 2021-12-29 Method and device for controlling flight of game character, storage medium, and electronic device

Country Status (1)

Country Link
CN (1) CN114225418A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115814404A (en) * 2022-09-14 2023-03-21 广州三七极耀网络科技有限公司 Method, device, equipment and medium for controlling movement of virtual object

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115814404A (en) * 2022-09-14 2023-03-21 广州三七极耀网络科技有限公司 Method, device, equipment and medium for controlling movement of virtual object
CN115814404B (en) * 2022-09-14 2023-08-11 广州三七极耀网络科技有限公司 Method, device, equipment and medium for controlling movement of virtual object

Similar Documents

Publication Publication Date Title
CN110559653B (en) Control method, device, terminal and storage medium of virtual aircraft
CN110585731B (en) Method, device, terminal and medium for throwing virtual article in virtual environment
CN111905370A (en) Method and device for controlling virtual character in game, electronic equipment and storage medium
CN111672116B (en) Method, device, terminal and storage medium for controlling virtual object release technology
CN109718555B (en) Game processing method and recording medium
US20230065576A1 (en) Battle settlement interface display method, apparatus, device, and storage medium
WO2023103617A1 (en) User interface display method and apparatus, device, medium, and program product
CN114225418A (en) Method and device for controlling flight of game character, storage medium, and electronic device
US20230321541A1 (en) Displaying visual field picture based on interaction zone on a virtual map
US20230347248A1 (en) Controlling method and apparatus of virtual actor, storage medium and electronic device
JP7431984B2 (en) Message transmission methods, apparatus, devices and storage media
WO2022083451A1 (en) Skill selection method and apparatus for virtual object, and device, medium and program product
US20230086441A1 (en) Method and apparatus for displaying picture in virtual scene, device, storage medium, and program product
WO2023138175A1 (en) Card placing method and apparatus, device, storage medium and program product
US20230031217A1 (en) Screen generation method and apparatus, computer device, storage medium and program product
WO2023103571A1 (en) Game management method and apparatus, and device and computer-readable storage medium
CN114887329A (en) Virtual object control method, device, equipment and storage medium
CN111265855B (en) Control method and device of virtual carrier, storage medium and electronic device
CN112473139A (en) Object form switching method and device, storage medium and electronic device
WO2023221689A1 (en) Virtual vehicle control method and apparatus, device, and medium
CN114288660A (en) Virtual character flight control method and device, storage medium and electronic device
CN113769407B (en) Control instruction generation method and device, storage medium and electronic device
CN113457141B (en) Resource processing method and device, storage medium and electronic equipment
WO2023221707A1 (en) Virtual vehicle control method and apparatus, and device and storage medium
WO2023160049A1 (en) Virtual object control method and device, terminal, storage medium, and program product

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