CN116850578A - Method and device for controlling virtual character in game and electronic equipment - Google Patents

Method and device for controlling virtual character in game and electronic equipment Download PDF

Info

Publication number
CN116850578A
CN116850578A CN202210314304.XA CN202210314304A CN116850578A CN 116850578 A CN116850578 A CN 116850578A CN 202210314304 A CN202210314304 A CN 202210314304A CN 116850578 A CN116850578 A CN 116850578A
Authority
CN
China
Prior art keywords
virtual
prop
target area
virtual character
controlling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210314304.XA
Other languages
Chinese (zh)
Inventor
王泽�
刘勇成
胡志鹏
袁思思
程龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202210314304.XA priority Critical patent/CN116850578A/en
Publication of CN116850578A publication Critical patent/CN116850578A/en
Pending legal-status Critical Current

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/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • 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
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/308Details of the user interface

Abstract

The invention provides a method and a device for controlling virtual characters in a game and electronic equipment. Wherein, the graphical user interface is provided by the terminal device, the method comprises: responding to a first control instruction, controlling the virtual character to automatically move in a preset range of a target area, so that a prop list corresponding to the virtual prop at the target area is displayed in a graphical user interface in the moving process of the virtual character, wherein at least one virtual prop is arranged at the target area; and controlling the virtual character to pick up the virtual prop at the target area. In the mode, the player can control the virtual character to move and pick up the virtual prop at the target area only by executing the first control instruction, the operation is simple, the virtual character controlled by the player can be prevented from being killed by other nearby virtual characters in the process of picking up the virtual prop at the target area, and the experience of the player can be improved.

Description

