CN111111192B - Game character moving method and device - Google Patents

Game character moving method and device Download PDF

Info

Publication number
CN111111192B
CN111111192B CN201911376256.1A CN201911376256A CN111111192B CN 111111192 B CN111111192 B CN 111111192B CN 201911376256 A CN201911376256 A CN 201911376256A CN 111111192 B CN111111192 B CN 111111192B
Authority
CN
China
Prior art keywords
switching
moving
movement
game
coordinate set
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
CN201911376256.1A
Other languages
Chinese (zh)
Other versions
CN111111192A (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.)
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Digital Network Technology 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 Zhuhai Kingsoft Digital Network Technology Co Ltd filed Critical Zhuhai Kingsoft Digital Network Technology Co Ltd
Priority to CN201911376256.1A priority Critical patent/CN111111192B/en
Publication of CN111111192A publication Critical patent/CN111111192A/en
Application granted granted Critical
Publication of CN111111192B publication Critical patent/CN111111192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a game role moving method and device, wherein the game role moving method is applied to a client and comprises the following steps: receiving a switching movement instruction under the condition of playing a first movement animation of a game role; acquiring switching movement information according to the switching movement instruction, and transmitting the switching movement information to a server so that the server acquires a corresponding movement coordinate set according to the switching movement information; receiving a mobile coordinate set corresponding to the switching mobile information transmitted by the server; interrupting the first moving animation, and moving the game character according to the moving coordinate set to generate a second moving animation. The method realizes that the player can control the light-power movement of the game character, presents the effect of multi-section light-power flight on the display effect on the client, improves the game expressive force and the infectious force, and effectively attracts new players and retains old players.

Description

