CN111111192A - Game role moving method and device - Google Patents

Game role moving method and device Download PDF

Info

Publication number
CN111111192A
CN111111192A CN201911376256.1A CN201911376256A CN111111192A CN 111111192 A CN111111192 A CN 111111192A CN 201911376256 A CN201911376256 A CN 201911376256A CN 111111192 A CN111111192 A CN 111111192A
Authority
CN
China
Prior art keywords
switching
moving
movement
game
mobile
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.)
Granted
Application number
CN201911376256.1A
Other languages
Chinese (zh)
Other versions
CN111111192B (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 Online Game Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Online Game 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 Online Game Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game 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

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/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 a game role moving 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 which is transmitted by the server and corresponds to the switching mobile information; and interrupting the first moving animation, and moving the game role according to the moving coordinate set to generate a second moving animation. The player can control the light power movement of the game role, the effect of multi-section light power flight is presented on the display effect on the client, the expressive force and the infectivity of the game are improved, and a new player is effectively attracted and an old player is effectively retained.

Description

Game role moving method and device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for moving a game character, a computing device, and a computer-readable storage medium.
Background
With the increasing development of the internet technology, more and more people play games to enjoy daily recreation, so that the games are developed greatly, the game interfaces are more and more exquisite, and the playability and the game expressive force are better and better.
In the current swordsman 3D game, a light power system of the game has great influence on the expressive force and playability of the game, a good light power system can bring excellent game experience to players, but in the prior art, the game role is carried out according to a set line when the light power system is exerted to move, so that the expression of the light power system is dull and single, the expressive force and the infectivity are insufficient, the ever-increasing game experience requirements of the players cannot be met, and the game is not beneficial to attracting new players and keeping old players.
Therefore, how to solve the above problems becomes a problem to be solved urgently by game developers.
Disclosure of Invention
In view of this, embodiments of the present application provide a method and an apparatus for moving a game character, a computing device, and a computer-readable storage medium, so as to solve technical defects in the prior art.
According to a first aspect of the embodiments 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 which is transmitted by the server and corresponds to the switching mobile information;
and interrupting the first moving animation, and moving the game role according to the moving coordinate set to generate a second moving animation.
Optionally, the method for moving the game character further includes:
transmitting the position information of the game character in each frame of the second moving animation to the server.
Optionally, before moving the game character according to the movement coordinate set to generate the second movement animation, the method for moving 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, obtaining a switching action corresponding to the game character from a preset action library according to the switching movement instruction includes:
acquiring a role attribute value of the game role;
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, obtaining a switching action corresponding to the game character from a preset action library according to the character attribute value and the switching movement instruction, including:
and acquiring the switching action corresponding to the game role from a preset action library according to the switching movement instruction and at least one of the gender attribute value, the body type attribute value and the gate attribute value of the game role.
Optionally, the method for moving the game character further includes:
acquiring a corresponding dropping action of the game role from a preset action library under the condition that the first moving animation is finished and a switching moving instruction is not received;
and circularly playing the falling action until the game role falls to the ground.
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 the embodiments of the present application, there is provided a method for moving a game character, applied to a server, including:
receiving switching mobile information transmitted by a client, wherein the switching mobile information comprises a switching mobile identifier, a mobile curve number and a game role position;
acquiring a corresponding moving curve in a preset curve library according to the switching moving identification and the moving curve number, and acquiring a corresponding relative coordinate set according to the moving curve, wherein the moving curve is formed by connecting relative coordinates in the relative coordinate set corresponding to the moving curve;
generating a mobile coordinate set according to the game role position and the relative coordinate set;
transmitting the set of mobile coordinates 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 a second mobile animation transmitted by the client;
and synchronizing the position information to other clients.
According to a third aspect of the embodiments of the present application, there is provided a mobile device of a game character, applied to a client, including:
the first receiving module is configured to receive a switching movement instruction under the condition that a first movement animation of the game role is played;
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;
a second receiving module configured to receive the mobile coordinate set corresponding to the handover mobile information transmitted by the server;
a movement module configured to interrupt the first movement animation and 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:
a transmission module configured to transmit the position information of each frame of the game character in the second moving animation to the server.
Optionally, the mobile device of the game character further includes:
the obtaining preset action module is configured to obtain a switching action corresponding to the game role from a preset action library according to the switching movement instruction;
a play module configured to play the switching action.
Optionally, the obtaining preset action module is further configured to obtain a role attribute value of the game role, and obtain a 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 preset action module is further configured to obtain a switching action corresponding to the game character from a preset action library according to the switching movement instruction and at least one of the gender attribute value, the body type attribute value, and the gate attribute value of the game character.
Optionally, the mobile device of the game character further includes:
and the falling action obtaining module is configured to obtain a corresponding falling action of the game role from a preset action library under the condition that the first moving animation is finished and a 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 obtaining module and the preset action obtaining module is stored in the client or the server.
According to a fourth aspect of the embodiments of the present application, there is provided a mobile device of a game character, applied to a server, including:
the third receiving module is configured to receive 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 coordinate acquisition module is configured to acquire a corresponding movement curve in a preset curve library according to the switching movement identifier and the movement curve number, and acquire a corresponding relative coordinate set according to the movement curve, wherein the movement curve is formed by relative coordinate connecting lines in the relative coordinate set corresponding to the movement curve;
a generating coordinate module configured to generate a set of mobile coordinates from the game character position and the set of relative coordinates;
a transmit coordinate module configured to transmit the set of mobile coordinates to the client.
Optionally, the mobile device of the game character further includes:
a fourth receiving module, configured to receive the position information of each frame of the game character in the second moving animation transmitted by the client;
a synchronization module configured to synchronize the location information to other clients.
According to a fifth aspect of embodiments herein, 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 implementing the steps of the method of moving a game character when executing the instructions.
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 the method for moving a game character.
In the embodiment of the application, the game role moving method is applied to a client, and receives a moving switching instruction under the condition of playing a first moving 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 which is transmitted by the server and corresponds to the switching mobile information; the first moving animation is interrupted, the game role is moved according to the moving coordinate set to generate a second moving animation, the method realizes that the light-work movement of the role can be controlled by a player, and the light-work flight track is switched at any time in the light-work flight process, so that the game role can move according to the switched light-work flight track, the multi-section light-work flight effect is presented on the display effect of the client, the game expressive force and the infective power are improved, and a new player is effectively attracted and an old player is effectively retained.
Secondly, during the process of switching the light and powerful flight, the player can obtain preset switching actions according to attribute values of the body type, the house type, the gender and the like of the game role, and the switching actions and the flight process are combined, so that the game expression effect is enriched, the game expression and the infection are further improved, and a new player is effectively attracted and an old player is left.
In the embodiment of the application, the game role moving method is applied to a server, the server obtains a preset moving curve in a preset curve library according to switching moving information transmitted by a client, and obtains a moving coordinate set of a game role on the moving curve according to the position of the game role, the preset curve library enables the moving track of the game role to be richer, computing resources are 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 flow chart of a method for moving a game character applied to a client according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a method for moving a game character applied to a server according to an embodiment of the present disclosure;
FIG. 4 is an interaction diagram of a method for moving a game character according to an embodiment of the present disclosure;
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 of a game character applied to 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 capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application 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 and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, 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 "when … …" or "in response to a determination", depending on the context.
In the present application, a game character moving method and apparatus, a computing device, and a computer-readable storage medium are provided, which are described in detail in the following embodiments one by one.
FIG. 1 shows 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, memory 110 and processor 120. The processor 120 is coupled to the memory 110 via a bus 130 and a 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. Access device 140 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, 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-mentioned components of the computing device 100 and other components not shown in fig. 1 may also be connected to each other, for example, by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting as to 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.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, 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 can execute the steps in the moving method of the game character shown in fig. 2. Fig. 2 is a flowchart illustrating a moving method of a game character applied to a client according to an embodiment of the present application, including steps 202 to 208.
Step 202: in the case of playing a first movement animation of a game character, a switch movement instruction is received.
The first movement animation is a game animation generated by the player controlling the game character to perform light work in the game. The player sends out a light power switching instruction when controlling the game role to perform light power, and the client receives the light power switching instruction sent by the player.
In the embodiment provided by the application, a player controls a game character to perform a light power A in a game, an animation A corresponding to the light power A is played, the player presses a key B of a keyboard in the process of performing the light power A to send an instruction for switching the light power B, and a client receives a 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 includes a switching movement identifier, a movement curve number and a game character position. The switching mobile identification is used for identifying that the game role is in a switching light power state at the moment, the mobile curve number is used for identifying the number of the light power to be exerted by the game role, and the position of the game role is used for determining the position coordinate of the game role at present.
The client side obtains corresponding switching movement information according to the switching movement instruction and transmits the switching movement information to the server, and the server obtains 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 role to move according to the movement coordinates.
In the embodiment provided by the present application, following the above example, according to the switching movement instruction for switching the light power of B issued by the player, the acquired switching movement information is the switching light power, the light power curve number is B, and the current coordinate of the game character is (X)1,Y1,Z1). And sending the switching movement information to a server so that the server obtains a movement coordinate set after the game role switches the game role B light power according to the switching information.
Step 206: and receiving a mobile coordinate set which is transmitted by the server and corresponds to the switching mobile information.
And after the switching mobile information is sent to the server, the server waits for the response of the server and receives a mobile coordinate set which is transmitted by the server and corresponds to the switching mobile information.
In the embodiment provided by the application, following the above example, the mobile coordinate set (B) corresponding to the handover movement instruction for switching the B light power transmitted by the server is received1,B2……Bn)。
Step 208: and interrupting the first moving animation, and moving the game role according to the moving coordinate set to generate a second moving animation.
And after receiving the moving coordinate set transmitted by the server, interrupting the light power animation which is being exerted, and moving the game role according to the received moving coordinate set to generate a second moving animation so that the game role exerts the light power corresponding to the switching moving instruction.
In the embodiment provided by the application, the first movement animation generated by the light power A and executed by the game character is interrupted according to the movement coordinate set (B) sent by the server1,B2……Bn) And moving the game character to make the game character develop the light power B, and generating a second moving animation for developing the light power B in the process of moving the game character according to the moving coordinate set.
Optionally, before moving the game character according to the set of movement coordinates to generate a second movement animation, the method further includes: and 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.
Specifically, acquiring the switching action corresponding to the game character from a preset action library according to the switching movement instruction is realized through the following steps S2101 to S2102.
S2101, the role attribute value of the game role is obtained.
In practical application, the gender attribute value, the body type attribute value and the gate 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 the switching action corresponding to the game role from a preset action library according to the switching movement instruction and at least one of the gender attribute value, the body type attribute value and the gate attribute value of the game role.
In a specific embodiment provided by the present application, the obtained attribute values of the game character are an S-shaped, a male character, and a tall figure, and the switching action corresponding to the game character is obtained as M in a preset database pre-stored in the client according to the above three attribute values of the game character.
In another specific embodiment provided by the present application, the acquired attribute values of the game character are P, a female character, and a compact body type, and the switching action corresponding to the game character is acquired as N in a preset database pre-stored in a server according to the attribute values of the female character and the compact body type of the game character.
In another embodiment provided by the present application, the acquired attribute values of the game character are Q, a female character, and a tall figure, and the switching action corresponding to the game character is acquired as T in a preset database pre-stored in a server according to the attribute value of the female character of the game character.
Optionally, the method for moving the game character further includes: and acquiring a corresponding dropping action of the game role from a preset action library under the condition that the first mobile animation is finished and a switching mobile instruction is not received, and circularly playing the dropping action until the game role falls to the ground.
In another specific embodiment provided by the present application, a game character performs light power in the air, and when a switching movement instruction is received, the light power corresponding to the switching movement instruction is performed, and when a switching instruction is not received after a light power animation performed by the game character is played, a dropping motion corresponding to the game character is obtained from a preset motion library, and the dropping motion is played in a loop until the game character falls on the ground, and the performing of the light power is finished.
The preset action library can be stored in the client side in advance, and also can be stored in the server, and the storage position of the preset action library is not limited in the application.
The method for moving the game role is applied to the client, and receives a movement switching instruction under the condition of playing the 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 which is transmitted by the server and corresponds to the switching mobile information; the method realizes that the light power movement of the character can be controlled by a player, and the light power flight track is switched at any time in the light power flight process, so that the game character can move according to the switched light power flight track, the multi-section light power flight effect is presented on the display effect of a client, the player can obtain preset switching actions according to attribute values of the body type, the door type, the gender and the like of the game character in the light power flight switching process, the switching actions and the flight process are combined, the expression effect of the game is enriched, the expression and the infection of the game are improved, and a new player and an old player are effectively attracted and retained.
Fig. 3 illustrates a game character moving method according to an embodiment of the present application, which is applied to a server and includes steps 302 to 308.
Step 302: 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.
In practical application, the switching movement information includes a switching movement identifier, a movement curve number and a game character position. The switching mobile identification is used for identifying that the game role is in a switching light power state at the moment, the mobile curve number is used for identifying the number of the light power to be exerted by the game role, and the position of the game role is used for determining the position coordinate of the game role at present.
And the server receives the switching mobile identification, the mobile curve number and the game role position transmitted by the client.
In the embodiments provided by the present application, the receiving, by a server, handover mobility information transmitted by a client includes: the number of the switching light power and light power curves is B, and the current coordinate of the game role is (X)1,Y1,Z1)。
Step 304: and acquiring a corresponding moving curve in 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 connecting relative coordinates 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 mobile information, searches a corresponding mobile curve in a preset curve library according to the mobile curve number, and the preset curve library stores a plurality of mobile curves.
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, a corresponding light power curve B is searched in a preset curve library and according to a plurality of relative coordinates B in the light power curve B1,b2……bnAcquiring corresponding relative coordinate set (b)1,b2……bn)。
Step 306: and generating a moving coordinate set according to the game role position and the relative coordinate set.
And obtaining the movement coordinate set of the game role in the light power after the game role is switched according to the relative coordinate set corresponding to the game role position and the movement curve number in the switching movement information.
In the embodiment provided by the application, the current coordinate of the game role is (X)1,Y1,Z1) Relative set of coordinates (b)1,b2……bn) Thus, a set of movement coordinates (B) of the game character after each movement can be obtained1,B2……Bn)。
Step 308: transmitting the set of mobile coordinates to the client.
The game role moving method provided by the embodiment of the application is applied to a server, the server obtains a preset moving curve in a preset curve library according to switching moving information transmitted by a client, and obtains a moving coordinate set of a game role on the moving curve according to the position of the game role, the preset curve library enables the moving track of the game role to be richer, computing resources are 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.
In another embodiment provided by the present application, referring to fig. 4, fig. 4 shows an interaction diagram of a moving method of a game character provided by the embodiment of the present application, including steps 402 to 422.
Step 402: and the player receives a switching movement instruction for switching the light power B sent by the player under the condition of operating the game character to perform the light power A.
Step 404: and the client acquires the switching movement information according to the switching movement instruction.
Specifically, the switching movement information obtained by the client according to the switching movement instruction is the switching light power, the light power curve number is B, and the current coordinate of the game role is (X)1,Y1,Z1)。
Step 406: and the client sends the switching mobile information to a server.
Step 408: and the server acquires a corresponding moving curve in a preset curve library according to the switching moving identification and the moving curve number in the switching moving information sent by the client.
Specifically, the server obtains the 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 moving curve, wherein the moving curve is formed by relative coordinate connecting lines in the relative coordinate set corresponding to the moving curve.
Specifically, the server acquires a relative coordinate set in the light power curve B.
Step 412: the server generates a mobile coordinate set according to the game role coordinates in the switching mobile information sent by the client and the relative coordinate set acquired in the step 410 (b)1,b2……bn)。
Specifically, the server switches the game character coordinates (X) in the movement information according to the switching1,Y1,Z1) And the relative coordinate set (B) of the light work curve B1,b2……bn) Generating a set of mobile coordinates (B)1,B2……Bn)。
Step 414: the server transmits the set of mobile coordinates to the client.
Step 416: and the client interrupts the A light power and moves the game role according to the movement coordinate set to generate a second movement animation.
Specifically, the client interrupts to perform a light work and according to the set of mobile coordinates (B)1,B2……Bn) And moving the game role to generate the moving animation generated by the game role exhibition B in a light mode.
Step 418: the client acquires the position information of each frame of the game role in the second moving animation.
Specifically, the client acquires actual coordinate information of each frame of the game character in the motion animation generated by the executed light game B.
Step 420: and the client sends 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 motion animation generated by the game character in the application of the light game 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 the clients of other players in the same game scene as the game character.
In the network game, the movement information of the game role is synchronized to other clients in real time. The game role falls in the visual field of the game role controlled in other clients, and the synchronization of the position information of the game role is an essential link in the online game, so that the consistency and the playability of the game are ensured.
In the method for moving the game character provided by the embodiment of the application, the mobile instruction is obtained at the client, the mobile instruction is sent to the server, the mobile coordinate set corresponding to the mobile instruction is generated at the server, the mobile coordinate set is sent to the client, the client renders and generates the light-work animation moved by the game character according to the mobile coordinate set, so that the game character can switch the light work according to the instruction and move along the appointed light-work flight track, the multi-section light-work flight effect is presented on the display effect of the client, the game expressive force and the infectivity are improved, the mobile track of the game character is richer at the server through the preset curve library, the computing resources of the server are saved when the mobile coordinate set is obtained, the corresponding time of the server is shortened, the game delay is reduced, and the game experience of a player is improved through the mutual cooperation of the client and the server, the representation effect of the game is enriched, and new players can be attracted and old players can be retained effectively.
Corresponding to the above method embodiment, the present application further provides an embodiment of a mobile device of a game character, and fig. 5 shows a schematic structural diagram of the mobile device of the game character according to an embodiment of the present application, where the mobile device of the game character 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 the case of playing a first movement animation of a game character.
An obtaining and transmitting module 504, configured to obtain the handover movement information according to the handover movement instruction, and transmit the handover movement information to a server, so that the server obtains a corresponding movement coordinate set according to the handover movement information.
A second receiving module 506 configured to receive the mobile coordinate set corresponding to the handover movement information transmitted by the server.
A moving 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:
a transmission module configured to transmit the position information of each frame of the game character in the second moving animation to the server.
Optionally, the mobile device of the game character further includes:
and the preset action obtaining module is configured to obtain a switching action corresponding to the game role from a preset action library according to the switching movement instruction.
A play module configured to play the switching action.
Optionally, the obtaining preset action module is further configured to obtain a role attribute value of the game role, and obtain a 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 preset action module is further configured to obtain a switching action corresponding to the game character from a preset action library according to the switching movement instruction and at least one of the gender attribute value, the body type attribute value, and the gate attribute value of the game character.
Optionally, the mobile device of the game character further includes:
and the falling action obtaining module is configured to obtain a corresponding falling action of the game role from a preset action library under the condition that the first moving animation is finished and a 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 obtaining module and the preset action obtaining module is stored in the client or the server.
The mobile device for the game role provided by the embodiment of the application is applied to a client, and receives a mobile switching instruction under the condition of playing the first mobile 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 which is transmitted by the server and corresponds to the switching mobile information; the method realizes that the light power movement of the character can be controlled by a player, and the light power flight track is switched at any time in the light power flight process, so that the game character can move according to the switched light power flight track, the multi-section light power flight effect is presented on the display effect of a client, the player can obtain preset switching actions according to attribute values of the body type, the door type, the gender and the like of the game character in the light power flight switching process, the switching actions and the flight process are combined, the expression effect of the game is enriched, the expression and the infection of the game are improved, and a new player and an old player are effectively attracted and retained.
Corresponding to the above method embodiment, the present application further provides an embodiment of a mobile device of a game character, and fig. 6 shows a schematic structural diagram of the mobile device of the game character according to an embodiment of the present application, where the mobile device of the game character is applied to a server. As shown in fig. 6, the apparatus includes:
a third receiving module 602, configured to receive the switching movement information transmitted by the client, where the switching movement information includes a switching movement identifier, a movement curve number, and a game character position.
A coordinate obtaining module 604, configured to obtain a corresponding movement curve in a preset curve library according to the handover 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 relative coordinate lines in the relative coordinate set corresponding to the movement curve.
A generate coordinates module 606 configured to generate a set of mobile coordinates from the game character position and the set of relative coordinates.
A transmit coordinates module 608 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 character in the second moving animation, which is transmitted by the client.
A synchronization module configured to synchronize the location information to other clients.
The mobile device for the game role provided by the embodiment of the application is applied to a server, the server acquires a preset mobile curve in a preset curve library according to switching mobile information transmitted by a client, and acquires a mobile coordinate set of the game role on the mobile curve according to the position of the game role, the preset curve library makes the mobile track of the game role richer, and the computing resource is saved when the mobile coordinate set is acquired, the response time of the server is shortened, the game delay is reduced, and the game experience of a player is improved.
There is also provided in an embodiment of the present application a computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the method for moving a game character when executing the instructions.
An embodiment of the present application also provides a computer readable storage medium, which stores computer instructions, and the instructions are executed by a processor to implement the steps of the method for moving a game character as described above.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium is the same as the technical solution of the above-mentioned game character moving method, and for details that are not described in detail in the technical solution of the storage medium, reference may be made to the description of the technical solution of the above-mentioned game character moving method.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may 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 may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, 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.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (13)