Method and device for controlling virtual character in game and electronic equipment
Technical Field
The present invention relates to the field of game technologies, and in particular, to a method and an apparatus for controlling a virtual character in a game, and an electronic device.
Background
In existing electronic games, a player may pick up virtual props during the course of the game. Generally, a player does not move a virtual character during a process of controlling the virtual character to pick up a virtual prop, and the virtual character is easily knocked by other nearby virtual characters. In order to prevent the virtual prop from being knocked by other nearby virtual roles in the process of picking up the virtual prop, a player can control the virtual roles to pick up the virtual prop and move, however, in this way, the player needs to frequently operate a mouse and a keyboard, the operation is complicated, and the experience of the player is poor.
Disclosure of Invention
Accordingly, the present invention is directed to a method, an apparatus, and an electronic device for controlling virtual characters in a game, which can prevent the virtual characters controlled by a player from being knocked by other nearby virtual characters during the process of picking up virtual props, and is simple to operate, and can improve the experience of the player.
In a first aspect, an embodiment of the present invention provides a method for controlling a virtual character in a game, where a graphical user interface is provided through a terminal device, the method includes: responding to a first control instruction, controlling the virtual character to automatically move in a preset range of a target area, so that a prop list corresponding to the virtual prop at the target area is displayed in a graphical user interface in the moving process of the virtual character, wherein at least one virtual prop is arranged at the target area; and controlling the virtual character to pick up the virtual prop at the target area.
In an alternative embodiment of the present invention, the first control instruction includes a confirmation operation for a prop pick control in the graphical user interface.
In an optional embodiment of the present invention, the step of controlling the virtual character to automatically move within a preset range of the target area includes: controlling the virtual character to automatically move in a preset range of the target area in a preset gesture; wherein the posture comprises a standing posture, a squatting posture and a lying posture; a step of controlling a virtual character to pick up a virtual prop at a target area, comprising: and controlling the virtual character to pick up the virtual prop at the target area at a pick-up speed corresponding to the gesture.
In an alternative embodiment of the present invention, the step of controlling the virtual character to pick up the virtual prop at the target area includes: calculating a difference value between a preset maximum carrying amount corresponding to the target virtual prop and a first number of target virtual props carried by the virtual character; if the second number of the target virtual props at the target area is greater than or equal to the difference value, controlling the virtual character to pick up the target virtual props with the difference value; and if the second number of the target virtual props at the target area is smaller than the difference value, controlling the virtual character to pick up the second number of the target virtual props.
In an alternative embodiment of the present invention, the step of controlling the virtual character to pick up the virtual prop at the target area includes: and controlling the virtual character to pick up the virtual prop at the target area based on the preset pick-up priority of the virtual prop.
In an alternative embodiment of the present invention, the step of controlling the virtual character to pick up the virtual prop at the target area includes: and controlling the virtual character to pick up the virtual prop with the highest carrying priority of the virtual prop at the target area.
In an optional embodiment of the present invention, the step of controlling the virtual character to pick up the virtual prop at the target area further includes: and if the durability of the virtual prop at the target area is larger than that of the virtual prop carried by the virtual character, controlling the virtual character to pick up the virtual prop at the target area.
In an alternative embodiment of the present invention, the step of controlling the virtual character to pick up the virtual prop at the target area includes: and responding to a second control instruction aiming at the prop list, and controlling the virtual character to pick up the virtual prop at the target area.
In an optional embodiment of the present invention, the step of displaying, in the graphical user interface, a prop list of corresponding virtual props at the target area includes: and displaying a prop list of the corresponding virtual props at the target area in the graphical user interface based on a preset display sequence of the virtual props.
In a second aspect, an embodiment of the present invention further provides a control apparatus for a virtual character in a game, where a graphical user interface is provided through a terminal device, and the apparatus includes: the virtual character moving module is used for responding to the first control instruction and controlling the virtual character to automatically move in a preset range of the target area, so that a prop list corresponding to the virtual props at the target area is displayed in the graphical user interface in the moving process of the virtual character, wherein at least one virtual prop is arranged at the target area; and the virtual prop picking module is used for controlling the virtual character to pick up the virtual prop at the target area.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, where the memory stores computer executable instructions executable by the processor, and the processor executes the computer executable instructions to implement the steps of the method for controlling a virtual character in a game described above.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the steps of the method for controlling a virtual character in a game described above.
The embodiment of the invention has the following beneficial effects:
according to the method, the device and the electronic equipment for controlling the virtual character in the game, which are provided by the embodiment of the invention, the terminal equipment can respond to the first control instruction, control the virtual character to automatically move in the preset range of the target area, and control the virtual character to pick up the virtual prop at the target area. In the mode, the player can control the virtual character to move and pick up the virtual prop at the target area only by executing the first control instruction, the operation is simple, the virtual character controlled by the player can be prevented from being killed by other nearby virtual characters in the process of picking up the virtual prop at the target area, and the experience of the player can be improved.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part will be obvious from the description, or may be learned by practice of the techniques of the disclosure.
The foregoing objects, features and advantages of the disclosure will be more readily apparent from the following detailed description of the preferred embodiments taken in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of a graphical user interface according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for controlling a virtual character in a game according to an embodiment of the present invention;
FIG. 4 is a flowchart of another method for controlling virtual characters in a game according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a display manner of virtual props in a virtual prop box according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a control device for virtual characters in a game according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another control device for virtual characters in a game according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Currently, in existing electronic games, a player may pick up virtual props during the course of the game. Generally, a player does not move a virtual character during a process of controlling the virtual character to pick up a virtual prop, and the virtual character is easily knocked by other nearby virtual characters. In order to prevent the virtual prop from being knocked by other nearby virtual roles in the process of picking up the virtual prop, a player can control the virtual roles to pick up the virtual prop and move, however, in this way, the player needs to frequently operate a mouse and a keyboard, the operation is complicated, and the experience of the player is poor.
First, the present application is described with respect to nouns:
(1) Game scene
The gaming system may provide virtual game scenes that the application displays (or provides) when running on the terminal device or server. Optionally, the game scene is a simulated environment for the real world, or a semi-simulated semi-fictional virtual environment, or a purely fictional virtual environment. The game scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene, and the virtual environment can be sky, land, ocean and the like, wherein the land comprises environmental elements such as deserts, cities and the like. The game scene is a scene of complete game logic of virtual characters such as user control.
A virtual character refers to a dynamic object that can be controlled in a virtual scene. Alternatively, the dynamic object may be a virtual character, a virtual animal, or the like. Wherein the virtual character includes a cartoon character, a game character, and the like. The virtual Character is a Character that a Player controls through an input device, or is an artificial intelligence (Artificial Intelligence, AI) set in a virtual environment fight by training, or is a Non-Player Character (NPC) set in a virtual environment fight. Optionally, the avatar is a avatar playing an athletic activity in the virtual scene. Optionally, the number of virtual characters in the virtual scene fight is preset, or dynamically determined according to the number of clients joining the fight, which is not limited by the embodiment of the present application. In one possible implementation, a user can control a virtual character to move in the virtual scene, e.g., control the virtual character to run, jump, crawl, etc., as well as control the virtual character to fight other virtual characters using skills, virtual props, etc., provided by the application.
(2) Player character
A player character refers to a virtual character that may be manipulated by a player to be active in a gaming environment, which may also be referred to as a god character, hero character in some electronic games. The player character may be at least one of a virtual character, a virtual animal, a cartoon character, a virtual vehicle, or the like.
(3) Game interface
The game Interface is an Interface corresponding to an application program provided or displayed through a graphical User Interface, and the Interface includes a UI (User Interface) and a game screen for a player to interact. In alternative embodiments, game controls (e.g., skill controls, movement controls, functionality controls, etc.), indication identifiers (e.g., direction indication identifiers, character indication identifiers, etc.), information presentation areas (e.g., number of clicks, time of play, etc.), or game setting controls (e.g., system settings, stores, gold coins, etc.) may be included in the UI interface. In an alternative embodiment, the game screen is a display screen corresponding to the virtual scene displayed by the terminal device, and the game screen may include virtual characters such as a game Character, an NPC Character (Non-Player Character), an AI (Artificial Intelligence ) Character, etc. that execute game logic in the virtual scene.
Based on the above, the method, the device and the electronic equipment for controlling the virtual character in the game provided by the embodiment of the invention can be applied to equipment capable of realizing man-machine interaction such as mobile phones, tablet computers, computers and servers, and can be particularly suitable for scenes of mobile phone games and network games.
For the convenience of understanding the present embodiment, a detailed description will be given of a method for controlling virtual characters in a game disclosed in the present embodiment.
The method for controlling the virtual character in the game in one embodiment of the present disclosure may be executed on a terminal device or a server. The terminal device may be a local terminal device. When the method for controlling the virtual roles in the game runs on the server, the method can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, the running main body of the game program and the game picture presentation main body are separated, the storage and running of the control method of the virtual character in the game are completed on the cloud game server, and the function of the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the terminal device for information processing is cloud game server of cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through the graphical user interface, namely, conventionally downloading and installing the game program through the electronic device and running. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal, or provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
In a possible implementation manner, the embodiment of the present invention provides a method for controlling a virtual character in a game, and a graphical user interface is provided through a terminal device, where the terminal device may be the aforementioned local terminal device or the aforementioned client device in a cloud interaction system. Providing a graphical user interface through the terminal device, the graphical user interface including at least a portion of the game scene and player characters and other virtual characters in the same pair; as in the previous embodiments, the player may control the player character to attack other virtual characters.
See a schematic diagram of one implementation environment shown in fig. 1. The implementation environment may include: the system comprises a first terminal device, a host and a second terminal device. The first terminal device and the second terminal device are respectively communicated with the server to realize data communication. In this embodiment, the first terminal device and the second terminal device are respectively installed with a client for executing the method for controlling the virtual character in the game provided by the present application, and the host is a server for executing the method for controlling the virtual character in the game provided by the present application. The first terminal device and the second terminal device can respectively communicate with the host through the client.
Taking a first terminal device as an example, the first terminal device establishes communication with a host through an operation client. In an alternative embodiment, the server establishes game play according to the game request from the client. The parameters of the game play may be determined according to the parameters in the received game request, for example, the parameters of the game play may include the number of people participating in the game play, the role level of the participating game play, and the like. And when the first terminal equipment receives the response of the server, displaying a virtual scene corresponding to the game play through a graphical user interface of the first terminal equipment. In an alternative embodiment, the server determines a target game for the client from the plurality of established game games according to the game request of the client, and when the first terminal device receives the response of the server, the virtual scene corresponding to the game is displayed through the graphical user interface of the first terminal device. The first terminal equipment is equipment controlled by a first user, the virtual character displayed in the graphical user interface of the first terminal equipment is a player character controlled by the first user, and the first user inputs an operation instruction through the graphical user interface so as to control the player character to execute corresponding operation in the virtual scene.
Taking a second terminal device as an example, the second terminal device establishes communication with the host through the operation client. In an alternative embodiment, the server establishes game play according to the game request from the client. The parameters of the game play may be determined according to the parameters in the received game request, for example, the parameters of the game play may include the number of people participating in the game play, the role level of the participating game play, and the like. And when the second terminal equipment receives the response of the server, displaying a virtual scene corresponding to the game play through a graphical user interface of the second terminal equipment. In an alternative embodiment, the server determines a target game for the client from the plurality of established game games according to the game request of the client, and when the second terminal device receives the response of the server, the virtual scene corresponding to the game is displayed through the graphical user interface of the second terminal device. The second terminal equipment is equipment controlled by a second user, the virtual character displayed in the graphical user interface of the second terminal equipment is a player character controlled by the second user, and the second user inputs an operation instruction through the graphical user interface so as to control the player character to execute corresponding operation in the virtual scene.
The server calculates data according to game data reported by the first terminal equipment and the second terminal equipment, and synchronizes the calculated game data to the first terminal equipment and the second terminal equipment, so that the first terminal equipment and the second terminal equipment control rendering of corresponding virtual scenes and/or virtual roles in the graphical user interface according to the synchronous data issued by the server.
In this embodiment, the virtual character controlled by the first terminal device and the virtual character controlled by the second terminal device are virtual characters in the same game pair. The virtual character controlled by the first terminal device and the virtual character controlled by the second terminal device may have the same character attribute, or may have different character attributes.
It should be noted that, the virtual characters in the current game play may include two or more virtual characters, and different virtual characters may correspond to different terminal devices, that is, in the current game play, there are two or more terminal devices that perform transmission and synchronization of game data with the host respectively.
The embodiment provides a method for controlling virtual characters in a game, the game of the embodiment can be a multi-player fight game, and the terminal equipment in the embodiment can be a mobile phone, a computer, a tablet personal computer, a game host and other equipment with communication function and man-machine interaction function.
In this embodiment, a graphical user interface of a game is provided through a terminal device, and referring to a schematic diagram of a graphical user interface shown in fig. 2, a virtual prop box and a prop pickup control corresponding to the virtual prop box may be provided through the graphical user interface. In addition, the graphical user interface may also display virtual characters controlled by the player itself and other virtual characters controlled by other players.
In addition to placing virtual props through the virtual prop box, virtual props may also be placed directly at target areas of the game scene for player pickup.
Based on the above description, referring to a flowchart of a method for controlling a virtual character in a game shown in fig. 3, the method for picking up a virtual prop includes the steps of:
step S302, responding to a first control instruction, controlling the virtual character to automatically move in a preset range of a target area, so that a prop list corresponding to the virtual props at the target area is displayed in a graphical user interface in the moving process of the virtual character, wherein at least one virtual prop is arranged at the target area.
In this embodiment, when the virtual character controlled by the player approaches the target area, the terminal device may display, on the graphical user interface, a prop list of corresponding virtual props at the target area. In addition, when the virtual character controlled by the fruit player is far away from the target area, the terminal device can cancel the display of the prop list of the corresponding virtual prop at the target area in the graphical user interface.
The virtual prop in this embodiment may be disposed in a virtual prop box, or directly disposed at a target area of a game scene. Wherein, there is at least one virtual stage property at the target area. If the virtual prop is set in the virtual prop box, the virtual prop box in this embodiment may or may not include one or more virtual props.
Specifically, the virtual prop box may be a box prop placed in a game at regular time, or may be a prop generated after other virtual roles other than the virtual roles controlled by the player are knocked out. For example, in a game, a virtual prop box may be timed to drop, after player B is killed, a virtual prop box may be generated for player B, and player killing an NPC character may also obtain a virtual prop box for that NPC character.
One or more virtual props are generally included in the virtual prop box, and a player can pick up the virtual props in the virtual prop box for carrying or equipping. However, before a player-controlled virtual character picks up a virtual prop box, that virtual prop box is likely to have been picked up by other player-controlled virtual characters, at which point the virtual prop box is likely to have no virtual props present, i.e., the virtual prop box described above may also contain no virtual props.
When the virtual character controlled by the player approaches to the virtual prop box, the terminal device may display a prop pickup control corresponding to the virtual prop box on the graphical user interface, and the first control instruction may include a confirmation operation for the prop pickup control in the graphical user interface. The player may perform validation operations for the prop pick control described above, such as: clicking and long-pressing the prop pick-up control and the like. The terminal equipment can respond to the confirmation operation of the prop pick-up control and control the virtual character to move within the preset range of the virtual prop box.
The virtual character may be moved in a random manner or in a fixed manner, for example: and (3) performing circular motion around the virtual prop or the virtual prop box. During movement of the virtual character, the terminal device may display, in the graphical user interface, a prop list of corresponding virtual props at the target area.
Specifically, since a certain pickup range is generally set in the game, the virtual character can pick up the virtual prop only within the pickup range, and thus the preset range of the virtual prop box needs to be less than or equal to the pickup range. For example, if the pick-up range is 5 meters, then the virtual character may pick up props in the virtual prop box only within 5 meters of the virtual prop box.
Therefore, the preset range needs to be set to be smaller than or equal to 5 meters, and the virtual character can move within the range of 5 meters so as to ensure that the virtual prop in the virtual prop box can be picked up.
Wherein, the random movement of the virtual character in the present embodiment is not only a change of the position of the virtual character, but also includes a change of the posture of the virtual character, for example: the change of the posture of the virtual character from standing to squatting, from standing to lying down to standing down, or the change of the posture of the virtual character such as shaking the body can be understood as the random movement of the virtual character in the embodiment.
Step S304, the virtual character is controlled to pick up the virtual prop at the target area.
In the process of moving the virtual character, the moving range of the virtual character is smaller than or equal to the picking range of the virtual prop box, so that the terminal equipment can control the virtual character to pick up the virtual prop in the target area.
According to the method for controlling the virtual character in the game, provided by the embodiment of the invention, the terminal equipment can respond to the first control instruction, control the virtual character to automatically move in the preset range of the target area, and control the virtual character to pick up the virtual prop at the target area. In the mode, the player can control the virtual character to move and pick up the virtual prop at the target area only by executing the first control instruction, the operation is simple, the virtual character controlled by the player can be prevented from being killed by other nearby virtual characters in the process of picking up the virtual prop at the target area, and the experience of the player can be improved.
Another method for controlling a virtual character in a game in an alternative embodiment shown in fig. 4 is a flowchart, and the method for controlling a virtual character in a game in an alternative embodiment includes the steps of:
step S402, responding to a confirmation operation for the prop picking control in the graphical user interface, and controlling the virtual character to automatically move within a preset range of a target area, so that a prop list corresponding to the virtual props at the target area is displayed in the graphical user interface in the movement process of the virtual character, wherein at least one virtual prop is arranged at the target area.
Wherein, the player can preset the moving gesture, and the terminal device can move according to the preset gesture, for example: controlling the virtual character to automatically move in a preset range of the target area in a preset gesture; wherein the posture includes a standing posture, a squatting posture and a lying posture.
That is, the player may preset the virtual character to move using a standing posture, a squatting posture, or a lying posture, however, the speed of movement of different postures may be different, and the speed of picking up props of different postures may also be different, for example: and controlling the virtual character to pick up the virtual prop at the target area at a pick-up speed corresponding to the gesture.
For example, a standing-position virtual character moves randomly at a high speed, and picks up virtual props at a high speed, but a standing-position virtual character is easily found and killed by other virtual characters. The virtual character in the prone position randomly moves slowly and picks up the virtual prop slowly, but the virtual character in the prone position is not easy to be found and killed by other virtual characters. The speed of randomly moving and picking up the virtual prop of the virtual character in the squat posture is positioned between the virtual character in the standing posture and the virtual character in the groveling posture, and the probability that the virtual character in the squat posture is discovered and killed by other virtual characters is also positioned between the virtual character in the standing posture and the virtual character in the groveling posture.
Therefore, the player can select proper gestures to randomly move and pick up virtual props in the target area according to the needs of the player, so that the game interestingness is increased, and the experience of the player is improved.
For the display mode of the prop list corresponding to the virtual props at the target area, the player can set the display sequence of the virtual props, and the terminal device can display according to the sequence set by the player, for example: and displaying a prop list of the corresponding virtual props at the target area in the graphical user interface based on a preset display sequence of the virtual props.
Taking the example that the virtual prop is arranged in the virtual prop box, a schematic diagram of a display mode of the virtual prop in the virtual prop box shown in fig. 5 can be referred to, if a player executes a confirmation operation of a prop picking control, a window (i.e. a virtual prop window in fig. 5) can be popped up in a graphical user interface to display the virtual prop in the virtual prop box, and the displayed content can include names (i.e. virtual prop a, virtual prop B, virtual prop C and virtual prop D in fig. 5), durability, attribute values and the like.
Wherein, the player may set a priority display of some virtual props, or may set a final display of some virtual props, for example: priority display of ammunition, armor, weapon, etc. The terminal device may also determine a display sequence of the virtual props according to the virtual props carried by the player, for example: the player carries weapon a, the ammunition of which is a 5.66mm bullet, then a 5.66mm bullet can be preferentially displayed, and for other sizes, the bullet is placed at the end of the display. Also for example: the player carries the long sword, so that the secret books of the armed forces corresponding to the long sword can be preferentially displayed, and the player can conveniently pick up the secret books of the armed forces corresponding to the long sword preferentially.
In step S404, the virtual character is controlled to pick up the virtual prop at the target area.
As mentioned above, the terminal device may automatically control the virtual character to pick up the virtual prop at the target area, and in addition, the player may also automatically control the virtual character to pick up the virtual prop at the target area, which is not limited in this embodiment.
Specifically, the terminal device may control the virtual character to pick up the virtual prop at the target area in response to the second control instruction for the prop list. The player takes the virtual prop in the clicked and long-pressed prop list as a second control command, and the terminal equipment can respond to the second control command to control the virtual character to pick up the virtual prop clicked or long-pressed by the player.
It should be noted that, in the process of controlling the virtual character to pick up the virtual prop at the target area, the virtual character may be picked up in various orders. For example, some virtual props may be set with the maximum amount of carry, referred to as target virtual props, which may be controlled by the virtual character to pick up at the target area by: calculating a difference value between a preset maximum carrying amount corresponding to the target virtual prop and a first number of target virtual props carried by the virtual character; if the second number of the target virtual props at the target area is greater than or equal to the difference value, controlling the virtual character to pick up the target virtual props with the difference value; and if the second number of the target virtual props at the target area is smaller than the difference value, controlling the virtual character to pick up the second number of the target virtual props.
The target virtual prop can be a bullet, a bow and the like. In general, the total amount of props carried by the virtual character can be set in the game, so that the player cannot carry target virtual props such as bullets and arches without limitation, and the maximum carrying amount of target virtual props such as bullets and arches, namely the maximum amount of target virtual props that the player can carry, can be set.
Taking the example that the target virtual prop is an arrow, assuming that the maximum carrying amount of the arrow is set to be 100, the number of the arrows carried by the player (i.e. the first number) is determined to be 60, and the difference between the maximum carrying amount and the first number (100-60=40) is calculated to be 40.
If the second number of target virtual props at the target area is greater than or equal to the difference value (40), the virtual character control virtual character may be controlled to pick up the target virtual props of the difference value (40), and the picked virtual character may carry the target virtual props of the maximum carrying amount (60+40=100).
If the second number of target virtual props at the target area is less than the difference (assuming 29), the virtual character may be controlled to pick up the second number of target virtual props, and the picked up target virtual props may still be less than the maximum carrying amount (60+29=89 < 100).
In addition, the picking priority of the virtual prop may be preset, and the virtual character may be controlled to pick up the virtual prop at the target area based on the preset picking priority of the virtual prop.
For example, a player may preset a armor, some weapon may pick up priority over bullets, other weapons, medicines. At this time, the terminal device may control the virtual prop with high priority in the virtual prop display area, and then pick up the virtual prop with low priority. For example, the player may pick up in advance that the priority is the highest for broadsword, the armor is the next, and other virtual props are the lowest. Thus, if the virtual prop at the target area includes a broadsword, a long sword, and a nail blade, the picking-up sequence of the virtual prop may be to pick up the broadsword first, then the nail blade, and finally the long sword.
In addition, the carrying priorities of the virtual props of different types can be preset, and the virtual prop with the highest carrying priority at the virtual prop pick-up target area of the virtual character is controlled. The virtual props can belong to different kinds, the carrying priority of the virtual props belonging to the same kind can be preset, the priority of the golden armor can be set to be the highest for armor, the priority of the purple armor is the next, the priority of the blue armor is the next, and finally the armor is the white armor. Thus, if the virtual prop at the target area includes purple, blue and white nails, the virtual character may be controlled to pick up purple nails (i.e., the virtual prop with the highest priority).
In addition, the virtual prop in the embodiment may have durability, and if the durability of the virtual prop at the target area is greater than the durability of the virtual prop carried by the virtual character, the virtual character is controlled to pick up the virtual prop at the target area. For the armor, if the armor at the target area and the armor carried by the virtual character itself are the armor, the durability of the armor carried by the virtual character itself is 39, and the durability of the armor at the target area is 80, the durability (80) of the armor at the target area is greater than the durability (39) of the armor carried by the virtual character, the armor at the target area can be controlled to be picked up by the virtual character.
In the mode, the terminal equipment can control the virtual character to pick up the virtual prop at the target area based on the maximum carrying amount, the picking priority, the carrying priority, the durability and other parameters corresponding to the virtual prop, so that a player can conveniently control the virtual character to pick up the virtual prop according to the needs of the player, the player can conveniently pick up the virtual prop, and the experience of the player is improved.
According to the method provided by the embodiment of the invention, the terminal equipment can respond to the confirmation operation of the prop pickup control displayed on the graphical user interface, control the virtual character to automatically move in the preset range of the target area, and control the virtual character to pick up the virtual prop at the target area. In the mode, the player can control the virtual character to pick up the virtual prop at the target area while moving only through the confirmation operation of the prop pick-up control, the operation is simple, the virtual character controlled by the player can be prevented from being killed by other nearby virtual characters in the process of picking up the virtual prop at the target area, and the experience of the player can be improved.
The virtual character can randomly move according to a preset gesture, and the virtual character picks up the virtual prop at the target area according to the pickup speed corresponding to the gesture. The terminal device can control the virtual character to pick up the virtual prop at the target area based on the maximum carrying capacity, the picking priority, the carrying priority, the durability and other parameters corresponding to the virtual prop. The virtual character picking-up device can facilitate a player to control the virtual character to pick up virtual props according to the needs of the player, so that the player is facilitated, and the experience of the player is improved.
The terminal equipment can also display virtual props of the prop list in a graphical user interface according to a certain sequence, so that a player can conveniently review the virtual props of the prop list, and the experience of the player is improved.
Corresponding to the above method embodiment, the embodiment of the present invention provides a control device for an in-game virtual character, which provides a graphical user interface through a terminal device, as shown in fig. 6, and the control device for an in-game virtual character includes:
the virtual character moving module 61 is configured to respond to the first control instruction, and control the virtual character to automatically move within a preset range of the target area, so that a prop list corresponding to the virtual prop at the target area is displayed in the graphical user interface during the movement of the virtual character, where at least one virtual prop is located at the target area;
Virtual prop pick-up module 62 is used to control the virtual character to pick up the virtual prop at the target area.
According to the control device for the virtual character in the game, provided by the embodiment of the invention, the terminal equipment can respond to the first control instruction, control the virtual character to automatically move in the preset range of the target area, and control the virtual character to pick up the virtual prop at the target area. In the mode, the player can control the virtual character to move and pick up the virtual prop at the target area only by executing the first control instruction, the operation is simple, the virtual character controlled by the player can be prevented from being killed by other nearby virtual characters in the process of picking up the virtual prop at the target area, and the experience of the player can be improved.
The first control instruction includes a confirmation operation for the prop pick control in the graphical user interface.
The virtual character moving module is used for automatically moving the virtual character in a preset range of the target area in a preset gesture; wherein the posture comprises a standing posture, a squatting posture and a lying posture; and the virtual prop at the target area is picked up by the control virtual character at a pickup speed corresponding to the gesture.
The virtual prop picking module is used for calculating a difference value between a preset maximum carrying amount corresponding to the target virtual prop and a first number of target virtual props carried by the virtual character; if the second number of the target virtual props at the target area is greater than or equal to the difference value, controlling the virtual character to pick up the target virtual props with the difference value; and if the second number of the target virtual props at the target area is smaller than the difference value, controlling the virtual character to pick up the second number of the target virtual props.
The virtual prop picking module is used for controlling the virtual roles to pick up the virtual props at the target area based on the preset picking priority of the virtual props.
The virtual prop picking module is used for controlling the virtual character to pick up the virtual prop with the highest carrying priority of the virtual prop in the target area.
And the virtual prop picking module is used for controlling the virtual prop at the target area to be picked up by the virtual character if the durability of the virtual prop at the target area is larger than that of the virtual prop carried by the virtual character.
And the virtual prop picking module is used for responding to a second control instruction aiming at the prop list and controlling the virtual character to pick up the virtual prop at the target area.
Referring to fig. 7, there is shown a schematic configuration diagram of another in-game virtual character control apparatus, which further includes: the virtual prop display module 63 is connected to the virtual character moving module 61, and the virtual prop display module 63 is configured to display a prop list of the corresponding virtual props at the target area in the graphical user interface based on a preset display sequence of the virtual props.
The control device for the virtual character in the game provided by the embodiment of the invention has the same technical characteristics as the control method for the virtual character in the game provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The embodiment of the invention also provides electronic equipment, which is used for running the control method of the virtual character in the game; referring to fig. 8, an electronic device includes a memory 100 and a processor 101, wherein the memory 100 is configured to store one or more computer instructions, and the one or more computer instructions are executed by the processor 101 to implement the method for controlling a virtual character in a game.
Further, the electronic device shown in fig. 8 further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103, and the memory 100 are connected through the bus 102.
The memory 100 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 103 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 102 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 8, but not only one bus or type of bus.
The processor 101 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 101 or instructions in the form of software. The processor 101 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 100 and the processor 101 reads information in the memory 100 and in combination with its hardware performs the steps of the method of the previous embodiments.
The embodiment of the invention also provides a computer readable storage medium, which stores computer executable instructions that, when being called and executed by a processor, cause the processor to implement the method for controlling the virtual character in the game, and the specific implementation can be referred to the method embodiment and will not be repeated herein.
The method, the device and the computer program product of the electronic device for controlling the virtual character in the game provided by the embodiment of the invention comprise a computer readable storage medium storing program codes, and instructions included in the program codes can be used for executing the method in the previous method embodiment, and specific implementation can be referred to the method embodiment and will not be repeated here.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and/or apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In addition, in the description of embodiments of the present invention, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention, but it should be understood by those skilled in the art that the present invention is not limited thereto, and that the present invention is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A method for controlling a virtual character in a game, wherein a graphical user interface is provided through a terminal device, the method comprising:
responding to a first control instruction, controlling a virtual character to automatically move in a preset range of a target area, so that a prop list corresponding to virtual props at the target area is displayed in the graphical user interface in the moving process of the virtual character, wherein at least one virtual prop is arranged at the target area;
And controlling the virtual character to pick up the virtual prop at the target area.
2. The method of claim 1, wherein the first control instruction comprises a validation operation for a prop pick control in the graphical user interface.
3. The method of claim 1, wherein the step of controlling the virtual character to automatically move within a preset range of the target area comprises: controlling the virtual character to automatically move in a preset range of the target area in a preset gesture; wherein the postures comprise a standing posture, a squatting posture and a lying posture;
the step of controlling the virtual character to pick up the virtual prop at the target area comprises the following steps: and controlling the virtual character to pick up the virtual prop at the target area at a pick-up speed corresponding to the gesture.
4. The method of claim 1, wherein the step of controlling the virtual character to pick up a virtual prop at the target area comprises:
calculating a difference value between a preset maximum carrying amount corresponding to a target virtual prop and a first number of the target virtual props carried by the virtual character;
If the second number of the target virtual props at the target area is greater than or equal to the difference value, controlling the virtual character to pick up the target virtual props with the difference value;
and if the second number of the target virtual props at the target area is smaller than the difference value, controlling the virtual character to pick up the second number of the target virtual props.
5. The method of claim 1, wherein the step of controlling the virtual character to pick up a virtual prop at the target area comprises:
and controlling the virtual character to pick up the virtual prop at the target area based on the preset pick-up priority of the virtual prop.
6. The method of claim 1, wherein the step of controlling the virtual character to pick up a virtual prop at the target area comprises:
and controlling the virtual character to pick up the virtual prop with the highest carrying priority of the virtual prop at the target area.
7. The method of claim 1, wherein the step of controlling the virtual character to pick up a virtual prop at the target area further comprises:
and if the durability of the virtual prop at the target area is larger than that of the virtual prop carried by the virtual character, controlling the virtual character to pick up the virtual prop at the target area.
8. The method of claim 1, wherein the step of controlling the virtual character to pick up a virtual prop at the target area comprises:
and responding to a second control instruction aiming at the prop list, and controlling the virtual character to pick up the virtual prop at the target area.
9. The method of claim 1, wherein displaying in the graphical user interface a list of props corresponding to virtual props at the target area comprises:
and displaying a prop list of the corresponding virtual props at the target area in the graphical user interface based on the preset display sequence of the virtual props.
10. A control apparatus for a virtual character in a game, wherein a graphic user interface is provided through a terminal device, the apparatus comprising:
the virtual character moving module is used for responding to a first control instruction and controlling the virtual character to automatically move in a preset range of a target area, so that a prop list corresponding to virtual props at the target area is displayed in the graphical user interface in the moving process of the virtual character, wherein at least one virtual prop is arranged at the target area;
And the virtual prop picking module is used for controlling the virtual character to pick up the virtual prop at the target area.
11. An electronic device comprising a processor and a memory, the memory storing computer executable instructions executable by the processor, the processor executing the computer executable instructions to implement the steps of the method of controlling a virtual character in a game as claimed in any one of claims 1 to 9.
12. A computer readable storage medium storing computer executable instructions which, when invoked and executed by a processor, cause the processor to implement the steps of the method of controlling a virtual character in a game as claimed in any one of claims 1 to 9.
CN202210314304.XA 2022-03-28 2022-03-28 Method and device for controlling virtual character in game and electronic equipment Pending CN116850578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210314304.XA CN116850578A (en) 2022-03-28 2022-03-28 Method and device for controlling virtual character in game and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210314304.XA CN116850578A (en) 2022-03-28 2022-03-28 Method and device for controlling virtual character in game and electronic equipment