Game character moving method and device
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and apparatus for moving a game character, a computing device, and a computer readable storage medium.
Background
With the increasing development of internet technology, more and more people play games for daily recreation, so that games are also developed in a long term, the game interface is more and more exquisite, and the playability and the game expressive force are also better and better.
In the current 3D game of the swordsman, the light power system of the game has larger influence on the expressive force and playability of the game, and a good light power system can bring very excellent game experience to players, but in the prior art, the game characters are carried out according to a set line when the light power is applied and moved, so that the expression of the light power system is relatively rigid and single, the expressive force and the infectious force are insufficient, the increasing game experience requirements of players cannot be met, and the attraction of new players and the retention of old players are not facilitated.
Therefore, how to solve the above problems is a problem to be solved by game developers.
Disclosure of Invention
In view of the foregoing, embodiments of the present application provide a method and apparatus for moving a game character, a computing device, and a computer-readable storage medium, so as to solve the technical drawbacks in the prior art.
According to a first aspect of an embodiment of the present application, there is provided a method for moving a game character, applied to a client, including:
Receiving a switching movement instruction under the condition of playing a first movement animation of a game role;
acquiring switching movement information according to the switching movement instruction, and transmitting the switching movement information to a server so that the server acquires a corresponding movement coordinate set according to the switching movement information;
receiving a mobile coordinate set corresponding to the switching mobile information transmitted by the server;
interrupting the first moving animation, and moving the game character according to the moving coordinate set to generate a second moving animation.
Optionally, the method for moving the game character further includes:
and transmitting the position information of each frame of the game role in the second mobile animation to the server.
Optionally, before moving the game character according to the movement coordinate set to generate a second movement animation, the movement method of the game character further includes:
acquiring a switching action corresponding to the game role from a preset action library according to the switching movement instruction;
and playing the switching action.
Optionally, the step of obtaining the switching action corresponding to the game role from a preset action library according to the switching movement instruction includes:
Acquiring a character attribute value of the game character;
and acquiring the switching action corresponding to the game role from a preset action library according to the role attribute value and the switching movement instruction.
Optionally, the obtaining, according to the character attribute value and the switching movement instruction, a switching action corresponding to the game character from a preset action library includes:
and acquiring a switching action corresponding to the game role from a preset action library according to the switching movement instruction and at least one of the sex attribute value, the body type attribute value and the door style attribute value of the game role.
Optionally, the method for moving the game character further includes:
acquiring a corresponding falling action of the game role from a preset action library after the first moving animation is ended and under the condition that a switching moving instruction is not received;
and circularly playing the falling action until the game character lands.
Optionally, the method for moving the game character further includes:
the preset action library is stored in the client or the server.
According to a second aspect of embodiments of the present application, there is provided a method for moving a game character, applied to a server, including:
Receiving switching movement information transmitted by a client, wherein the switching movement information comprises a switching movement identifier, a movement curve number and a game role position;
acquiring a corresponding moving curve from a preset curve library according to the switching moving identifier and the moving curve number, and acquiring a corresponding relative coordinate set according to the moving curve, wherein the moving curve is formed by a relative coordinate connecting line in the relative coordinate set corresponding to the moving curve;
generating a moving coordinate set according to the game role position and the relative coordinate set;
transmitting the mobile coordinate set to the client.
Optionally, the method for moving the game character further includes:
receiving the position information of each frame of the game role in the second mobile animation, which is transmitted by the client;
and synchronizing the position information to other clients.
According to a third aspect of embodiments of the present application, there is provided a mobile device for a game character, applied to a client, including:
a first receiving module configured to receive a switch movement instruction in the case of playing a first movement animation of a game character;
the acquisition and transmission module is configured to acquire switching movement information according to the switching movement instruction and transmit the switching movement information to a server so that the server acquires a corresponding movement coordinate set according to the switching movement information;
The second receiving module is configured to receive a mobile coordinate set corresponding to the switching mobile information, which is transmitted by the server;
and a movement module configured to interrupt the first movement animation, move the game character according to the movement coordinate set to generate a second movement animation.
Optionally, the mobile device of the game character further includes:
and the transmission module is configured to transmit the position information of each frame of the game role in the second mobile animation to the server.
Optionally, the mobile device of the game character further includes:
the preset action obtaining module is configured to obtain switching actions corresponding to the game roles from a preset action library according to the switching movement instructions;
and the playing module is configured to play the switching action.
Optionally, the obtaining preset action module is further configured to obtain a character attribute value of the game character, and obtain a switching action corresponding to the game character from a preset action library according to the character attribute value and the switching movement instruction.
Optionally, the obtaining preset action module is further configured to obtain a switching action corresponding to the game role from a preset action library according to the switching movement instruction and at least one of a gender attribute value, a body type attribute value and a genre attribute value of the game role.
Optionally, the mobile device of the game character further includes:
the falling action obtaining module is configured to obtain the corresponding falling action of the game role from a preset action library after the first moving animation is ended and under the condition that the switching moving instruction is not received, and circularly play the falling action until the game role falls to the ground.
Optionally, the preset action library in the preset action acquisition module and the preset action acquisition and dropping module is stored in the client or the server.
According to a fourth aspect of embodiments of the present application, there is provided a mobile device for a game character, applied to a server, including:
the third receiving module is configured to receive switching movement information transmitted by the client, wherein the switching movement information comprises a switching movement identifier, a movement curve number and a game role position;
the coordinate acquisition module is configured to acquire a corresponding moving curve from a preset curve library according to the switching moving identifier and the moving curve number, and acquire a corresponding relative coordinate set according to the moving curve, wherein the moving curve is formed by relative coordinate connecting lines in the relative coordinate set corresponding to the moving curve;
A generation coordinates module configured to generate a set of mobile coordinates from the game character position and the set of relative coordinates;
and the transmission coordinate module is configured to transmit the mobile coordinate set to the client.
Optionally, the mobile device of the game character further includes:
a fourth receiving module configured to receive position information of each frame of the game character in the second moving animation transmitted by the client;
and the synchronization module is configured to synchronize the position information to other clients.
According to a fifth aspect of embodiments of the present application, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor executing the steps of a method of moving the game character.
According to a sixth aspect of embodiments of the present application, there is provided a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of a method of moving a character of a game.
In the embodiment of the application, the method for moving the game role is applied to the client, and a switching movement instruction is received under the condition of playing a first movement animation of the game role; acquiring switching movement information according to the switching movement instruction, and transmitting the switching movement information to a server so that the server acquires a corresponding movement coordinate set according to the switching movement information; receiving a mobile coordinate set corresponding to the switching mobile information transmitted by the server; the first moving animation is interrupted, the game characters are moved according to the moving coordinate set to generate a second moving animation, the light-power movement of the characters can be controlled by a player, the light-power flight track is switched at any time in the light-power flight process, the game characters can move according to the switched light-power flight track, the multi-section light-power flight effect is displayed on the display effect of the client, the game expressive force and the infectious force are improved, and a new player and an old player are effectively attracted.
And secondly, in the process of switching the light-power flight, a player can acquire preset switching actions according to attribute values such as the body type, the genre, the sex and the like of the game role, and the switching actions are combined with the flight process, so that the game expression effect is enriched, the game expressive force and the infection force are further improved, and a new player is effectively attracted and an old player is kept.
In the embodiment of the invention, the method for moving the game character is applied to the server, a preset moving curve is obtained in a preset curve library according to the switching moving information transmitted by the client, and a moving coordinate set of the game character on the moving curve is obtained according to the position of the game character, so that the moving track of the game character is richer by the preset curve library, the computing resource is saved when the moving coordinate set is obtained, the response time of the server is shortened, the game delay is reduced, and the game experience of a player is improved.
Drawings
FIG. 1 is a block diagram of a computing device provided by an embodiment of the present application;
fig. 2 is a flowchart of a method for moving a game character applied to a client according to an embodiment of the present application;
fig. 3 is a flowchart of a method for moving a game character applied to a server according to an embodiment of the present application;
FIG. 4 is an interactive schematic diagram of a method for moving a game character according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile device applied to a game character of a client according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a mobile device applied to a game character of a server according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is, however, susceptible of embodiment in many other ways than those herein described and similar generalizations can be made by those skilled in the art without departing from the spirit of the application and the application is therefore not limited to the specific embodiments disclosed below.
The terminology used in one or more embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of one or more embodiments of the application. As used in this application in one or more embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that, although the terms first, second, etc. may be used in one or more embodiments of the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, a first may also be referred to as a second, and similarly, a second may also be referred to as a first, without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
In the present application, a method and apparatus for moving a game character, a computing device, and a computer-readable storage medium are provided, and are described in detail in the following embodiments.
FIG. 1 illustrates a block diagram of a computing device 100, according to an embodiment of the present application. The components of the computing device 100 include, but are not limited to, a memory 110 and a processor 120. Processor 120 is coupled to memory 110 via bus 130 and database 150 is used to store data.
Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 140 may include one or more of any type of network interface, wired or wireless (e.g., a Network Interface Card (NIC)), such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present application, the above-described components of computing device 100, as well as other components not shown in FIG. 1, may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device shown in FIG. 1 is for exemplary purposes only and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 100 may be any type of stationary or mobile computing device including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smart phone), wearable computing device (e.g., smart watch, smart glasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.
Wherein the processor 120 may perform steps in the method of moving the game character shown in fig. 2. Fig. 2 shows a flow chart of a method of moving a game character applied to a client according to an embodiment of the present application, including steps 202 to 208.
Step 202: a switch movement instruction is received in a case where a first movement animation of a game character is played.
The first moving animation is a game animation generated by a player controlling a game character to apply light work in a game. The player sends out a light power switching instruction when controlling the game character to apply light power, and the client receives the light power switching instruction sent by the player.
In the embodiment provided by the application, the player controls the game character to play the light A in the game, plays the animation A corresponding to the light A, presses the key B of the keyboard in the process of playing the light A, sends out the instruction for switching the light B, and the client receives the switching movement instruction sent by the player.
Step 204: and acquiring switching movement information according to the switching movement instruction, and transmitting the switching movement information to a server so that the server acquires a corresponding movement coordinate set according to the switching movement information.
In practical application, the switching movement information comprises a switching movement identifier, a movement curve number and a game role position. The switching movement identifier is used for identifying that the game character is in a state of switching light work at the moment, the movement curve number is used for identifying the number of the light work to be applied by the game character, and the position of the game character is used for determining the current position coordinate of the game character.
The client acquires corresponding switching movement information according to the switching movement instruction, and transmits the switching movement information to the server, and the server acquires a corresponding movement coordinate set according to the switching movement information, wherein the movement coordinate set comprises a plurality of movement coordinates so as to control the game character to move according to the movement coordinates.
In the embodiment provided in the application, along with the above example, according to the switching movement instruction of switching the light power B sent by the player, the acquired switching movement information is the switching light power, the light power curve number is B, the current coordinate of the game character is (X 1 ,Y 1 ,Z 1 ). And sending the switching movement information to a server so that the server obtains a movement coordinate set of the game role after the light work of the game role is switched B according to the switching information.
Step 206: and receiving a mobile coordinate set corresponding to the switching mobile information transmitted by the server.
After the switching mobile information is sent to the server, waiting for the response of the server, and receiving a mobile coordinate set corresponding to the switching mobile information transmitted by the server.
In the embodiment provided in the present application, along the above example, a movement coordinate set (B 1 ,B 2 ……B n )。
Step 208: interrupting the first moving animation, and moving the game character according to the moving coordinate set to generate a second moving animation.
After the mobile coordinate set transmitted by the server is received, interrupting the light power animation being played, and moving the game character according to the received mobile coordinate set to generate a second mobile animation so as to enable the game character to play the light power corresponding to the switching movement instruction.
In the embodiment provided in the present application, along with the first moving animation generated by the A light power generated by interrupting the play of the game character by using the above example, the first moving animation is generated according to the moving coordinate set (B 1 ,B 2 ……B n ) The game character is moved such that the game character exhibits the light work B, and a second moving animation exhibiting the light work B is generated in the course of moving the game character according to the set of moving coordinates.
Optionally, before moving the game character according to the movement coordinate set to generate a second movement animation, the method further comprises: and acquiring the switching action corresponding to the game role from a preset action library according to the switching movement instruction, and playing the switching action.
Specifically, the switching action corresponding to the game role is obtained from a preset action library according to the switching movement instruction through the following steps S2101 to S2102.
S2101, acquiring a character attribute value of the game character.
In practical application, the gender attribute value, the body type attribute value and the genre attribute value of the game role are obtained.
S2102, acquiring a switching action corresponding to the game role from a preset action library according to the role attribute value and the switching movement instruction.
And acquiring a switching action corresponding to the game role from a preset action library according to the switching movement instruction and at least one of the sex attribute value, the body type attribute value and the door style attribute value of the game role.
In a specific embodiment provided by the application, the obtained attribute values of the game roles are an S-genre, a male role and a high-size body type, and the switching action corresponding to the game role is obtained as M from a preset database pre-stored in a client according to the three attribute values of the game role.
In another specific embodiment provided by the application, the obtained attribute values of the game roles are P genres, female roles and small body types, and the switching action corresponding to the game roles is obtained as N from a preset database stored in the server in advance according to the attribute values of the female roles and the small body types of the game roles.
In still another specific embodiment provided in the present application, the obtained attribute values of the game roles are Q genres, female roles and high-general body types, and the switching action corresponding to the game role is obtained as T from a preset database stored in the server in advance according to the attribute values of the female roles of the game roles.
Optionally, the method for moving the game character further includes: and after the first moving animation is finished and under the condition that a switching moving instruction is not received, acquiring a corresponding falling action of the game role from a preset action library, and circularly playing the falling action until the game role lands.
In another specific embodiment provided by the application, the game character performs the light work in the air, after receiving the switching movement instruction, the game character can play the light work corresponding to the switching movement instruction, when the switching instruction is not received after the playing of the light work animation played by the game character is finished, the falling action corresponding to the game character is obtained from the preset action library, the falling action is played circularly until the game character falls to the ground, and the playing of the light work is ended.
The preset action library may be stored in the client or the server in advance, and in this application, the storage location of the preset action library is not limited.
The method for moving the game role is applied to the client and is used for receiving a switching movement instruction under the condition of playing a first movement animation of the game role; acquiring switching movement information according to the switching movement instruction, and transmitting the switching movement information to a server so that the server acquires a corresponding movement coordinate set according to the switching movement information; receiving a mobile coordinate set corresponding to the switching mobile information transmitted by the server; interrupting the first moving animation, moving the game character according to the moving coordinate set to generate a second moving animation, realizing that the light power movement of the character can be controlled by a player, switching the light power flight track at any time in the light power flight process, enabling the game character to move according to the switched light power flight track, presenting the effect of multi-section light power flight on the display effect of the client, and acquiring the preset switching action according to the attribute values of the body type, the door style, the sex and the like of the game character by the player in the light power flight switching process, wherein the switching action is combined with the flight process, so that the game expression effect is enriched, the game expressive force and the infective force are improved, and new players and old players are effectively attracted.
Fig. 3 shows a method for moving a game character according to an embodiment of the present application, where the method for moving a game character is applied to a server, and includes steps 302 to 308.
Step 302: and receiving switching movement information transmitted by the client, wherein the switching movement information comprises a switching movement identifier, a movement curve number and a game role position.
In practical application, the switching movement information comprises a switching movement identifier, a movement curve number and a game role position. The switching movement identifier is used for identifying that the game character is in a state of switching light work at the moment, the movement curve number is used for identifying the number of the light work to be applied by the game character, and the position of the game character is used for determining the current position coordinate of the game character.
The server receives the switching movement identification, the movement curve number and the game role position transmitted by the client.
In an embodiment provided in the present application, a server receives handover movement information transmitted by a client, including: the number of the curve for switching the light power and the light power is B, and the current coordinate of the game role is (X 1 ,Y 1 ,Z 1 )。
Step 304: and acquiring a corresponding moving curve from a preset curve library according to the switching moving identifier and the moving curve number, and acquiring a corresponding relative coordinate set according to the moving curve, wherein the moving curve is formed by a relative coordinate connecting line in the relative coordinate set corresponding to the moving curve.
The server determines that light power switching is required according to the switching light power identification in the switching movement information, corresponding movement curves are searched in a preset curve library according to the movement curve numbers, a plurality of movement curves are stored in the preset curve library, when a player gives the designated movement curve numbers, the movement curves can be directly obtained, the operation amount of the server is reduced, the response time of the server is further reduced, and the game delay is reduced.
The moving curve is composed of a plurality of relative coordinate connecting lines, so that a relative coordinate set corresponding to the moving curve can be obtained according to the moving curve.
In the embodiment provided by the application, according to the switching light power identifier and the light power curve number B, searching a corresponding light power curve B in a preset curve library and according to a plurality of relative coordinates B in the light power curve B 1 ,b 2 ……b n Acquiring a corresponding set of relative coordinates (b 1 ,b 2 ……b n )。
Step 306: and generating a moving coordinate set according to the game role position and the relative coordinate set.
And acquiring a movement coordinate set of the game character in the light power after the deployment and the switching according to the relative coordinate set corresponding to the game character position and the movement curve number in the switching movement information.
In the embodiments provided herein, the current coordinates of the game character are (X 1 ,Y 1 ,Z 1 ) A set of relative coordinates (b 1 ,b 2 ……b n ) Thus, a set of movement coordinates (B) of the game character after each movement can be obtained 1 ,B 2 ……B n )。
Step 308: transmitting the mobile coordinate set to the client.
The method for moving the game role is applied to a server, a preset moving curve is obtained in a preset curve library according to switching moving information transmitted by a client, a moving coordinate set of the game role on the moving curve is obtained according to the position of the game role, the moving track of the game role is richer by the preset curve library, computing resources are saved when the moving coordinate set is obtained, response time of the server is shortened, game delay is reduced, and game experience of a player is improved.
In another embodiment provided in the present application, referring to fig. 4, fig. 4 shows an interaction schematic diagram of a method for moving a game character provided in an embodiment of the present application, including steps 402 to 422.
Step 402: and when the player controls the game character to apply the light work A, receiving a switching movement instruction of switching the light work B sent by the player.
Step 404: and the client acquires the switching movement information according to the switching movement instruction.
Specifically, the client obtains the switching movement information according to the switching movement instruction, wherein the switching light work is the switching light work, the light work curve number is B, and the current coordinate of the game role is (X 1 ,Y 1 ,Z 1 )。
Step 406: and the client side sends the switching mobile information to the server.
Step 408: and the server acquires a corresponding movement curve from a preset curve library according to the switching movement identification and the movement curve number in the switching movement information sent by the client.
Specifically, the server acquires a light power curve B from a preset curve library according to the switching light power identifier and the light power curve number B.
Step 410: and the server acquires a corresponding relative coordinate set according to the movement curve, wherein the movement curve is formed by a relative coordinate connecting line in the relative coordinate set corresponding to the movement curve.
Specifically, the server obtains a set of relative coordinates in the light power curve B.
Step 412: the server switches the game role coordinates in the mobile information and the game role coordinates acquired in step 410 according to the information sent by the clientGenerating a moving coordinate set (b) from the relative coordinate set 1 ,b 2 ……b n )。
Specifically, the server performs a function of switching the game character coordinates (X 1 ,Y 1 ,Z 1 ) And the set of relative coordinates of the light power curve B (B 1 ,b 2 ……b n ) Generating a set of mobile coordinates (B 1 ,B 2 ……B n )。
Step 414: the server transmits the set of mobile coordinates to the client.
Step 416: the client interrupts the A light power and moves the game character according to the set of movement coordinates to generate a second movement animation.
Specifically, the client interrupts the application of the A light power and generates a movement coordinate set (B 1 ,B 2 ……B n ) The game character is moved to generate a moving animation in which the game character exhibits B light power generation.
Step 418: the client acquires the position information of each frame of the game character in the second moving animation.
Specifically, the client acquires actual coordinate information of each frame of the moving animation generated by the game character in the light-power-applied B.
Step 420: the client transmits the position information of each frame of the game character in the second moving animation to the server.
Specifically, the client sends the actual coordinate information of each frame of the moving animation generated by the playing light work B to the server.
Step 422: the server synchronizes the position information of each frame of the game character in the second moving animation to other servers.
Specifically, the server synchronizes the actual coordinate information of the game character to clients of other players in the same game scene as the game character.
In online games, movement information of game characters is synchronized to other clients in real time. The game characters fall in the visual field of the game characters controlled in other clients, and the position information of the synchronous game characters is an essential link in the network game, so that the consistency and playability of the game are ensured.
According to the game role moving method, the moving instruction is acquired at the client, the moving instruction is sent to the server, the moving coordinate set corresponding to the moving instruction is generated at the server, the moving coordinate set is sent to the client, the client renders and generates the light animation of the game role moving according to the moving coordinate set, so that the game role can switch light according to the instruction and move along the appointed light flight track, the display effect of the client shows the effect of multi-section light flight, the game expressive force and the infective force are improved, the moving track of the game role is richer through the preset curve library at the server, the computing resource of the server is saved when the moving coordinate set is acquired, the corresponding time of the server is shortened, the game delay is reduced, the game experience of a player is improved through the mutual cooperation of the client and the server, the game expressive effect of the game is enriched, and a new player and an old player can be effectively attracted.
Corresponding to the above method embodiments, the present application further provides a mobile device embodiment of the game role, and fig. 5 shows a schematic structural diagram of a mobile device of the game role in one embodiment of the present application, where the mobile device of the game role is applied to a client. As shown in fig. 5, the apparatus includes:
the first receiving module 502 is configured to receive a switch movement instruction in a case where a first movement animation of a game character is played.
And the acquisition and transmission module 504 is configured to acquire switching movement information according to the switching movement instruction and transmit the switching movement information to a server, so that the server obtains a corresponding movement coordinate set according to the switching movement information.
A second receiving module 506 is configured to receive the set of mobile coordinates corresponding to the handover mobile information transmitted by the server.
A movement module 508 configured to interrupt the first movement animation, move the game character according to the set of movement coordinates to generate a second movement animation.
Optionally, the mobile device of the game character further includes:
and the transmission module is configured to transmit the position information of each frame of the game role in the second mobile animation to the server.
Optionally, the mobile device of the game character further includes:
the preset action obtaining module is configured to obtain the switching action corresponding to the game role from a preset action library according to the switching movement instruction.
And the playing module is configured to play the switching action.
Optionally, the obtaining preset action module is further configured to obtain a character attribute value of the game character, and obtain a switching action corresponding to the game character from a preset action library according to the character attribute value and the switching movement instruction.
Optionally, the obtaining preset action module is further configured to obtain a switching action corresponding to the game role from a preset action library according to the switching movement instruction and at least one of a gender attribute value, a body type attribute value and a genre attribute value of the game role.
Optionally, the mobile device of the game character further includes:
the falling action obtaining module is configured to obtain the corresponding falling action of the game role from a preset action library after the first moving animation is ended and under the condition that the switching moving instruction is not received, and circularly play the falling action until the game role falls to the ground.
Optionally, the preset action library in the preset action acquisition module and the preset action acquisition and dropping module is stored in the client or the server.
The mobile device of the game role is applied to the client and receives a switching movement instruction under the condition of playing a first movement animation of the game role; acquiring switching movement information according to the switching movement instruction, and transmitting the switching movement information to a server so that the server acquires a corresponding movement coordinate set according to the switching movement information; receiving a mobile coordinate set corresponding to the switching mobile information transmitted by the server; interrupting the first moving animation, moving the game character according to the moving coordinate set to generate a second moving animation, realizing that the light power movement of the character can be controlled by a player, switching the light power flight track at any time in the light power flight process, enabling the game character to move according to the switched light power flight track, presenting the effect of multi-section light power flight on the display effect of the client, and acquiring the preset switching action according to the attribute values of the body type, the door style, the sex and the like of the game character by the player in the light power flight switching process, wherein the switching action is combined with the flight process, so that the game expression effect is enriched, the game expressive force and the infective force are improved, and new players and old players are effectively attracted.
Corresponding to the above method embodiments, the present application further provides an embodiment of a mobile device for a game character, and fig. 6 shows a schematic structural diagram of the mobile device for a game character according to one embodiment of the present application, where the mobile device for a game character is applied to a server. As shown in fig. 6, the apparatus includes:
and a third receiving module 602 configured to receive handover movement information transmitted by the client, where the handover movement information includes a handover movement identifier, a movement curve number, and a game character position.
The coordinate obtaining module 604 is configured to obtain a corresponding movement curve in a preset curve library according to the switching movement identifier and the movement curve number, and obtain a corresponding relative coordinate set according to the movement curve, where the movement curve is formed by a relative coordinate connecting line in the relative coordinate set corresponding to the movement curve.
The generate coordinates module 606 is configured to generate a set of mobile coordinates from the game character position and the set of relative coordinates.
A transmission coordinates module 608 is configured to transmit the set of mobile coordinates to the client.
Optionally, the mobile device of the game character further includes:
And the fourth receiving module is configured to receive the position information of each frame of the game role in the second moving animation, which is transmitted by the client.
And the synchronization module is configured to synchronize the position information to other clients.
The game character moving device is applied to a server, a preset moving curve is obtained in a preset curve library according to switching moving information transmitted by a client, a moving coordinate set of a game character on the moving curve is obtained according to the position of the game character, the moving track of the game character is richer through the preset curve library, computing resources are saved when the moving coordinate set is obtained, response time of the server is shortened, game delay is reduced, and game experience of a player is improved.
An embodiment of the present application further provides a computing device including a memory, a processor, and computer instructions stored on the memory and executable on the processor, where the processor executes the instructions to implement the steps of the method for moving a game character.
An embodiment of the present application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the steps of a method of moving a game character as described above.
The above is an exemplary version of a computer-readable storage medium of the present embodiment. It should be noted that, the technical solution of the storage medium and the technical solution of the above-mentioned moving method of the game character belong to the same conception, and details of the technical solution of the storage medium which are not described in detail can be referred to the description of the technical solution of the above-mentioned moving method of the game character.
The foregoing describes specific embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The computer instructions include computer program code that may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all necessary for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The above-disclosed preferred embodiments of the present application are provided only as an aid to the elucidation of the present application. Alternative embodiments are not intended to be exhaustive or to limit the invention to the precise form disclosed. Obviously, many modifications and variations are possible in light of the teaching of this application. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best understand and utilize the invention. This application is to be limited only by the claims and the full scope and equivalents thereof.

