CN111729297A - Prop control method and device, computer equipment and medium - Google Patents

Prop control method and device, computer equipment and medium Download PDF

Info

Publication number
CN111729297A
CN111729297A CN202010546549.6A CN202010546549A CN111729297A CN 111729297 A CN111729297 A CN 111729297A CN 202010546549 A CN202010546549 A CN 202010546549A CN 111729297 A CN111729297 A CN 111729297A
Authority
CN
China
Prior art keywords
prop
direction key
sliding
target
key
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
CN202010546549.6A
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 CN202010546549.6A priority Critical patent/CN111729297A/en
Publication of CN111729297A publication Critical patent/CN111729297A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/803Driving vehicles or craft, e.g. cars, airplanes, ships, robots or tanks

Abstract

The application provides a method, a device, computer equipment and a medium for controlling props, wherein the method comprises the following steps: responding to touch operation aiming at a direction key, and adjusting the moving direction of the target virtual character; and under the condition of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of the sliding operation meets the preset requirement. The user can be directly under the condition of the touch operation to the direction button, based on the sliding operation to the direction button, the release to the target prop is realized, namely under the condition that the moving direction of the target virtual character is not influenced, the release of the target prop is realized, and the release efficiency of the target prop is improved.

Description

Prop control method and device, computer equipment and medium
Technical Field
The application relates to the field of game operation, in particular to a method and a device for controlling props, computer equipment and a medium.
Background
Along with the development of science and technology, the types of touch terminals are more and more, and in order to meet the leisure and entertainment requirements of people, games capable of being applied to the touch terminals are more and more, wherein a race type hand game is one of the games.
At present, in order to increase the interest of games, in a race type game, a game operator displays a prop prompt icon which can be used for controlling prop release in a graphical user interface, and the prop release can be realized only by clicking the prop prompt icon by a user. The use of props is added in the game, so that the complexity of a game scene can be increased, and more interaction is increased among virtual characters.
Disclosure of Invention
In view of this, an object of the present application is to provide a method, an apparatus, a computer device, and a medium for controlling a property, which are used to solve the problem in the prior art that a property is released without affecting a virtual character to adjust a moving direction.
In a first aspect, an embodiment of the present application provides a method for controlling a prop, where at least a part of a racing game scene and a direction key for controlling a moving direction of a target virtual character are displayed through a graphical user interface provided by a terminal device, where the game scene includes the target virtual character, and the method includes:
responding to touch operation aiming at a direction key, and adjusting the moving direction of the target virtual character;
and under the condition of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of the sliding operation meets the preset requirement.
Optionally, under the condition of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of the sliding operation meets the preset requirement, including:
and under the condition of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of the touch point of the sliding operation meets the preset requirement.
Optionally, the direction key includes a left turn key and a right turn key, and both the left turn key and the right turn key are displayed on the graphical user interface; displaying a property prompt icon at a preset distance in the vertical direction; the vertical direction is perpendicular to the direction of a connecting line between the left-turn key and the right-turn key;
under the condition of performing touch operation on a direction key, responding to sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of a touch point of the sliding operation meets a preset requirement, wherein the step comprises the following steps of:
and under the condition of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when a touch point of the sliding operation slides to the position of the prop prompt icon.
Optionally, under the condition that the touch operation is performed on the direction key, responding to the sliding operation on the direction key, continuing to adjust the moving direction of the target virtual character, and controlling the target prop to release when the touch point of the sliding operation slides to the position of the prop prompt icon, including:
and under the condition of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move along with the sliding operation on a graphical user interface, and controlling the target prop to release when a touch point of the sliding operation slides to the position of the prop prompt icon.
Optionally, under the condition that the touch operation is performed on the direction key, responding to the sliding operation on the direction key, continuing to adjust the moving direction of the target virtual character, and controlling the target prop to release when the touch point of the sliding operation slides to the position of the prop prompt icon, including:
and under the condition of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, and when the touch point of the sliding operation slides to the position of the prop prompt icon, adjusting the prop prompt icon from the first display animation to the second display animation, and controlling the target prop to be released.
Optionally, under the condition of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of the sliding operation meets the preset requirement, including:
under the condition of touch operation on a direction key, responding to sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move on a graphical user interface along with the sliding operation, and controlling the target prop to release when the moving parameter of the direction key meets a preset requirement.
Optionally, the direction key includes a left turn key and a right turn key, and both the left turn key and the right turn key are displayed on the graphical user interface; displaying a property prompt icon at a preset distance in the vertical direction; the vertical direction is perpendicular to the direction of a connecting line between the left-turn key and the right-turn key;
under the condition of performing touch operation on a direction key, responding to sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move on a graphical user interface along with the sliding operation, and controlling the target prop to release when the moving parameter of the direction key meets a preset requirement, wherein the step comprises the following steps:
under the condition of performing touch operation on a direction key, responding to sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move on a graphical user interface along with the sliding operation, and controlling the target prop to release when the direction key moves to the position of the prop prompt icon.
Optionally, under the condition that touch operation is performed on a direction key, a sliding operation is performed on the direction key in response, the moving direction of the target virtual character is continuously adjusted, the direction key is controlled to move on a graphical user interface along with the sliding operation, and when the direction key moves to the position of the prop prompt icon, the target prop is controlled to be released, including:
under the condition of touch operation on a direction key, responding to sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move on a graphical user interface along with the sliding operation, and when the direction key moves to the position of the prop prompt icon, adjusting the prop prompt icon from a first display animation to a second display animation and controlling the target prop to be released.
Optionally, the direction key and the prop prompt icon are located in a left area of the graphical user interface, and a distance between the prop prompt icon and the direction key is smaller than a preset distance.
Optionally, the sliding parameter includes any one or more of the following parameters:
sliding distance, sliding position, sliding direction, sliding speed and sliding time length.
Optionally, controlling the target prop to release includes:
obtaining an action object of the target prop;
if the action object is a target virtual character, controlling the target virtual character to accelerate;
and if the action object is other virtual characters, controlling the other virtual characters to decelerate.
Optionally, the direction key includes:
a left turn button and a right turn button;
or, the direction key includes: skip button and crawl button.
Optionally, the method further includes:
and when the touch point of the sliding operation disappears in the graphical display interface, responding to the end of the sliding operation, and restoring the initial position of the direction key.
In a second aspect, an embodiment of the present application provides a prop control apparatus, where at least a part of a racing game scene and a direction key for controlling a moving direction of a target virtual character are displayed through a graphical user interface provided by a terminal device, where the game scene includes the target virtual character, and the prop control apparatus includes:
the adjusting module is used for responding to touch operation aiming at the direction key and adjusting the moving direction of the target virtual character;
and the release module is used for responding to the sliding operation aiming at the direction key under the condition of performing touch operation aiming at the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of the sliding operation meets the preset requirement.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, performs the steps of the above method.
According to the method for controlling the prop, firstly, a touch operation aiming at a direction key is responded, and the moving direction of the target virtual character is adjusted; and then, under the condition of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of the sliding operation meets the preset requirement.
In a certain embodiment, according to the method provided by the application, the user can directly realize the release of the target prop based on the sliding operation of the direction key under the condition of the touch operation of the direction key, namely, the release of the target prop is realized under the condition that the moving direction of the target virtual character is not influenced, so that the release efficiency of the target prop is improved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flow chart of a method for controlling a prop according to an embodiment of the present disclosure;
fig. 2 is a schematic view of a game scene of multiple virtual characters according to an embodiment of the present disclosure;
fig. 3 is a schematic view of a game scene of a single virtual character according to an embodiment of the present disclosure;
fig. 4a is a schematic diagram illustrating a first prop prompt icon provided in the embodiment of the present application;
fig. 4b is a schematic diagram illustrating a second prop-prompting icon provided in the embodiment of the present application;
fig. 5a is a schematic view of a third prop prompt icon provided in this application embodiment;
fig. 5b is a schematic diagram illustrating a third prop prompt icon provided in this embodiment of the application;
FIG. 6 is a schematic diagram of a drifting game scenario provided by an embodiment of the present application;
fig. 7 is a schematic structural diagram of a device for controlling a prop according to an embodiment of the present disclosure;
FIG. 8 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure;
FIG. 9 is a schematic diagram of a competition game scene according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In the present day with the continuous development of science and technology, people pursue leisure and recreation more and more, and in the leisure time, people can use games to play time, and in various games, the game type of racing games becomes the choice of most people. In the racing game, in order to improve the complexity of the game and attract more users, a game operator can usually display a prop prompt icon in a graphical user interface, and the prop release is realized by the touch of the user on the prop prompt icon, so that a virtual character in a game scene displays a corresponding animation according to the released prop, and the interactivity between the user and the virtual character can be increased by the display of the prop prompt icon, and the interest of the game is also improved. The property prompt icon is an icon used for representing a property, a user can release the property in a game scene by triggering the property prompt icon, the property corresponding to the property prompt icon can act on a virtual character and generate matched effects (the effects can be acceleration, deceleration, flying, attacking, slipping, covering the visual field, resisting the attack and the like), and the property prompt icon can be a graph matched with the released property (the graph matched with the property can be a character graph, a nitrogen graph, a missile graph, a balloon graph, a lightning graph, a tornado graph, a banana skin graph, a cloud and fog graph, a shield graph and the like).
Under a general condition, the prop prompt icon is arranged in a left area or a right area of the graphical user interface, and when a user wants to release the prop, the user needs to click the prop prompt icon, so that the release of the prop is realized. When two hands of a user simultaneously touch other keys except the prop prompt icon, the user only stops the touch of one hand on the other keys when the user wants to release the prop, and the current hand is used for realizing the touch of the prop prompt icon so as to release the prop.
The inventor of the present application finds that there are certain disadvantages in the above manner of releasing the prop, mainly: in some cases, when the user releases the prop, the touch of other prop prompt icons is terminated, and the prop prompt icon and other keys can be triggered only by one key, so that the moving efficiency of the virtual character in the game scene is reduced.
For the reasons, the inventor of the present application thinks that, under the touch operation of the direction key by the user, the sliding operation of the direction key by the user is responded, so that the release of the prop can be realized without affecting the direction control of the virtual character by the user, and the moving efficiency of the virtual character in the game scene is improved.
Based on this, as shown in fig. 1, an embodiment of the present application provides a method for controlling props, where at least a part of a racing game scene and a direction key for controlling a moving direction of a target virtual character are displayed through a graphical user interface provided by a terminal device, and the game scene includes the target virtual character, including:
s101, responding to touch operation aiming at a direction key, and adjusting the moving direction of a target virtual character;
s102, under the condition of touch operation aiming at the direction key, responding to the sliding operation aiming at the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of the sliding operation meets the preset requirement.
The terminal device mentioned in the present application mainly refers to an intelligent device that is used for displaying a game screen and can control and operate a virtual character, and the terminal device may include any one of the following devices: smart phones, tablet computers, notebook computers, desktop computers, and the like. The terminal device may include a device capable of calculating the control instruction and a device incapable of calculating the control instruction, and after receiving the control instruction input by the user, the device capable of calculating the control instruction calculates the control instruction and then controls the virtual character according to the control instruction; the device which cannot calculate the control instruction can upload the control instruction to the cloud server after receiving the control instruction, and after receiving a processing result of the control instruction by the cloud server, control the virtual role according to the processing result. The graphical user interface is an interface for displaying a game screen on a display screen of the terminal device. The racing game scene is a virtual space for bearing virtual characters, the virtual characters can move under the control of operation instructions issued by users to the terminal equipment in the racing game scene, and the racing game scene can comprise any one or more of the following elements: game background elements, game virtual character elements, game prop elements, and the like. The racing games refer to games for playing spelling in fair and fair game platforms, and mainly comprise games such as 'carting car race' and '3D high-speed racing car'. The direction button shows in graphical user interface, can let the user adjust the direction of movement of the mesh virtual character in the game scene of racing through the direction button, and is specific, and the user can control target virtual character through the touch-control to the direction button and make in the game scene of racing with by the direction button assorted action of touch-control, and the direction button includes: a left turn button and a right turn button; or, the direction key includes: skip button and crawl button. The left turn button and the right turn button are arranged relatively, in order to make the game scene more reasonable, the virtual character cannot have only one moving direction except for forward movement in the game scene, and therefore the left turn button and the right turn button are arranged relatively in the graphical user interface. The left turn button can control the virtual character to turn left, and the right turn button can control the virtual character to turn right. Similarly, in order to make the game scene more reasonable, the virtual character cannot have only one moving direction except for forward movement in the game scene, and therefore, a jump key or a creep key is arranged in the game scene. The jumping key can control the virtual character to jump over the obstacle, the creeping key can control the virtual character to penetrate through the obstacle, the jumping key and the creeping key are both used for controlling the virtual character to avoid the obstacle, the jumping key or the creeping key can be independently arranged in the graphical user interface, the game is richer, interestingness and challenge of the game are increased, the jumping key and the creeping key can be oppositely arranged in the graphical user interface, and the difficulty of direction control of the virtual character in a game scene is increased. Further, in order to make the game more interesting and challenging, the left-turn button, the right-turn button, the skip button and the creep button may be simultaneously arranged in the graphical user interface. The target virtual character generally refers to a virtual character controlled by a target user (a user who issues an operation instruction to a terminal device to complete wearing of the target virtual character) through the terminal device. Of course, other virtual characters may also be included in the race game scene, and the other virtual characters generally refer to virtual characters controlled by terminal devices used by other users (users other than the target user). Of course, in some cases, both the target avatar and the other avatars may be controlled by the same user.
The racing game scene refers to a virtual scene (such as a certain space in a game) used in a normal game playing process, and a large number of virtual characters (such as other virtual characters and target virtual characters) controlled by different users can exist in the scene. The game scenes of the scenes comprise: a multi-virtual-character racing scene, a single-virtual-character racing scene, and the like. The multi-virtual character refers to a character including at least two virtual characters (such as other virtual characters and a target virtual character), specifically, one of the at least two virtual characters is the target virtual character, and more specifically, the at least two virtual characters may be controlled by the same target user, or the at least two virtual characters include a virtual character controlled by the target user and a virtual character controlled by another user. The multi-virtual-character racing scene refers to a scene comprising at least two virtual characters, wherein multiple virtual characters (including a target virtual character and other virtual characters) are pieced together according to the moving speed, and specifically, as shown in fig. 2, the multiple virtual characters move in a game scene at the same time. The single virtual character racing scene means that only one virtual character plays a game alone, and specifically, as shown in fig. 3, only the target virtual character moves in the game scene.
In step S101, the touch operation is an operation of a user on a direction key displayed in a graphical user interface of the terminal device, after the user touches the direction key, the system generates a control instruction for the user to control a moving direction of the target virtual character, the system can adjust the moving direction of the target virtual character in the racing game scene based on the generated control instruction, and further execute step S102, where in the case of controlling the moving direction of the target virtual character, the release of the target property is realized.
In step S102, the sliding operation is a sliding of a touch point between a user and the graphical user interface in the graphical user interface, specifically, the touch point does not leave the graphical user interface between a sliding start position and a sliding end position, the sliding operation of the touch point in the graphical user interface generates a sliding parameter, the sliding parameter may be embodied in the form of data, specifically, the sliding parameter may represent a sliding situation of the sliding operation in the graphical user interface, and the sliding parameter may include any one or more of the following parameters: sliding distance, sliding position, sliding direction, sliding speed and sliding time length. The sliding distance may be a distance between the sliding operation and a sliding start position from the sliding start position to the sliding end position, the sliding start position may be an initial contact position of the touch point with the graphical user interface in the sliding operation, and the sliding end position may be a final contact position of the touch point with the graphical user interface in the sliding operation. The sliding position may be a current position of the touch point in the sliding operation. The sliding direction refers to a moving direction of the touch point in the graphical user interface, that is, a direction in which a sliding start point position points to a sliding end point position in the sliding operation. The sliding speed may be a speed of movement of the touch point in the graphical user interface. The sliding time length may be a time length taken for the touch point to move from the sliding start point position to the sliding end point position. A touch point is a point of contact between a user and a graphical user interface.
In a specific implementation, when the user performs a touch operation on the direction key, the user slides with respect to the direction key, and a touch point between the user and the graphical user interface does not leave the graphical user interface, which indicates that the touch operation of the user with respect to the direction key has not been terminated, so that the system continues to control the moving direction of the target virtual character according to the touch operation of the user on the direction key. The touch operation of the user on the direction key is fixed, because the user may be in an active state at any time, and it cannot be guaranteed that each action of the user is very standard, so that the user slides the direction key under the condition of performing the touch operation on the direction key, which may not be actively caused by the user (for example, the user is touched by other people during the touch operation on the direction key), and in order to reduce the influence of the sliding operation caused by the misoperation on the game, the system can control the target prop to release only under the condition that the sliding parameter of the sliding operation meets the preset requirement.
For example, when the user performs a touch operation on the direction key, if the sliding direction of the sliding operation of the user on the direction key is upward, the control target prop is released. When the user performs touch operation on the direction key, the user is collided by other users, and the sliding direction of the sliding operation of the user on the direction key is rightward, so that the target prop cannot be released. When the user performs touch operation on the direction key, the user actively slides the direction key, and the sliding direction of the sliding operation at this time is upward, so that the target prop is released.
In the scheme of the application, through the steps S101 to S102, the user can directly realize the release of the target prop based on the sliding operation of the direction key under the condition of the touch operation of the direction key, so that the user can control the direction key and also control the release of the target prop, that is, under the condition that the moving direction of the target virtual character is not influenced, the release of the target prop is realized, and the release efficiency of the target prop is improved.
When the target prop is released, the target prop is not released by any convenient sliding operation, the target prop can be released only by a specified sliding operation, and the specified sliding operation needs one or more conditions to be restricted, so that the step S102 includes:
step 1021, in the case of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuing to adjust the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of the touch point of the sliding operation meets the preset requirement.
In the step 1021, the sliding parameter meeting the preset requirement may be a certain sliding parameter or a plurality of sliding parameters reaching a preset value.
In a specific implementation, the data in the sliding parameter may represent a sliding operation of the touch point in the graphical user interface. Therefore, the sliding parameter meets the preset requirement, that is, the sliding parameter of the touch point of the sliding operation meets the preset requirement. When the sliding operation of the user for the direction key is detected, the sliding parameters of the touch points can be obtained, the sliding parameters are compared with the numerical values in the preset requirements, and only when the sliding parameters reach the numerical values in the preset requirements, the system can control the target prop to be released. The sliding parameters may include any one or more of parameters such as a sliding distance, a sliding position, a sliding direction, a sliding speed, a sliding time length, and the like, however, in a general situation, the release of the target prop requires a user to touch a fixed position preset by a game developer in a graphical user interface, and only when the sliding position parameter in the sliding operation of the user is used alone, the sliding position parameter can be used as a reference value for determining whether to release the target prop. The four parameters of the sliding distance, the sliding direction, the sliding speed and the sliding time length cannot be used as a reference value to determine whether the target prop is released or not. Because the sliding distance is only a distance value, if the target prop is released or not is determined by using the parameter, the target prop can be released as long as the sliding distance of the touch point to any direction meets the preset requirement, the target prop is released in the manner of releasing the target prop, and the target prop can be released with high probability due to an unexpected condition (the sliding operation of the user caused by the touch of other people), so that the sliding distance can be used in combination with other sliding parameters to determine whether the prop is released or not. The sliding direction is only one direction, and whether the target prop is released or not is determined only by the sliding direction, so that the target prop can be released as long as the touch point slides to the preset sliding direction no matter how far the sliding distance is, and if the touch point slides along the preset sliding direction for a short distance (e.g. 1 mm) only because the user does not fix the touch point, the target prop can also be released, which easily causes the mistaken release of the target prop, and therefore, it is not appropriate to determine the release of the target prop only by the sliding direction. As can be seen from the above discussion, if the preset requirement is defined by the two sliding parameters of the sliding distance and the sliding direction, the range of the sliding parameter capable of releasing the target prop is reduced, so that the user needs to control the sliding distance and the sliding direction to make the sliding position meet the preset requirement, thereby reducing the release of the target prop caused by accidental operation of the user and improving the accuracy of releasing the target prop.
The sliding speed is only one speed value, whether the target prop is released or not is determined through the sliding speed, and the user can realize the sliding operation with the sliding speed meeting the preset requirement in any sliding direction, so that the probability that the user can realize the release of the target prop is very high, the target prop is likely to be released due to misoperation of the user in the mode of releasing the target prop, and in order to reduce the release of the target prop due to misoperation, one or more sliding parameters can be added to further limit the release of the target prop. When the touch point can reach the preset position by controlling the sliding speed and the sliding direction, the release of the target prop is realized, and compared with the release of the target prop only by the sliding speed, the probability that the user can realize the release of the target prop is smaller, so that the release of the target prop caused by misoperation is reduced. Similarly, the combination of the sliding speed and the sliding time length cannot preset the sliding value of the touch point, and therefore, the combination of the sliding speed and the sliding time length to release the target prop is not reasonable. The combination of the sliding speed and the sliding distance cannot preset the sliding value of the touch point, and therefore, the combination of the sliding speed and the sliding distance is not reasonable for releasing the target prop.
The sliding time length is only one time length, a long sliding distance can be achieved within the same sliding time length, a short sliding distance can be achieved, and the ratio of the sliding distance to the sliding time length is the sliding speed, so that the sliding time length cannot be used for controlling the release of the target prop. The sliding distance can be calculated through the combination of the sliding time length and the sliding speed, and the sliding position can be determined through the combination of the sliding distance and the sliding direction, so that the release of the target prop can be controlled through three sliding parameters of the sliding time length, the sliding speed and the sliding direction.
In the step 1021, when the user performs the touch operation on the direction key, the user may further perform a sliding operation on the direction key, that is, the user performs a secondary operation (i.e., a sliding operation) on the direction key without leaving the graphical user interface at the touch point of the user, at this time, the control of the user on the moving direction of the target virtual character is not affected, the system may further obtain the sliding parameter of the touch point of the user in the graphical user interface, the system compares the obtained sliding parameter with the preset sliding parameter, if the obtained sliding parameter meets the preset sliding parameter, the target prop may be released, and if the obtained sliding parameter does not meet the preset sliding parameter, the target prop may not be released.
In order to enable the user to release the target prop more accurately, a prop prompt icon is displayed in the graphical user interface, in the conventional technical scheme, the user can only realize the release of the target prop by clicking the prop prompt icon, but in the scheme, step 1021 includes:
step 10211, when the direction key is touched, responding to the sliding operation of the direction key, continuing to adjust the moving direction of the target virtual character, and controlling the target prop to release when the touch point of the sliding operation slides to the position of the prop prompt icon.
In the above step 10211, a property prompt icon is displayed at a preset distance in the vertical direction; the vertical direction may be a direction perpendicular to a line between the left turn key and the right turn key, and of course, the vertical direction may also be a direction perpendicular to a line between the jump key and the crawl key. The prop prompt icon is an icon used for representing a prop, the prop can be released in a racing game scene through the operation of a user on the prop prompt icon, the prop prompt icon can be a graph matched with the released prop (for example, the acceleration prop can be represented by a graph of an oil drum), and the detailed meaning of the prop prompt icon is consistent with that of the prop prompt icon described above.
Step 10211 is specifically implemented, when the user performs a touch operation on the direction key, the user may further perform a sliding operation on the direction key, that is, when the touch point of the user does not leave the gui, the direction key is performed a second time (i.e., a sliding operation), at this time, the user may not affect the control of the moving direction of the target virtual character, the system may obtain the sliding position of the touch point of the user in the gui, and when the obtained sliding position is the prop prompt icon position, the target prop may be released. Certainly, the stage property suggestion icon position is not a point, if the stage property suggestion icon position is come only with the position of a point, that user is very difficult accurate find stage property suggestion icon position, will influence the release efficiency who leads to target stage property like this, in order to improve the release efficiency of target stage property, can set up an area scope with stage property suggestion icon position, when the position of touch-control point arrived the area scope of stage property suggestion icon position, target stage property will be released, do not need the user to seek a particularly accurate position, user's operating efficiency has been improved.
When the user slides in graphical user interface, the touch point can follow the sliding operation and remove, but, the direction button is an independent icon, in order to distinguish whether the user is the stage property release that realizes through clicking stage property suggestion icon, still through the stage property release that realizes to the sliding operation of direction button, this application distinguishes through can mode, and step 10211 includes:
and 102111, under the condition of touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move on the graphical user interface along with the sliding operation, and controlling the target prop to release when the touch point of the sliding operation slides to the position of the prop prompt icon.
In step 102111, when the user performs the touch operation on the directional key, the user may also perform a sliding operation on the directional key, that is, the user performs a secondary operation (i.e., a sliding operation) on the directional key without leaving the graphical user interface, at this time, the user may not affect the control of the moving direction of the target virtual character, and at the same time, the directional key may move along with the sliding operation, that is, the directional key may move along with the touch point, so that it is clear to see that the directional key may leave from the initial position of the directional key, the system may monitor the sliding position of the touch point, and when it is determined that the sliding position reaches the position of the property prompt icon, that is, the directional key also reaches the position of the property prompt icon along with the touch point, and then the target property is controlled to be released. Through the mode of releasing the target prop, the target prop can be clearly released when the direction key is moved to the position of the prop prompt icon. Therefore, the target prop can be clearly observed, when the target prop is released, whether the moving direction of the target virtual role is controlled or not can be controlled, and the user can control the target virtual role more accurately.
In order to more clearly observe whether the direction key is moved or not, the initial position of the direction key may be displayed as a pattern with a darker color, and the pattern of the direction key that may be dragged may be displayed as a more vivid pattern.
Whether the prop is released can be determined by observing the game scene, however, sometimes the picture in the game scene is relatively cluttered and the user cannot clearly observe the prop, and in order to enable the user to quickly determine whether the target prop is released, step 10211 includes:
step 102112, under the condition of touch operation for the direction key, responding to the sliding operation for the direction key, continuing to adjust the moving direction of the target virtual character, and when the touch point of the sliding operation slides to the position of the prop prompt icon, adjusting the prop prompt icon from the first display animation to the second display animation, and controlling the target prop to release.
In step 102112, the first animation may be the animation displayed when the target prop is not released, i.e. the prop prompt icon is normally displayed. The second display animation may be an animation displayed when the target prop is released, for example, the color of the prop prompt icon is deepened, the brightness of the prop prompt icon is increased, the frame of the prop prompt icon is shaded, and the like.
During specific implementation, the user can also slide the direction key under the condition of performing touch operation on the direction key, namely, the touch point of the user does not leave the graphical user interface, the direction key is subjected to secondary operation (namely, sliding operation), at the moment, the control of the user on the moving direction of the target virtual character cannot be influenced, the system can acquire the sliding position of the touch point of the user in the graphical user interface, when the acquired sliding position is the position of the prop prompt icon, the target prop can be released, meanwhile, the system can also adjust the display mode of the prop prompt icon, and the display mode is adjusted to another display mode from one animation display mode. Through the adjustment to the display mode of stage property suggestion icon, can let the user more clearly whether present target stage property is being released, when the user thinks oneself releasing stage property and the reality is not releasing the stage property, can realize the quick release of stage property, when the user thinks oneself not releasing stage property and the reality is because the maloperation releases the stage property, can realize the quick end of stage property release, improved user's operating efficiency.
When the user performs a sliding operation on the direction key, the direction key may move in the graphical user interface according to the sliding operation, and therefore, step S102 includes:
and 1022, in the case of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuing to adjust the moving direction of the target virtual character, controlling the direction key to move on the graphical user interface along with the sliding operation, and controlling the target prop to release when the moving parameter of the direction key meets a preset requirement.
In the step 1022, the movement parameter may be used to characterize the movement of the direction key, and the movement parameter may include any one or more of the following parameters: a movement distance, a movement position, a movement direction, a movement speed, and a movement time length.
The data in the movement parameters can represent the movement operation of the direction key in the graphical user interface. Therefore, the movement parameter meets the preset requirement, that is, the movement parameter of the direction key moving along with the sliding operation meets the preset requirement. When the sliding operation of the user on the direction key is detected, the system can obtain the moving parameters of the direction key, the moving parameters are compared with the numerical values in the preset requirements, and only when the moving parameters reach the numerical values in the preset requirements, the system can control the target prop to be released. The movement parameters may include any one or more of parameters such as a movement distance, a movement position, a movement direction, a movement speed, a movement time length, and the like, however, in a general case, the release of the target prop requires that a user touch a fixed position preset by a game developer in a graphical user interface, and only when the movement position parameters in the movement operation of the user are used alone, the parameters can be used as reference values for determining whether the target prop is released. The four parameters of the moving distance, the moving direction, the moving speed and the moving time length cannot be used as a reference value to determine whether the target prop is released or not. Because the moving distance is only a distance value, if the target prop is released or not is determined by using the parameter, the target prop can be released as long as the moving distance of the direction key to any direction meets the preset requirement, the target prop is released in the manner of releasing the target prop, and the target prop can be released due to an accident (the user is touched by other people to perform the moving operation), so that the moving distance can be used in combination with other moving parameters to determine whether the prop is released or not. The moving direction is only one direction, and whether the target prop is released or not is determined only by the moving direction, the target prop can be released as long as the direction key moves to the preset moving direction no matter how far the moving distance is, and if the direction key moves a short distance (e.g. 1 mm) along the preset moving direction just because the user does not fix the direction key, the target prop can also be released, which easily causes the wrong release of the target prop, so that it is not appropriate to determine the release of the target prop only by the moving direction. As can be seen from the above discussion, if the preset requirement is defined by the two movement parameters of the movement distance and the movement direction, the movement parameter range capable of releasing the target prop is narrowed, so that the user needs to control the movement distance and the movement direction to make the movement position meet the preset requirement, thereby reducing the release of the target prop caused by accidental operation of the user and improving the accuracy of releasing the target prop.
The moving speed is only one speed value, whether the target prop is released or not is determined through the moving speed, and the user can realize the moving operation with the moving speed meeting the preset requirement in any moving direction, so that the probability that the user can realize the release of the target prop is very high, the target prop is likely to be released due to misoperation of the user in the target prop releasing mode, and in order to reduce the release of the target prop due to misoperation, one or more moving parameters can be added to further limit the release of the target prop. When the direction key can reach the preset position by controlling the moving speed and the moving direction, the release of the target prop is realized, and compared with the release of the target prop only by the moving speed, the probability that the user can realize the release of the target prop is smaller, so that the release of the target prop caused by misoperation is reduced. Similarly, the combination of the moving speed and the moving time length cannot preset the moving value of the direction key, and therefore, the combination of the moving speed and the moving time length to release the target prop is not reasonable. The combination of the moving speed and the moving distance cannot preset the moving value of the direction key, and therefore, the combination of the moving speed and the moving distance to release the target prop is not reasonable.
The moving time length is only one time length, a long moving distance can be achieved within the same moving time length, a short moving distance can be achieved, and the ratio of the moving distance to the moving time length is the moving speed, so that the moving time length cannot be used for controlling the release of the target prop. The moving distance can be calculated by combining the moving time length and the moving speed, and the moving position can be determined by combining the moving distance and the moving direction, so that the release of the target prop can be controlled by three moving parameters, namely the moving time length, the moving speed and the moving direction.
The user can also perform sliding operation on the direction key under the condition that the user performs touch operation on the direction key, namely, the user performs secondary operation (namely sliding operation) on the direction key under the condition that a touch point of the user does not leave a graphical user interface, at the moment, the control of the moving direction of the target virtual character by the user is not influenced, meanwhile, the direction key moves along with the sliding operation, namely, the direction key moves along with the touch point, so that the user can clearly see that the direction key leaves from the initial position of the direction key, meanwhile, the system can monitor the moving parameter of the direction key according to a certain position of the direction key (such as the upper left corner position of the direction key, the upper right corner position of the direction key and the like), the system compares the obtained moving parameter with the preset moving parameter, and if the obtained moving parameter accords with the preset moving parameter, the target prop is released, and if the obtained movement parameters do not accord with the preset movement parameters, the target prop is not released.
In order to enable the user to release the target prop more accurately, a prop prompt icon is displayed in the graphical user interface, in the conventional technical scheme, the user can only realize the release of the target prop by clicking the prop prompt icon, but in the scheme, step 1022 includes:
step 10221, in the case of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuing to adjust the moving direction of the target virtual character, controlling the direction key to move on the graphical user interface along with the sliding operation, and controlling the target prop to release when the direction key moves to the position of the prop prompt icon.
In the above step 10221, a property prompt icon is displayed at a preset distance in the vertical direction; the vertical direction may be a direction perpendicular to a line between the left turn key and the right turn key, and of course, the vertical direction may also be a direction perpendicular to a line between the jump key and the crawl key. The prop prompt icon is an icon used for representing the prop, the prop can be released in a racing game scene through the operation of the prop prompt icon by a user, and the prop prompt icon can be a graph matched with the released prop (for example, the acceleration prop can be represented by a graph of an oil drum).
Step 10221 is specifically implemented, when the user performs a touch operation on the direction key, the user may further perform a sliding operation on the direction key, that is, when the touch point of the user does not leave the gui, the user performs a secondary operation (i.e., a sliding operation) on the direction key, at this time, the user may not influence the control of the moving direction of the target virtual character, the system may obtain the moving position of the direction key in the gui, and when the obtained moving position is the prop prompt icon position, the target prop may be released. Certainly, prop suggestion icon position is not a point, if only come the stage property suggestion icon position with the position of a point, that user is very difficult accurate find stage property suggestion icon position, will influence the release efficiency who leads to target stage property like this, in order to improve the release efficiency of target stage property, can set up an area scope with stage property suggestion icon position, when the position of direction button reachs the area scope of stage property suggestion icon position, target stage property will be released, do not need the user to seek a particularly accurate position, user's operating efficiency has been improved.
Whether the prop is released can be determined by observing the game scene, however, sometimes the picture in the game scene is relatively cluttered and the user cannot clearly observe the prop, and in order to enable the user to quickly determine whether the target prop is released, step 10221 includes:
and 102211, under the condition of touch operation for the direction key, responding to the sliding operation for the direction key, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move along with the sliding operation on the graphical user interface, and when the direction key moves to the position of the prop prompt icon, adjusting the prop prompt icon from the first display animation to the second display animation and controlling the target prop to release.
In step 102112, the first animation may be the animation displayed when the target prop is not released, i.e. the prop prompt icon is normally displayed. The second display animation may be an animation displayed when the target prop is released, for example, the color of the prop prompt icon is deepened, the brightness of the prop prompt icon is increased, the frame of the prop prompt icon is shaded, and the like.
When the system is specifically implemented, the user can also perform sliding operation on the direction key under the condition that the user performs touch operation on the direction key, namely, the user performs secondary operation (namely sliding operation) on the direction key under the condition that a touch point of the user does not leave the graphical user interface, at the moment, the user can not influence the control of the moving direction of the target virtual character, the system can acquire the moving position of the direction key of the user in the graphical user interface, when the acquired moving position is the position of the prop prompt icon, the target prop can be released, meanwhile, the system can also adjust the display mode of the prop prompt icon, and the display mode is adjusted to another display mode from one animation display mode. Through the adjustment to the display mode of stage property suggestion icon, can let the user more clearly whether present target stage property is being released, when the user thinks oneself releasing stage property and the reality is not releasing the stage property, can realize the quick release of stage property, when the user thinks oneself not releasing stage property and the reality is because the maloperation releases the stage property, can realize the quick end of stage property release, improved user's operating efficiency.
Can know through the above, can show direction button and stage property suggestion icon simultaneously in graphical user interface, and in this scheme, the user just can realize the release of target stage property through the sliding operation to the direction button, and for convenience of user's operation, the distance between stage property suggestion icon and the direction button is less than preset distance, and is more specific, can show direction button and stage property suggestion icon in graphical user interface's left side region. The display mode of the direction key and the prop prompt icon can comprise any one of the following modes:
when the direction keys are arranged transversely, prop prompt icons can be displayed on the upper part and the lower part of the direction keys (as shown in fig. 4a and 4 b);
or, when the direction keys are arranged longitudinally, the prop prompt icon may be displayed on the left and right parts of the direction keys (as shown in fig. 5a and 5 b).
In the racing game scenario, the game principle is very simple, it is only necessary to increase the speed of the target virtual character controlled by the user as much as possible, and it is also possible to decrease the speed of other virtual characters controlled by other users, and it is also a turning speed that the target character is increased, so in step S102, the target property is released, which includes:
step 1020, obtaining an action object of the target prop;
if the action object is a target virtual character, controlling the target virtual character to accelerate;
and if the action object is other virtual characters, controlling the other virtual characters to decelerate.
In step 1020, the contributing object may be a virtual character that can be affected when the target prop is released. The target prop can be a prop for controlling the acceleration of a target virtual character controlled by a user, and can also be a prop for controlling the deceleration of other virtual characters except the target virtual character.
When the effect object of the target prop is determined to be touched, the system can acquire the effect object of the target prop, and the speed of which virtual role the target prop should control is determined according to the effect object of the target prop, so that when the effect object is determined to be the target virtual role, the target virtual role is controlled to accelerate, and when the effect object is determined to be other virtual roles, the other virtual roles are controlled to decelerate.
After the target prop is released, the prop can be released forever without limitation, and the prop released at an inappropriate time can influence the moving efficiency of the target virtual character, so that the touch control of the target prop is finished timely, and the touch control of the target prop can be finished by any one of the following modes:
the touch point of the sliding operation disappears in the graphical display interface, the stay time of the touch point of the sliding operation at the position of the prop prompt icon reaches the preset time length, and the touch point of the sliding operation leaves the position of the prop prompt icon.
After the direction button moves along with the sliding operation, for the pleasing to the eye of graphical user interface, after the sliding operation, need restore the direction button to original position, consequently, the scheme of this application still includes:
and 103, when the touch point of the sliding operation disappears in the graphical display interface, responding to the end of the sliding operation, and restoring the initial position of the direction key.
In step 103, the initial position is the position of the direction key when it is not triggered.
In a specific implementation, when the touch point of the sliding operation disappears in the graphical display interface, it indicates that the user does not control the target virtual character, at this time, the sliding operation is finished, and for the sake of the attractiveness of the graphical user interface, and also for the purpose of reducing the need for returning the direction to the initial position, the user thinks that the property prompt icon is still being triggered at this time. The graphical user interface can be tidier, the phenomenon that the user mistakenly thinks that the target prop is released at the moment is reduced, and the playability of the game is improved.
The graphical user interface further includes a drift key, and in order to facilitate user operation, the drift key and the direction key are disposed in different regions, that is, the drift key is disposed in a right region of the graphical user interface, and step S102 includes:
and 1023, under the condition of touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, controlling the target prop to release when the sliding parameter of the sliding operation meets the preset requirement, and controlling the target virtual character to perform a drifting action matched with the moving direction in response to the touch operation on the drifting key.
In the step 1023, in the case that the user triggers the direction key and the drift key simultaneously in the racing game scene, the target virtual character can be controlled to implement the drift action.
In specific implementation, when a user performs touch operation on a direction key, the user slides the direction key, the user does not leave the graphical user interface with a touch point of the graphical user interface, which indicates that the touch operation of the user on the direction key has not been suspended, and the user can perform secondary operation (namely sliding operation) on the direction key without leaving the graphical user interface with the touch point, at this time, the control of the user on the moving direction of the target virtual character is not affected, the system can acquire a sliding parameter of the sliding operation, and when the acquired sliding parameter conforms to a preset sliding parameter, the target prop can be released. Meanwhile, the system also needs to respond to the touch operation of the user on the drift key (the touch operation on the drift key can be clicking on the drift key), at this time, the system acquires a drift instruction and a moving direction (the moving direction is determined according to the direction key triggered by the user) which meet the necessary conditions of the drift, and therefore, according to the drift instruction and the moving direction, the system can control the target virtual character to make a drift action matched with the moving direction. In the method, the user realizes the release of the prop in the drifting process by simultaneously controlling the direction key, the prop prompt icon and the drifting key, and the release of the target prop can be realized without interrupting the touch operation of the direction key or the drifting key by the user, so that the release efficiency of the target prop is improved.
For example, as shown in fig. 6, in the graphical user interface, the direction key and the property prompt icon display a left region, the property prompt icon includes an acceleration prompt icon and a deceleration prompt icon, the drift key is displayed in a right region of the graphical user interface, after the user touches the right turn key, the user moves the right turn key to the position of the acceleration prompt icon through sliding operation, and meanwhile, the user also touches the drift key, so that the right drift of the virtual vehicle is realized. Under the touch control of the user on the right turn key, the color of the right turn key is deepened, under the touch control of the user on the acceleration prop icon, the color of the acceleration prompt icon is deepened, and under the touch control of the user on the drift key, the color of the drift key is deepened.
To understand the solution of the present application in more detail, as shown in fig. 9, the present application further provides a game scenario of a competition of multiple virtual characters, where the game scenario includes two virtual characters, namely a virtual character a and a virtual character B, and the current mobile terminal controls the virtual character a and the virtual character B is controlled by other mobile terminals. The left area is displayed by the direction keys and the prop prompt icons in the graphical user interface, the prop prompt icons comprise banana peel icons and candy icons, the effect corresponding to the banana peel icons is to control other virtual characters to slip, the effect corresponding to the candy icons is to control the target virtual characters to accelerate, and the direction keys comprise left-turning keys and right-turning keys. The graphical user interface also comprises a drift key, the drift key is displayed in the right area of the graphical user interface, and when a user controls the drift key and any direction key at the same time, a drift action consistent with the direction of the direction key can be generated. The user carries out touch operation on a right turn key of the current mobile terminal, and meanwhile, the user also carries out touch control on a drift key, so that the right drift of the virtual character A is realized. And the user moves the right turn key to the banana skin prompt icon through sliding operation, so that release of the banana skin prop is realized, the banana skin prop acts on the virtual character B to cause the virtual character B to skid, the original moving direction of the right turn is deviated, the color of the right turn key is deepened under the touch of the user on the right turn key, the color of the banana skin icon is deepened under the touch of the user on the banana skin icon, and the color of the drift key is deepened under the touch of the user on the drift key.
As shown in fig. 7, an embodiment of the present application provides a prop control apparatus, where at least a portion of a racing game scene and a direction key for controlling a moving direction of a target virtual character are displayed through a graphical user interface provided by a terminal device, where the game scene includes the target virtual character, and the prop control apparatus includes:
an adjusting module 701, configured to adjust a moving direction of the target virtual character in response to a touch operation for the direction key;
the releasing module 702 is configured to, in a case where the touch operation is performed on the direction key, respond to the sliding operation on the direction key, continue to adjust the moving direction of the target virtual character, and control the target prop to release when a sliding parameter of the sliding operation meets a preset requirement.
Optionally, the releasing module 702 includes:
and the first release unit is used for responding to the sliding operation of the user direction key under the condition that the user direction key performs the touch operation, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of the touch point of the sliding operation meets the preset requirement.
Optionally, the first releasing unit includes:
and the first release subunit is used for responding to the sliding operation of the user direction key under the condition that the user direction key performs the touch operation, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the touch point of the sliding operation slides to the position of the prop prompt icon.
Optionally, the first release subunit includes:
and the first position adjusting subunit is used for responding to the sliding operation of the user direction key under the condition that the user direction key performs the touch operation, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move along with the sliding operation on the graphical user interface, and controlling the target prop to release when a touch point of the sliding operation slides to the position of the prop prompt icon.
Optionally, the releasing unit includes:
and the first animation adjusting subunit is used for responding to the sliding operation of the direction key of the user under the condition that the direction key of the user performs the touch operation, continuously adjusting the moving direction of the target virtual character, adjusting the property prompting icon from the first display animation to a second display animation when the touch point of the sliding operation slides to the position of the property prompting icon, and controlling the target property to be released.
Optionally, the releasing module 702 includes:
and the second release unit is used for responding to the sliding operation of the user direction key under the condition that the user direction key performs the touch operation, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move along with the sliding operation on the graphical user interface, and controlling the target prop to release when the moving parameter of the direction key meets the preset requirement.
Optionally, the second releasing unit includes:
and the second position adjusting subunit is used for responding to the sliding operation of the user direction key under the condition that the user direction key performs the touch operation, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move along with the sliding operation on the graphical user interface, and controlling the target prop to release when the direction key moves to the position of the prop prompt icon.
Optionally, the second position adjustment subunit includes:
and the second animation adjusting subunit is used for responding to the sliding operation of the user direction key under the condition that the user direction key performs the touch operation, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move along with the sliding operation on the graphical user interface, adjusting the prop prompt icon from the first display animation to a second display animation when the direction key moves to the position of the prop prompt icon, and controlling the target prop to be released.
Optionally, the direction key and the prop prompt icon are in a left area of the graphical user interface, and a distance between the prop prompt icon and the direction key is smaller than a preset distance.
Optionally, the sliding parameters include any one or more of the following parameters:
sliding distance, sliding position, sliding direction, sliding speed and sliding time length.
Optionally, the release module 702 includes:
the acquisition unit is used for acquiring an action object of the target prop;
if the action object is a target virtual character, controlling the target virtual character to accelerate;
and if the action object is other virtual characters, controlling the other virtual characters to decelerate.
Optionally, the direction key includes:
a left turn button and a right turn button;
or, the direction key includes: skip button and crawl button.
Optionally, the apparatus further comprises:
and the ending module is used for responding to the ending of the sliding operation when the touch point of the sliding operation disappears in the graphical display interface and restoring the initial position of the direction key.
Corresponding to the method for controlling the prop in fig. 1, an embodiment of the present application further provides a computer device 800, as shown in fig. 8, the device includes a memory 801, a processor 802, and a computer program stored in the memory 801 and executable on the processor 802, where the processor 802 implements the method for controlling the prop when executing the computer program.
Specifically, the memory 801 and the processor 802 can be general memories and processors, which are not specifically limited herein, and when the processor 802 runs a computer program stored in the memory 801, the control method of the prop can be executed, so as to solve the problem in the prior art that the prop is released without affecting the adjustment of the movement direction of the virtual character.
Corresponding to the method for controlling the prop in fig. 1, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for controlling the prop are performed.
Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, and the like, when a computer program on the storage medium is executed, the method for controlling the prop can be executed, and the problem that the prop is released under the condition that the moving direction of the virtual character is not influenced in the prior art is solved.
In the embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The 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 such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure, which should be construed in light of the above teachings. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. A method for controlling props is characterized in that at least part of a racing game scene and a direction key used for controlling the moving direction of a target virtual character are displayed through a graphical user interface provided by a terminal device, the game scene comprises the target virtual character, and the method comprises the following steps:
responding to touch operation aiming at a direction key, and adjusting the moving direction of the target virtual character;
and under the condition of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of the sliding operation meets the preset requirement.
2. The method according to claim 1, wherein in a case of performing a touch operation with respect to a direction key, continuously adjusting a moving direction of the target virtual character in response to a sliding operation with respect to the direction key, and controlling the target prop to be released when a sliding parameter of the sliding operation meets a preset requirement, includes:
and under the condition of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of the touch point of the sliding operation meets the preset requirement.
3. The method of claim 2, wherein the direction keys comprise a left turn key and a right turn key, both of which are displayed on a graphical user interface; displaying a property prompt icon at a preset distance in the vertical direction; the vertical direction is perpendicular to the direction of a connecting line between the left-turn key and the right-turn key;
under the condition of performing touch operation on a direction key, responding to sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of a touch point of the sliding operation meets a preset requirement, wherein the step comprises the following steps of:
and under the condition of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when a touch point of the sliding operation slides to the position of the prop prompt icon.
4. The method according to claim 3, wherein in a case of performing a touch operation on a direction key, in response to a sliding operation on the direction key, continuing to adjust a moving direction of the target virtual character, and when a touch point of the sliding operation slides to a position of a prop prompt icon, controlling the target prop to release, comprises:
and under the condition of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move along with the sliding operation on a graphical user interface, and controlling the target prop to release when a touch point of the sliding operation slides to the position of the prop prompt icon.
5. The method according to claim 3, wherein in a case of performing a touch operation on a direction key, in response to a sliding operation on the direction key, continuing to adjust a moving direction of the target virtual character, and when a touch point of the sliding operation slides to a position of a prop prompt icon, controlling the target prop to release, comprises:
and under the condition of performing touch operation on the direction key, responding to the sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, and when the touch point of the sliding operation slides to the position of the prop prompt icon, adjusting the prop prompt icon from the first display animation to the second display animation, and controlling the target prop to be released.
6. The method according to claim 1, wherein in a case of performing a touch operation with respect to a direction key, continuously adjusting a moving direction of the target virtual character in response to a sliding operation with respect to the direction key, and controlling the target prop to be released when a sliding parameter of the sliding operation meets a preset requirement, includes:
under the condition of touch operation on a direction key, responding to sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move on a graphical user interface along with the sliding operation, and controlling the target prop to release when the moving parameter of the direction key meets a preset requirement.
7. The method of claim 6, wherein the direction keys comprise a left turn key and a right turn key, both of which are displayed on a graphical user interface; displaying a property prompt icon at a preset distance in the vertical direction; the vertical direction is perpendicular to the direction of a connecting line between the left-turn key and the right-turn key;
under the condition of performing touch operation on a direction key, responding to sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move on a graphical user interface along with the sliding operation, and controlling the target prop to release when the moving parameter of the direction key meets a preset requirement, wherein the step comprises the following steps:
under the condition of performing touch operation on a direction key, responding to sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move on a graphical user interface along with the sliding operation, and controlling the target prop to release when the direction key moves to the position of the prop prompt icon.
8. The method according to claim 7, wherein in a case of performing a touch operation on a direction key, in response to a sliding operation on the direction key, continuing to adjust a moving direction of the target virtual character, controlling the direction key to move on a graphical user interface following the sliding operation, and controlling the target prop to be released when the direction key moves to a position of the prop prompt icon, the method includes:
under the condition of touch operation on a direction key, responding to sliding operation on the direction key, continuously adjusting the moving direction of the target virtual character, controlling the direction key to move on a graphical user interface along with the sliding operation, and when the direction key moves to the position of the prop prompt icon, adjusting the prop prompt icon from a first display animation to a second display animation and controlling the target prop to be released.
9. The method according to any one of claims 5 and 8, wherein the direction key and the prop prompt icon are in a left region of the graphical user interface, and a distance between the prop prompt icon and the direction key is less than a preset distance.
10. The method of claim 1, wherein the slip parameters comprise any one or more of the following parameters:
sliding distance, sliding position, sliding direction, sliding speed and sliding time length.
11. The method of claim 1, wherein controlling the target prop to release comprises:
obtaining an action object of the target prop;
if the action object is a target virtual character, controlling the target virtual character to accelerate;
and if the action object is other virtual characters, controlling the other virtual characters to decelerate.
12. The method of claim 1, wherein the direction key comprises:
a left turn button and a right turn button;
or, the direction key includes: skip button and crawl button.
13. The method of claim 1, further comprising:
and when the touch point of the sliding operation disappears in the graphical display interface, responding to the end of the sliding operation, and restoring the initial position of the direction key.
14. A prop control device is characterized in that at least part of a racing game scene and a direction key used for controlling the moving direction of a target virtual character are displayed through a graphical user interface provided by a terminal device, the game scene contains the target virtual character, and the prop control device comprises:
the adjusting module is used for responding to touch operation aiming at the direction key and adjusting the moving direction of the target virtual character;
and the release module is used for responding to the sliding operation aiming at the direction key under the condition of performing touch operation aiming at the direction key, continuously adjusting the moving direction of the target virtual character, and controlling the target prop to release when the sliding parameter of the sliding operation meets the preset requirement.
15. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of the preceding claims 1-13 are implemented by the processor when executing the computer program.
16. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, is adapted to carry out the steps of the method of any one of the preceding claims 1 to 13.
CN202010546549.6A 2020-06-15 2020-06-15 Prop control method and device, computer equipment and medium Pending CN111729297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010546549.6A CN111729297A (en) 2020-06-15 2020-06-15 Prop control method and device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010546549.6A CN111729297A (en) 2020-06-15 2020-06-15 Prop control method and device, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN111729297A true CN111729297A (en) 2020-10-02