Publications (1)

Publication Number Publication Date
CN116850578A true CN116850578A (en) 2023-10-10

Family

ID=88234583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210314304.XA Pending CN116850578A (en) 2022-03-28 2022-03-28 Method and device for controlling virtual character in game and electronic equipment

Country Status (1)

Country Link
CN (1) CN116850578A (en)

Similar Documents

Publication Publication Date Title
CN110548288B (en) Virtual object hit prompting method and device, terminal and storage medium
JP7390400B2 (en) Virtual object control method, device, terminal and computer program thereof
CN113134233B (en) Control display method and device, computer equipment and storage medium
WO2021238870A1 (en) Information display method and apparatus, and device and storage medium
CN112843679B (en) Skill release method, device, equipment and medium for virtual object
CN113559507B (en) Information processing method, information processing device, storage medium and electronic equipment
CN113144597B (en) Virtual vehicle display method, device, equipment and storage medium
CN113244603A (en) Information processing method and device and terminal equipment
TW202224739A (en) Method for data processing in virtual scene, device, apparatus, storage medium and program product
TWI821779B (en) Virtual object controlling method, device, computer apparatus, and storage medium
CN111905363A (en) Virtual object control method, device, terminal and storage medium
WO2022083451A1 (en) Skill selection method and apparatus for virtual object, and device, medium and program product
CN112107856B (en) Hit feedback method and device, storage medium and electronic equipment
JP2023164687A (en) Virtual object control method and apparatus, and computer device and storage medium
CN115708956A (en) Game picture updating method and device, computer equipment and medium
CN116850578A (en) Method and device for controlling virtual character in game and electronic equipment
JP2023526208A (en) VIRTUAL SCENE DISPLAY METHOD, VIRTUAL SCENE DISPLAY DEVICE, TERMINAL AND COMPUTER PROGRAM
WO2023221944A1 (en) Virtual character control method and apparatus, and electronic device and storage medium
CN116474362A (en) Method and device for controlling virtual character in game and electronic equipment
CN113599829B (en) Virtual object selection method, device, terminal and storage medium
CN116077939A (en) Virtual prop control method and device, electronic equipment and readable storage medium
CN116617662A (en) Method and device for marking virtual characters in game and electronic equipment
CN117797468A (en) Method and device for prompting materials in game and electronic equipment
CN117797465A (en) Game skill control method, game skill control device, electronic equipment and readable storage medium
CN115554699A (en) In-game information processing method and device and electronic equipment

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