Claims (13)

1. A method for moving a game character, applied to a client, comprising:
receiving a switching movement instruction under the condition of playing a first movement animation of a game role;
acquiring switching movement information according to the switching movement instruction, and transmitting the switching movement information to a server so that the server acquires a corresponding movement coordinate set according to the switching movement information, wherein the movement coordinate set is a relative movement coordinate set acquired in a preset curve library according to the switching movement information, the switching movement information comprises a switching movement identifier, a movement curve number and a game role position, the switching movement identifier is used for identifying that a game role is in a state of switching light work at the moment, and the game role position is used for determining the current position coordinate of the game role;
receiving a mobile coordinate set corresponding to the switching mobile information transmitted by the server;
interrupting the first moving animation, and moving the game character according to the moving coordinate set to generate a second moving animation.
2. The method for moving a game character according to claim 1, further comprising:
And transmitting the position information of each frame of the game role in the second mobile animation to the server.
3. The method of moving a game character according to claim 1, further comprising, before moving the game character according to the set of movement coordinates to generate a second movement animation:
acquiring a switching action corresponding to the game role from a preset action library according to the switching movement instruction;
and playing the switching action.
4. The method for moving a game character according to claim 3, wherein obtaining a switching action corresponding to the game character from a preset action library according to the switching movement instruction comprises:
acquiring a character attribute value of the game character;
and acquiring the switching action corresponding to the game role from a preset action library according to the role attribute value and the switching movement instruction.
5. The method for moving a game character according to claim 4, wherein acquiring a switching action corresponding to the game character from a preset action library according to the character attribute value and the switching movement instruction comprises:
and acquiring a switching action corresponding to the game role from a preset action library according to the switching movement instruction and at least one of the sex attribute value, the body type attribute value and the door style attribute value of the game role.
6. The method for moving a game character according to claim 1, further comprising:
acquiring a corresponding falling action of the game role from a preset action library after the first moving animation is ended and under the condition that a switching moving instruction is not received;
and circularly playing the falling action until the game character lands.
7. A method of moving a game character according to any one of claims 3 to 6, further comprising:
the preset action library is stored in the client or the server.
8. A method for moving a game character, applied to a server, comprising:
receiving switching movement information transmitted by a client, wherein the switching movement information comprises a switching movement identifier, a movement curve number and a game role position, the switching movement identifier is used for identifying that a game role is in a state of switching light power at the moment, and the game role position is used for determining the current position coordinate of the game role;
acquiring a corresponding moving curve from a preset curve library according to the switching moving identifier and the moving curve number, and acquiring a corresponding relative coordinate set according to the moving curve, wherein the moving curve is formed by a relative coordinate connecting line in the relative coordinate set corresponding to the moving curve;
Generating a moving coordinate set according to the game role position and the relative coordinate set;
transmitting the mobile coordinate set to the client.
9. The method for moving a game character according to claim 8, further comprising:
receiving the position information of each frame of the game role in the second mobile animation, which is transmitted by the client;
and synchronizing the position information to other clients.
10. A mobile device for a game character, for application to a client, comprising:
a first receiving module configured to receive a switch movement instruction in the case of playing a first movement animation of a game character;
the acquisition and transmission module is configured to acquire switching movement information according to the switching movement instruction, and transmit the switching movement information to a server so that the server acquires a corresponding movement coordinate set according to the switching movement information, wherein the movement coordinate set is a relative movement coordinate set acquired in a preset curve library according to the switching movement information, the switching movement information comprises a switching movement identifier, a movement curve number and a game role position, the switching movement identifier is used for identifying that a game role is in a state of switching light power at the moment, and the game role position is used for determining the current position coordinate of the game role;
The second receiving module is configured to receive a mobile coordinate set corresponding to the switching mobile information, which is transmitted by the server;
and a movement module configured to interrupt the first movement animation, move the game character according to the movement coordinate set to generate a second movement animation.
11. A mobile device for a game character, applied to a server, comprising:
the third receiving module is configured to receive switching movement information transmitted by the client, wherein the switching movement information comprises a switching movement identifier, a movement curve number and a game role position;
the coordinate acquisition module is configured to acquire a corresponding moving curve from a preset curve library according to the switching moving identifier and the moving curve number, and acquire a corresponding relative coordinate set according to the moving curve, wherein the moving curve is formed by relative coordinate connecting lines in the relative coordinate set corresponding to the moving curve, the switching moving identifier is used for identifying that a game role is in a state of switching light work at the moment, and the game role position is used for determining the current position coordinate of the game role;
the generation coordinate module is configured to generate a movement coordinate set according to the game role position and the relative coordinate set, wherein the movement coordinate set is a relative movement coordinate set obtained from a preset curve library according to the switching movement information;
And the transmission coordinate module is configured to transmit the mobile coordinate set to the client.
12. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor, when executing the instructions, implements the steps of the method of any of claims 1-7 or 8-9.
13. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the method of any one of claims 1-7 or 8-9.
CN201911376256.1A 2019-12-27 2019-12-27 Game character moving method and device Active CN111111192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911376256.1A CN111111192B (en) 2019-12-27 2019-12-27 Game character moving method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911376256.1A CN111111192B (en) 2019-12-27 2019-12-27 Game character moving method and device