Family

ID=72649350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010546549.6A Pending CN111729297A (en) 2020-06-15 2020-06-15 Prop control method and device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN111729297A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193479A (en) * 2017-05-26 2017-09-22 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium
CN108837506A (en) * 2018-05-25 2018-11-20 网易(杭州)网络有限公司 Control method, device and the storage medium of virtual item in a kind of race games
US20190118078A1 (en) * 2017-10-23 2019-04-25 Netease (Hangzhou) Network Co.,Ltd. Information Processing Method and Apparatus, Storage Medium, and Electronic Device
CN109999499A (en) * 2019-04-04 2019-07-12 腾讯科技(深圳)有限公司 Object control method and apparatus, storage medium and electronic device
CN110270086A (en) * 2019-07-17 2019-09-24 网易(杭州)网络有限公司 The control method for movement and device of virtual role in a kind of game
CN111111190A (en) * 2019-12-17 2020-05-08 网易(杭州)网络有限公司 Interaction method and device for virtual characters in game and touch terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193479A (en) * 2017-05-26 2017-09-22 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium
US20190118078A1 (en) * 2017-10-23 2019-04-25 Netease (Hangzhou) Network Co.,Ltd. Information Processing Method and Apparatus, Storage Medium, and Electronic Device
CN108837506A (en) * 2018-05-25 2018-11-20 网易(杭州)网络有限公司 Control method, device and the storage medium of virtual item in a kind of race games
CN109999499A (en) * 2019-04-04 2019-07-12 腾讯科技(深圳)有限公司 Object control method and apparatus, storage medium and electronic device
CN110270086A (en) * 2019-07-17 2019-09-24 网易(杭州)网络有限公司 The control method for movement and device of virtual role in a kind of game
CN111111190A (en) * 2019-12-17 2020-05-08 网易(杭州)网络有限公司 Interaction method and device for virtual characters in game and touch terminal