1. A game character 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 which is transmitted by the server and corresponds to the switching mobile information;
and interrupting the first moving animation, and moving the game role according to the moving coordinate set to generate a second moving animation.
2. The method of moving a character of a game as set forth in claim 1, further comprising:
transmitting the position information of the game character in each frame of the second moving 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 the switching action corresponding to the game character from a preset action library according to the switching movement command comprises:
acquiring a role attribute value of the game role;
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 of claim 4, wherein obtaining the switching action corresponding to the game character from a preset action library according to the character attribute value and the switching movement command comprises:
and acquiring the switching action corresponding to the game role from a preset action library according to the switching movement instruction and at least one of the gender attribute value, the body type attribute value and the gate attribute value of the game role.
6. The method of moving a character of a game as set forth in claim 1, further comprising:
acquiring a corresponding dropping action of the game role from a preset action library under the condition that the first moving animation is finished and a switching moving instruction is not received;
and circularly playing the falling action until the game role falls to the ground.
7. The method for moving a character of a game as set forth in 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, includes:
receiving switching mobile information transmitted by a client, wherein the switching mobile information comprises a switching mobile identifier, a mobile curve number and a game role position;
acquiring a corresponding moving curve in a preset curve library according to the switching moving identification and the moving curve number, and acquiring a corresponding relative coordinate set according to the moving curve, wherein the moving curve is formed by connecting relative coordinates in the relative coordinate set corresponding to the moving curve;
generating a mobile coordinate set according to the game role position and the relative coordinate set;
transmitting the set of mobile coordinates to the client.
9. The method of moving a character of a game as set forth in claim 8, further comprising:
receiving the position information of each frame of the game role in a second mobile animation transmitted by the client;
and synchronizing the position information to other clients.
10. A mobile device of a game character, which is applied to a client, comprises:
the first receiving module is configured to receive a switching movement instruction under the condition that a first movement animation of the game role is played;
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;
a second receiving module configured to receive the mobile coordinate set corresponding to the handover mobile information transmitted by the server;
a movement module configured to interrupt the first movement animation and move the game character according to the set of movement coordinates to generate a second movement animation.
11. A mobile device of a game character, which is applied to a server, comprises:
the third receiving module is configured to receive 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 coordinate acquisition module is configured to acquire a corresponding movement curve in a preset curve library according to the switching movement identifier and the movement curve number, and acquire a corresponding relative coordinate set according to the movement curve, wherein the movement curve is formed by relative coordinate connecting lines in the relative coordinate set corresponding to the movement curve;
a generating coordinate module configured to generate a set of mobile coordinates from the game character position and the set of relative coordinates;
a transmit coordinate module configured to transmit the set of mobile coordinates 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 implements the steps of the method of any one of claims 1-7 or 8-9 when executing the instructions.
13. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform 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 true CN111111192A (en) 2020-05-08
CN111111192B 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)

Cited By (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
CN113769406A (en) * 2021-09-18 2021-12-10 北京冰封互娱科技有限公司 Control method and device of virtual role, storage medium and electronic device
WO2024120529A1 (en) * 2022-12-08 2024-06-13 北京冰封互娱科技有限公司 Animation playback method and apparatus

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 (2)

* Cited by examiner, † Cited by third party
Title
临越: "剑网3轻功2.0怎么使用怎样与老轻功切换使用" *
张爱红, 张秋菊: "游戏杆在机器人虚拟示教系统中的应用编程", 江南大学学报(自然科学版), no. 05, 30 October 2003 (2003-10-30) *

Cited By (4)

* 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
CN113769406A (en) * 2021-09-18 2021-12-10 北京冰封互娱科技有限公司 Control method and device of virtual role, storage medium and electronic device
CN113769406B (en) * 2021-09-18 2024-07-02 北京冰封互娱科技有限公司 Virtual character control method and device, storage medium and electronic device
WO2024120529A1 (en) * 2022-12-08 2024-06-13 北京冰封互娱科技有限公司 Animation playback method and apparatus

Also Published As

Publication number Publication date
CN111111192B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
CN111111192A (en) Game role moving method and device
CN110298907B (en) Virtual character action control method and device, computing equipment and storage medium
CN111054073B (en) Double-game role moving method and device
CN109885367B (en) Interactive chat implementation method, device, terminal and storage medium
CN109672918B (en) Animation synchronous playing method and device
US11783523B2 (en) Animation control method and apparatus, storage medium, and electronic device
US20180078851A1 (en) Intelligent hardware interaction method and system
CN111773691A (en) Cloud game service system, cloud client and data processing method
CN111627094B (en) Method and device for generating bone animation
CN111790144B (en) Game method and device based on live broadcast interface and game live broadcast interaction system
CN113209608A (en) Cross-server system and method
CN110298925B (en) Augmented reality image processing method, device, computing equipment and storage medium
CN112604287B (en) Virtual role state control method and device
CN112206515A (en) Game object state switching method, device, equipment and storage medium
CN114570020A (en) Data processing method and system
KR20110099414A (en) Apparatus and method for providing animation effect in portable terminal
CN111135578B (en) Game character moving method and device
CN115526967A (en) Animation generation method and device for virtual model, computer equipment and storage medium
CN113209625B (en) Data processing method and device
CN115187707A (en) Animation generation method and device
CN112206540B (en) Data processing method and device
CN111135580B (en) Game character standby animation generation method and device
CN115706809A (en) Resource processing method, device and system based on multi-person cooperation
CN111063013A (en) Role action splicing method and device
CN112604304B (en) Interaction control method and device for virtual objects

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
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.

GR01 Patent grant
GR01 Patent grant