Publications (2)

Publication Number Publication Date
CN111111192A CN111111192A (en) 2020-05-08
CN111111192B true CN111111192B (en) 2024-03-26

Family

ID=70503892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911376256.1A Active CN111111192B (en) 2019-12-27 2019-12-27 Game character moving method and device

Country Status (1)

Country Link
CN (1) CN111111192B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112999662A (en) * 2021-02-26 2021-06-22 上海硬通网络科技有限公司 Game role switching method and device and electronic equipment
CN113769406B (en) * 2021-09-18 2024-07-02 北京冰封互娱科技有限公司 Virtual character control method and device, storage medium and electronic device
CN117714767A (en) * 2022-12-08 2024-03-15 北京冰封互娱科技有限公司 Animation playing method and device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0990458A2 (en) * 1998-09-28 2000-04-05 Konami Co., Ltd. Video game machine, method for switching viewpoint on gamescreen of video game, and computer-readable recording medium containing game-screen-viewpoint switching program
JP2001070648A (en) * 1999-09-03 2001-03-21 Namco Ltd Game device
CN1941788A (en) * 2005-09-26 2007-04-04 腾讯科技(深圳)有限公司 Method for shifting roles in netowrk games
JP2009066137A (en) * 2007-09-12 2009-04-02 Keizo Watanabe Game device, method and program
CN104225917A (en) * 2013-06-06 2014-12-24 苏州蜗牛数字科技股份有限公司 3D swordsman fighting method based on online game
CN106651987A (en) * 2016-10-10 2017-05-10 腾讯科技(深圳)有限公司 Path planning method and device
CN107198883A (en) * 2017-05-26 2017-09-26 网易(杭州)网络有限公司 Method for searching and device for game object in virtual game
CN107837530A (en) * 2017-11-06 2018-03-27 网易(杭州)网络有限公司 Game synchronization method, apparatus and equipment
CN108159692A (en) * 2017-12-01 2018-06-15 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium
CN108434736A (en) * 2018-03-23 2018-08-24 腾讯科技(深圳)有限公司 Equipment display methods, device, equipment and storage medium in virtual environment battle
CN109260713A (en) * 2018-08-27 2019-01-25 网易(杭州)网络有限公司 Virtual objects remote assistance operating method and device, storage medium, electronic equipment
CN109364475A (en) * 2017-12-15 2019-02-22 鲸彩在线科技(大连)有限公司 Virtual role control method, device, terminal, system and medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0990458A2 (en) * 1998-09-28 2000-04-05 Konami Co., Ltd. Video game machine, method for switching viewpoint on gamescreen of video game, and computer-readable recording medium containing game-screen-viewpoint switching program
JP2001070648A (en) * 1999-09-03 2001-03-21 Namco Ltd Game device
CN1941788A (en) * 2005-09-26 2007-04-04 腾讯科技(深圳)有限公司 Method for shifting roles in netowrk games
JP2009066137A (en) * 2007-09-12 2009-04-02 Keizo Watanabe Game device, method and program
CN104225917A (en) * 2013-06-06 2014-12-24 苏州蜗牛数字科技股份有限公司 3D swordsman fighting method based on online game
CN106651987A (en) * 2016-10-10 2017-05-10 腾讯科技(深圳)有限公司 Path planning method and device
CN107198883A (en) * 2017-05-26 2017-09-26 网易(杭州)网络有限公司 Method for searching and device for game object in virtual game
CN107837530A (en) * 2017-11-06 2018-03-27 网易(杭州)网络有限公司 Game synchronization method, apparatus and equipment
CN108159692A (en) * 2017-12-01 2018-06-15 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium
CN109364475A (en) * 2017-12-15 2019-02-22 鲸彩在线科技(大连)有限公司 Virtual role control method, device, terminal, system and medium
CN108434736A (en) * 2018-03-23 2018-08-24 腾讯科技(深圳)有限公司 Equipment display methods, device, equipment and storage medium in virtual environment battle
CN109260713A (en) * 2018-08-27 2019-01-25 网易(杭州)网络有限公司 Virtual objects remote assistance operating method and device, storage medium, electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
游戏杆在机器人虚拟示教系统中的应用编程;张爱红, 张秋菊;江南大学学报(自然科学版);20031030(05);全文 *