Similar Documents

Publication Publication Date Title
US9849375B2 (en) Game program and game device
CN111905370B (en) Method and device for controlling virtual character in game, electronic equipment and storage medium
CN111185004A (en) Game control display method, electronic device, and storage medium
CN111905364A (en) Recommendation and purchase method of game virtual prop and electronic equipment
CN110812838A (en) Method and device for controlling virtual unit in game and electronic equipment
US11247129B2 (en) Information processing system, information processing apparatus, information processing server, storage medium and information processing method
CN111888766B (en) Information processing method and device in game, electronic equipment and storage medium
WO2022222592A9 (en) Method and apparatus for displaying information of virtual object, electronic device, and storage medium
CN111957041A (en) Map viewing method in game, terminal, electronic equipment and storage medium
CN113101635A (en) Virtual map display method and device, electronic equipment and readable storage medium
KR20240039111A (en) Method for providing item enhancement service in game
CN113952710A (en) Control method and device for screen-casting game, electronic equipment and storage medium
CN113559520A (en) Interactive control method and device in game, electronic equipment and readable storage medium
US20230330543A1 (en) Card casting method and apparatus, device, storage medium, and program product
CN112870701A (en) Control method and device of virtual role
CN111729297A (en) Prop control method and device, computer equipment and medium
CN113680062A (en) Information viewing method and device in game
CN109350967B (en) Expression display method and device, server and computer readable storage medium
CN113713373A (en) Information processing method and device in game, electronic equipment and readable storage medium
JP2020089496A (en) Game program, game processing method and game terminal
KR20200005066A (en) Apparatus and method for sending event information, apparatus and method for displayng event information
US11771989B2 (en) Method for providing item enhancement service in game
KR102463571B1 (en) Apparatus and method for controlling game
WO2024060924A1 (en) Interaction processing method and apparatus for virtual scene, and electronic device and storage medium
KR102598659B1 (en) Selective indication of off-screen object presence

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