Also Published As

Publication number Publication date
CN111111192A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN111111192B (en) Game character moving method and device
CN110298907B (en) Virtual character action control method and device, computing equipment and storage medium
US10097492B2 (en) Storage medium, communication terminal, and display method for enabling users to exchange messages
CN111054073B (en) Double-game role moving method and device
CN109885367B (en) Interactive chat implementation method, device, terminal and storage medium
US20210146255A1 (en) Emoji-based communications derived from facial features during game play
JP2015524677A (en) System and method for interactive gameplay
US20160231878A1 (en) Communication system, communication terminal, storage medium, and display method
CN112619130B (en) Multi-scene playback method and device for game
CN112437338B (en) Virtual resource transfer method, device, electronic equipment and storage medium
CN110166788A (en) Synchronizing information playback method, device and storage medium
US20180078851A1 (en) Intelligent hardware interaction method and system
CN105847874A (en) Live broadcasting device and live broadcasting terminal
CN112206515B (en) Game object state switching method, device, equipment and storage medium
CN111790144B (en) Game method and device based on live broadcast interface and game live broadcast interaction system
CN110298925B (en) Augmented reality image processing method, device, computing equipment and storage medium
CN111643903B (en) Control method and device of cloud game, electronic equipment and storage medium
CN112604287B (en) Virtual role state control method and device
CN112346594A (en) Interaction method and device based on augmented reality
CN110580257A (en) Data sharing method, server and medium
CN114159789A (en) Game interaction method and device, computer equipment and storage medium
CN111773669B (en) Method and device for generating virtual object in virtual environment
CN111773661A (en) System, method and device for team formation game based on live broadcast interface
CN111135578B (en) Game character moving method and device
CN115562480A (en) Method and device for augmented reality

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
CB02 Change of applicant information

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Address before: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant