Virtual object control method and device in game scene, equipment and storage medium

By obtaining the touch pressure value and operation type, determining the moving speed of the virtual object and performing the touch operation, the problem of inaccurate manual operation of the player is solved and the gaming experience is improved.

CN118718401AInactive Publication Date: 2024-10-01SHENZHEN SPARKVR VIRTUAL REALITY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410762290.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In electronic games, due to the poor accuracy of players' manual manipulation of virtual objects, the user's control of virtual objects is time-consuming and laborious, affecting the game experience.

Method used

By obtaining the touch pressure value and target operation type of the current touch operation, determine the movement speed of the target operation part, and control the target operation part to perform touch operations in the game scene based on this speed, including preset operation type prediction models and collisions Evasion strategies to improve operational accuracy.

Benefits of technology

It improves the accuracy of users' control of virtual objects, reduces the need for repeated operations, and improves the gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118718401A_ABST
    Figure CN118718401A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual object control method and device in a game scene, equipment and a storage medium, relates to the technical field of games, and discloses a virtual object control method in the game scene, which comprises the following steps: obtaining a touch pressure value corresponding to a current touch operation, the current touch operation is a touch operation triggered by a user based on a target virtual object in a current game scene; determining a target operation part corresponding to the current touch operation executed by the target virtual object according to a target operation type corresponding to the current touch operation; determining a moving speed corresponding to the target operation part based on the target operation type and the touch pressure value; and controlling the target operation part to execute the current touch operation in the current game scene based on the moving speed. By applying the technical scheme, the technical problems that in the prior art, due to the fact that the accuracy of manually operating the virtual object by a player is poor, time and labor are wasted when the user controls the virtual object, and the game experience of the user is affected are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of game technology, and in particular to a method, device, equipment and storage medium for controlling virtual objects in a game scene. Background Art

[0002] With the rapid development of computer technology and Internet technology, electronic games are becoming more and more popular, such as shooting games, tactical competitive games, etc. However, during the game, due to the poor accuracy of manual operation by players, players often need to repeatedly operate virtual objects to effectively aim at the target and perform operations, which makes it time-consuming and laborious for users to control virtual objects, thus affecting the user's gaming experience.

[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of the present application is to provide a method, device, equipment and storage medium for controlling virtual objects in a game scene, aiming to solve the technical problem in the prior art that the accuracy of players' manual operation of virtual objects is poor, making the user's control of virtual objects time-consuming and laborious, thus affecting the user's gaming experience.

[0005] To achieve the above objectives, the present application proposes a method for controlling a virtual object in a game scene, the method comprising:

[0006] Acquire a touch pressure value corresponding to a current touch operation, where the current touch operation is a touch operation triggered by a user based on a target virtual object in a current game scene;

[0007] Determining, according to the target operation type corresponding to the current touch operation, a target operation part corresponding to the current touch operation performed by the target virtual object;

[0008] Determining a moving speed corresponding to the target operation part based on the target operation type and the touch pressure value;

[0009] The target operation part is controlled to perform the current touch operation in the current game scene based on the moving speed.

[0010] In one embodiment, before the step of determining, according to the target operation type corresponding to the current touch operation, the target virtual object performing the target operation corresponding to the current touch operation, further comprises:

[0011] Collect image frame data of the target virtual object in the current game scene;

[0012] Determining a target operation area image from the image frame data according to the operation information of the current touch operation;

[0013] Determining the matching probability of all operation types in the current game scene and the current touch operation based on the target operation area image by using a preset operation type prediction model;

[0014] A target operation type corresponding to the current touch operation is determined from each operation type according to the matching probability.

[0015] In one embodiment, the step of determining the movement speed corresponding to the target operation part based on the target operation type and the touch pressure value includes:

[0016] Determine the moving speed value range and the target object corresponding to the current touch operation according to the target operation type;

[0017] Determining a moving speed value corresponding to the target operation part within the moving speed value range based on the touch pressure value;

[0018] Determining a moving direction corresponding to the target operation part according to the center of the target object;

[0019] The moving speed corresponding to the target operation part is determined based on the moving direction and the moving speed value.

[0020] In one embodiment, the step of determining the moving speed value corresponding to the target operation part within the moving speed value range based on the touch pressure value includes:

[0021] Searching for a preset coefficient relationship mapping subtable corresponding to the moving speed value range, wherein the preset coefficient relationship mapping subtable stores coefficient relationships between each touch pressure value and the moving speed value within the moving speed value range;

[0022] Determining a target coefficient relationship corresponding to the touch pressure value according to the preset coefficient relationship mapping subtable;

[0023] A moving speed value corresponding to the target operation part is determined based on the relationship between the touch pressure value and the target coefficient.

[0024] In one embodiment, after the step of controlling the target operation part to perform the current touch operation in the current game scene based on the moving speed, the method further includes:

[0025] During the execution of the current touch operation, determining all moving objects in the current game scene according to the image frame data;

[0026] Acquire the first position of the target virtual object and the second position of each moving object in real time;

[0027] Based on the first position and the second position, determining whether there is a target moving object whose distance from the target virtual object is less than a preset distance threshold;

[0028] If so, predict whether a collision event will occur between the target virtual object and the target moving object;

[0029] If so, the target operation part is controlled to perform the current touch operation based on a preset collision avoidance strategy.

[0030] In one embodiment, if yes, the step of controlling the target operation part to perform the current touch operation based on a preset collision avoidance strategy includes:

[0031] If so, determining an offset position based on the position of the target moving object and the position of the target object;

[0032] Determining a target moving direction and a target moving speed corresponding to the target operating part according to the offset position;

[0033] Generate a preset collision avoidance strategy based on the target moving direction and the target moving speed;

[0034] The target virtual object is controlled to perform the current touch operation based on the preset collision avoidance strategy.

[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a virtual object control device, the device comprising:

[0036] A pressure value acquisition module, used to acquire a touch pressure value corresponding to a current touch operation, where the current touch operation is a touch operation triggered by a user based on a target virtual object in a current game scene;

[0037] An operation part determination module, used to determine a target operation part corresponding to the current touch operation performed by the target virtual object according to a target operation type corresponding to the current touch operation;

[0038] A speed determination module, configured to determine a moving speed corresponding to the target operation part based on the target operation type and the touch pressure value;

[0039] The operation execution module is used to control the target operation part to execute the current touch operation in the current game scene based on the moving speed.

[0040] In addition, to achieve the above-mentioned purpose, the present application also proposes a virtual object control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the virtual object control method in the game scene as described above.

[0041] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the virtual object control method in the game scene as described above are implemented.

[0042] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the virtual object control method in the game scene as described above are implemented.

[0043] The present application provides a method for controlling a virtual object in a game scene, and the present application discloses obtaining a touch pressure value corresponding to a current touch operation, wherein the current touch operation is a touch operation triggered by a user based on a target virtual object in the current game scene; determining a target operation part corresponding to the current touch operation performed by the target virtual object according to a target operation type corresponding to the current touch operation; determining a moving speed corresponding to the target operation part based on the target operation type and the touch pressure value; and controlling the target operation part to perform the current touch operation in the current game scene based on the moving speed; compared with the prior art, in many cases during the game process, players need to repeatedly operate the virtual object in order to effectively aim at the target and perform the operation. Since the present invention determines the moving speed of the target operation part based on the touch pressure value corresponding to the current touch operation and the target operation type, the target operation part can be controlled to perform the current touch operation based on the moving speed, thereby solving the technical problem in the prior art that the accuracy of manual operation of virtual objects by players is poor, making the control of virtual objects by users time-consuming and labor-intensive, thereby affecting the user's gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0046] Figure 1A flowchart diagram of a first embodiment of a method for controlling a virtual object in a game scene of the present application;

[0047] Figure 2 A flowchart diagram of a second embodiment of a method for controlling a virtual object in a game scene of the present application;

[0048] Figure 3 A flowchart diagram of a third embodiment of a method for controlling a virtual object in a game scene of the present application;

[0049] Figure 4 This is a schematic diagram of the module structure of the virtual object control device according to an embodiment of the present application;

[0050] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the virtual object control method in the game scene in the embodiment of the present application.

[0051] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0052] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0053] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0054] The main solution of the embodiment of the present application is: obtaining a touch pressure value corresponding to a current touch operation, wherein the current touch operation is a touch operation triggered by a user based on a target virtual object in a current game scene; determining a target operation part of the target virtual object corresponding to the current touch operation according to a target operation type corresponding to the current touch operation; determining a moving speed corresponding to the target operation part based on the target operation type and the touch pressure value; and controlling the target operation part to perform the current touch operation in the current game scene based on the moving speed.

[0055] Due to the poor accuracy of manual operations of players during games with the existing technology, players are often required to repeatedly operate virtual objects in order to effectively aim at the target and perform operations, which makes it time-consuming and laborious for users to control virtual objects, thus affecting the user's gaming experience.

[0056] The present application provides a solution, which determines the moving speed of the target operation part based on the touch pressure value corresponding to the current touch operation and the target operation type, so that the target operation part can be controlled to perform the current touch operation based on the moving speed, thereby solving the technical problem in the prior art that the accuracy of the player's manual operation of the virtual object is poor, making the user's control of the virtual object time-consuming and laborious, thereby affecting the user's gaming experience.

[0057] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a virtual object control device, etc. The following takes a virtual object control device as an example (hereinafter referred to as a device) to illustrate this embodiment and the following embodiments.

[0058] Based on this, the embodiment of the present application provides a method for controlling a virtual object in a game scene, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the virtual object control method in the game scene of the present application.

[0059] In this embodiment, the method for controlling virtual objects in the game scene includes steps S10 to S40:

[0060] Step S10: Acquire a touch pressure value corresponding to a current touch operation, where the current touch operation is a touch operation triggered by a user based on a target virtual object in a current game scene.

[0061] It should be noted that the current touch operation may be an operation of a user touching a target virtual object in a current game scene, and accordingly, the touch pressure value may be a value used to characterize the pressure magnitude of the current touch operation.

[0062] It should be understood that the above-mentioned current game scene may be a virtual game scene currently displayed when the application is running on the user terminal, and the current game scene in this embodiment may include but is not limited to a two-dimensional virtual scene, a three-dimensional virtual scene, etc. Among them, the target virtual object may be a virtual object in the current game scene that can be operated by the player, such as a virtual character, a virtual animal, a virtual prop, etc., and this embodiment does not limit this.

[0063] In this embodiment, a pressure sensor is usually integrated under the display screen of the display interface of the current game scene of the user terminal. When the device detects that the user touches the target virtual object in the current game scene, the touch pressure value corresponding to the current touch operation can be obtained through the pressure sensor under the display screen.

[0064] Step S20: determining a target operation part of the target virtual object corresponding to the current touch operation according to the target operation type corresponding to the current touch operation.

[0065] It should be noted that the above-mentioned target operation type is the operation type corresponding to the current touch operation, for example: parallel movement operation, jump operation, squat operation, attack operation, etc., and this embodiment does not limit this.

[0066] It is understandable that the above-mentioned target operation part can be the part of the target virtual object that is manipulated when the current touch operation is successfully executed. In actual applications, if the target operation type corresponding to the current touch operation is a parallel movement operation, then the target operation part corresponding to the target virtual object can be the center position of the target operation object, such as for a virtual character, the target operation part can be the body center of the virtual character; for a virtual prop, the target operation part can be the geometric center of the virtual prop. If the target operation type corresponding to the current touch operation is a squatting operation, then the target operation part corresponding to the target virtual object can be the lower center position of the target operation object, such as for a virtual character, the target operation part can be the lower limbs of the virtual character.

[0067] Furthermore, before step S20, the method also includes: collecting image frame data of the target virtual object in the current game scene; determining a target operation area image from the image frame data according to the operation information of the current touch operation; determining the matching probability of all operation types in the current game scene with the current touch operation based on the target operation area image through a preset operation type prediction model; and determining the target operation type corresponding to the current touch operation from each operation type according to the matching probability.

[0068] It should be understood that the above-mentioned image frame data may be images in the current game scene sorted by time, wherein the above-mentioned target operation area image may be a partial image corresponding to the area currently operated by the user in the image of the current game scene. In this embodiment, after acquiring the images in the current game scene sorted by time, the device may perform feature extraction on these images according to the operation information of the current touch operation (such as information such as the area or position where the user is currently performing the touch operation), extract partial images of the area where the target operation object is located in these images from the complete image, and obtain the target operation area image, so as to eliminate the interference of background images in the complete image that are not related to the target operation object, so that the target operation area image can be used as the input of the preset operation type prediction model in the future, thereby improving the accuracy of the matching probability output by the preset operation type prediction model, and further improving the accuracy of the determined target operation type.

[0069] It should be noted that the above-mentioned preset operation type prediction model can be a model for predicting the operation type of a touch operation, wherein the preset operation type prediction model in this embodiment can be a neural network model. In practical applications, a number of images showing different operation types can be used as inputs of the initial operation type prediction model in advance, and the matching degree between each image and all operation types can be used as output to train the initial operation type prediction model, so as to obtain a trained preset operation type prediction model.

[0070] In a specific implementation, first, the image acquisition device in the user terminal can be used to acquire images of the target virtual object in the current game scene sorted by time, and features can be extracted from these images to extract target operation area images corresponding to the areas where the target virtual object is located in these images. Then, the target operation area images can be input into a pre-trained preset operation type prediction model. At this time, the preset operation type prediction model can output the matching probability of the current touch operation with all operation types in the current game scene, and determine the operation type with the highest probability of matching the current touch operation as the target operation type corresponding to the current touch operation.

[0071] Step S30: determining a moving speed corresponding to the target operation part based on the target operation type and the touch pressure value.

[0072] It should be noted that the above-mentioned moving speed may be the moving speed of the target operation part of the target virtual object on the current display interface. In this embodiment, different operation types and different touch pressure values ​​may result in different moving speeds of the operation part of the target virtual object. For example, the speed ranges of different operation types are usually different. In addition, the greater the touch pressure value of the user's touch operation, the greater the corresponding moving speed of the target operation part. Therefore, the device needs to determine the moving speed of the operation part of the target virtual object according to the operation type and touch pressure value of the current touch operation.

[0073] Step S40: controlling the target operation part to perform the current touch operation in the current game scene based on the moving speed.

[0074] In a specific implementation, after determining the moving speed of the target operation part of the target virtual object, the device can control the target operation part to move at the moving speed in the current game scene, thereby executing the current touch operation. For example, if the user currently controls the virtual character in the current game scene to perform a squat operation, then the target operation part of the target virtual object performing the squat operation is the lower limbs of the virtual character. Then the device can determine the moving speed range corresponding to the squat operation, and determine the specific moving speed corresponding to the current touch pressure value within the moving speed range. Finally, the target operation part of the target virtual object can be controlled to move at the moving speed in the current game scene to execute the current touch operation triggered by the user.

[0075] The present embodiment provides a method for controlling a virtual object in a game scene, the method discloses obtaining a touch pressure value corresponding to a current touch operation, the current touch operation being a touch operation triggered by a user based on a target virtual object in the current game scene; determining a target operation part corresponding to the current touch operation performed by the target virtual object according to a target operation type corresponding to the current touch operation; determining a moving speed corresponding to the target operation part based on the target operation type and the touch pressure value; and controlling the target operation part to perform the current touch operation in the current game scene based on the moving speed; compared with the prior art, in many cases during the game process, players need to repeatedly operate the virtual object in order to effectively aim at the target and perform the operation. Since the present embodiment determines the moving speed of the target operation part based on the touch pressure value corresponding to the current touch operation and the target operation type, the target operation part can be controlled to perform the current touch operation based on the moving speed, thereby solving the technical problem in the prior art that the accuracy of manual operation of virtual objects by players is poor, making the control of virtual objects by users time-consuming and labor-intensive, thereby affecting the user's gaming experience.

[0076] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , Figure 2 A flowchart diagram of a second embodiment of a method for controlling a virtual object in a game scene of the present application is provided.

[0077] In this embodiment, step S30 includes steps S301 to S304:

[0078] Step S301: determining a moving speed value range and a target object corresponding to the current touch operation according to the target operation type.

[0079] It should be noted that the above movement speed value range may be a range of movement speed values ​​for touch operations of different operation types.

[0080] It can be understood that the above-mentioned target object can be the virtual object on which the current touch operation ultimately acts when the target virtual object in the current game scene executes the current touch operation. For example, if the target operation type is a jump operation, the target object corresponding to the current touch operation can be the platform in front of the target virtual object, or the ground in front of an obstacle.

[0081] Step S302: determining a moving speed value corresponding to the target operation part within the moving speed value range based on the touch pressure value.

[0082] It should be noted that the above-mentioned moving speed value may be a value used to characterize the moving speed of the target operation part. In this embodiment, the step S302 includes: searching for a preset coefficient relationship mapping subtable corresponding to the moving speed value range, wherein the preset coefficient relationship mapping subtable stores the coefficient relationship between each touch pressure value and the moving speed value within the moving speed value range; determining the target coefficient relationship corresponding to the touch pressure value according to the preset coefficient relationship mapping subtable; and determining the moving speed value corresponding to the target operation part based on the touch pressure value and the target coefficient relationship.

[0083] It should be understood that the preset coefficient relationship mapping subtable may be a table that maps and stores the touch pressure value and the coefficient relationship between the touch pressure value and the moving speed value. Correspondingly, the target coefficient relationship is the coefficient relationship between the touch pressure value and the moving speed value corresponding to the target operation part.

[0084] In a specific implementation, since the range of movement speed values ​​corresponding to touch operations of different operation types is different, the device can pre-set the corresponding range of movement speed values ​​for the touch operations of each operation type, and establish a preset coefficient relationship mapping sub-table corresponding to the movement speed value range, wherein the preset coefficient relationship mapping sub-table can map and store the coefficient relationship between different touch pressure values ​​and the movement speed values ​​corresponding to the operation part. When determining the movement speed value corresponding to the target operation part later, the movement speed value range can be determined according to the operation type corresponding to the target touch operation, and the corresponding preset coefficient relationship mapping sub-table can be queried, and the corresponding target coefficient relationship can be searched in the preset coefficient relationship mapping sub-table according to the touch pressure value corresponding to the target touch operation, wherein the target coefficient relationship can be a specific coefficient value, so that the device can multiply the coefficient value with the touch pressure value to calculate the movement speed value corresponding to the target operation part.

[0085] Step S303: determining the moving direction corresponding to the target operation part according to the center of the target object.

[0086] It should be noted that after determining the target object on which the current touch operation finally acts on the target virtual object, the direction of the line connecting the center of the target object and the center of the target operation part can be determined as the moving direction corresponding to the target operation part.

[0087] Step S304: determining a moving speed corresponding to the target operation part based on the moving direction and the moving speed value.

[0088] In a specific implementation, since the speed is usually determined by the speed value and direction, after the device determines the moving direction and moving speed value corresponding to the target operation part of the target virtual object, it can obtain the moving speed corresponding to the target operation part according to the combination of the moving direction and moving speed value.

[0089] In the present embodiment, it is disclosed that a moving speed value range and a target object corresponding to a current touch operation are determined according to a target operation type; a moving speed value corresponding to a target operation part is determined within the moving speed value range based on a touch pressure value; a moving direction corresponding to the target operation part is determined according to the center of the target object; and a moving speed corresponding to the target operation part is determined based on the moving direction and the moving speed value. Since in the present embodiment the moving speed of the target operation part can be determined according to the operation type and the touch pressure value corresponding to the current touch operation, the user can freely control the moving speed of the target virtual object, thereby improving the flexibility of the user in controlling the virtual object.

[0090] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. Figure 3 , Figure 3 A flowchart diagram of a third embodiment of a method for controlling a virtual object in a game scene of the present application is provided.

[0091] In this embodiment, after step S40, the method for controlling virtual objects in the game scene further includes steps S501 to S505:

[0092] Step S501: during the execution of the current touch operation, all moving objects in the current game scene are determined according to the image frame data.

[0093] It should be understood that the above-mentioned moving objects may be all objects in the current game scene that are in a moving state except the target virtual object. In this embodiment, since all moving objects in the current game scene may become obstacles when the target virtual object performs the current touch operation, during the process of the target virtual object performing the current touch operation, the device can detect in real time whether there is a moving object interfering with the target virtual object in performing the current touch operation, so as to ensure the successful execution of the current touch operation.

[0094] Step S502: Acquire the first position of the target virtual object and the second position of each moving object in real time.

[0095] It should be noted that the first position may be the current position of the target virtual object; correspondingly, the second position may be the current position of each moving object.

[0096] Step S503: Based on the first position and the second position, determine whether there is a target moving object whose distance from the target virtual object is less than a preset distance threshold.

[0097] It should be noted that the preset distance threshold may be the maximum distance at which a collision with the target virtual object may occur, wherein the preset distance threshold may be set according to actual needs, and this embodiment does not limit this. Accordingly, the target moving object may be a moving object that may collide with the target virtual object.

[0098] In this embodiment, the device can calculate the distance between the target virtual object and each moving object based on the first position of the target virtual object and the second position of each moving object, and compare these distances with a preset distance threshold, and then determine the moving object whose distance to the target virtual object is less than the preset distance threshold as the target moving object.

[0099] Step S504: If so, predict whether a collision event will occur between the target virtual object and the target moving object.

[0100] It should be understood that the above-mentioned collision event is an event in which the target virtual object collides with other objects in the current game scene. In practical applications, if there is a target mobile object that is close to the target virtual object in the current game scene, and the target mobile object is on the route that the target virtual object must take to perform the current touch operation, then the target virtual object may collide with the mobile object. At this time, in order to ensure that the target virtual object successfully performs the current touch operation, the device needs to predict whether a collision event will occur between the target virtual object and the target mobile object. In this embodiment, the device can predict whether the target virtual object will collide with the target mobile object during the process of moving along the moving direction at the speed based on the current position, moving direction and speed of the target virtual object, as well as the current position, moving direction and speed of the target mobile object.

[0101] Step S505: If yes, then control the target operation part to perform the current touch operation based on a preset collision avoidance strategy.

[0102] It should be noted that the above-mentioned preset collision avoidance strategy may be a strategy for avoiding collision with obstacle objects by controlling the target virtual object to avoid obstacle objects.

[0103] Further, the step S505 includes: if yes, determining an offset position based on the position of the target moving object and the position of the target object; determining a target moving direction and a target moving speed corresponding to the target operation part according to the offset position; generating a preset collision avoidance strategy based on the target moving direction and the target moving speed; and controlling the target virtual object to perform the current touch operation based on the preset collision avoidance strategy.

[0104] It should be noted that the above-mentioned offset position can be any position near the target moving object that presents a certain angle with the direction of the line between the target moving object and the target object, wherein the angle can be any angle such as 15 degrees, 30 degrees, etc., and this embodiment does not impose any limitation on this.

[0105] It is understandable that after determining the offset position, the direction of the line connecting the offset position and the position of the target operating part can be determined as the target moving direction. In addition, in order to control the target virtual object to avoid collision with the target moving object, the moving speed of the target operating part can also be adjusted, such as increasing or decreasing the speed by 10% to obtain the adjusted target moving speed. Among them, the target moving speed can be adjusted according to actual conditions.

[0106] In a specific implementation, if there is a target moving object that may collide with the target virtual object during the process of the target virtual object performing the current touch operation, an offset position can be determined near the target object, and the direction of the line connecting the offset position and the position of the target operation part can be determined as the new moving direction of the target operation part, and the speed at which the target operation part moves toward the target object can be adjusted. Then, a preset collision avoidance strategy can be generated according to the new moving direction and new moving speed of the target operation part, so that the subsequent device can control the target operation part to perform the current touch operation based on the moving direction and moving speed in the preset collision avoidance strategy.

[0107] In the present embodiment, it is disclosed that in the process of executing the current touch operation, all moving objects in the current game scene are determined according to image frame data; the first position of the target virtual object and the second position of each moving object are acquired in real time; based on the first position and the second position, it is determined whether there is a target moving object whose distance from the target virtual object is less than a preset distance threshold; if so, it is predicted whether a collision event will occur between the target virtual object and the target moving object; if so, the target operation part is controlled to execute the current touch operation based on a preset collision avoidance strategy, thereby preventing other objects in the current game scene from interfering with the target virtual object in executing the current touch operation, thereby improving the feasibility of controlling the target virtual object to execute the current touch operation.

[0108] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the virtual object control method in the game scene of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0109] This application also provides a virtual object control device, please refer to Figure 4 , the virtual object control device comprises:

[0110] A pressure value acquisition module 10 is used to acquire a touch pressure value corresponding to a current touch operation, where the current touch operation is a touch operation triggered by a user based on a target virtual object in a current game scene;

[0111] An operation part determination module 20, configured to determine a target operation part corresponding to the current touch operation performed by the target virtual object according to a target operation type corresponding to the current touch operation;

[0112] A speed determination module 30, configured to determine a moving speed corresponding to the target operation part based on the target operation type and the touch pressure value;

[0113] The operation execution module 40 is used to control the target operation part to execute the current touch operation in the current game scene based on the moving speed.

[0114] The virtual object control device provided by the present application adopts the virtual object control method in the game scene of the above embodiment, which can solve the technical problem in the prior art that the user's control of the virtual object is time-consuming and laborious due to the poor accuracy of the player's manual operation of the virtual object, which affects the user's gaming experience. Compared with the prior art, the beneficial effects of the virtual object control device provided by the present application are the same as the beneficial effects of the virtual object control method in the game scene provided by the above embodiment, and the other technical features of the virtual object control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0115] The present application provides a virtual object control device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the virtual object control method in the game scene in the above-mentioned embodiment 1.

[0116] Reference below Figure 5 , which shows a schematic diagram of the structure of a virtual object control device suitable for implementing an embodiment of the present application. The virtual object control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The virtual object control device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0117] like Figure 5As shown, the virtual object control device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the virtual object control device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the virtual object control device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a virtual object control device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.

[0118] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0119] The virtual object control device provided by the present application adopts the virtual object control method in the game scene in the above embodiment, which can solve the technical problem of virtual object control in the game scene. Compared with the prior art, the beneficial effects of the virtual object control device provided by the present application are the same as the beneficial effects of the virtual object control method in the game scene provided by the above embodiment, and other technical features in the virtual object control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0120] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0121] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0122] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the virtual object control method in the game scene in the above-mentioned embodiment.

[0123] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0124] The computer-readable storage medium may be included in the virtual object control device; or may exist independently without being assembled into the virtual object control device.

[0125] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the virtual object control device, the virtual object control device: obtains a touch pressure value corresponding to a current touch operation, where the current touch operation is a touch operation triggered by a user based on a target virtual object in a current game scene; determines a target operation part corresponding to the current touch operation performed by the target virtual object according to a target operation type corresponding to the current touch operation; determines a moving speed corresponding to the target operation part based on the target operation type and the touch pressure value; and controls the target operation part to perform the current touch operation in the current game scene based on the moving speed.

[0126] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0127] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0128] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0129] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the virtual object control method in the above-mentioned game scene, and can solve the technical problem in the prior art that the accuracy of the player's manual operation of the virtual object is poor, which makes the user's control of the virtual object time-consuming and laborious, affecting the user's gaming experience. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the virtual object control method in the game scene provided by the above-mentioned embodiment, and will not be repeated here.

[0130] The present application also provides a computer program product, including a computer program, which implements the steps of the virtual object control method in the game scene as described above when the computer program is executed by a processor.

[0131] The computer program product provided by the present application can solve the technical problem in the prior art that due to the poor accuracy of manual operation of virtual objects by players, the user's control of virtual objects is time-consuming and laborious, which affects the user's gaming experience. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the virtual object control method in the game scene provided by the above embodiment, and will not be repeated here.

[0132] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for controlling a virtual object in a game scene, characterized in that: The method includes: Acquire a touch pressure value corresponding to a current touch operation, where the current touch operation is a touch operation triggered by a user based on a target virtual object in a current game scene; Determining, according to the target operation type corresponding to the current touch operation, a target operation part corresponding to the current touch operation performed by the target virtual object; Determining a moving speed corresponding to the target operation part based on the target operation type and the touch pressure value; The target operation part is controlled to perform the current touch operation in the current game scene based on the moving speed.

2. The method according to claim 1, characterized in that Before the step of determining the target operation position corresponding to the current touch operation performed by the target virtual object according to the target operation type corresponding to the current touch operation, the method further includes: Collect image frame data of the target virtual object in the current game scene; Determining a target operation area image from the image frame data according to the operation information of the current touch operation; Determining the matching probability of all operation types in the current game scene and the current touch operation based on the target operation area image by using a preset operation type prediction model; A target operation type corresponding to the current touch operation is determined from each operation type according to the matching probability.

3. The method according to claim 2, characterized in that The step of determining the moving speed corresponding to the target operation part based on the target operation type and the touch pressure value includes: Determine the moving speed value range and the target object corresponding to the current touch operation according to the target operation type; Determining a moving speed value corresponding to the target operation part within the moving speed value range based on the touch pressure value; Determining a moving direction corresponding to the target operation part according to the center of the target object; The moving speed corresponding to the target operation part is determined based on the moving direction and the moving speed value.

4. The method according to claim 3, characterized in that The step of determining the moving speed value corresponding to the target operation part within the moving speed value range based on the touch pressure value comprises: Searching for a preset coefficient relationship mapping subtable corresponding to the moving speed value range, wherein the preset coefficient relationship mapping subtable stores coefficient relationships between each touch pressure value and the moving speed value within the moving speed value range; Determining a target coefficient relationship corresponding to the touch pressure value according to the preset coefficient relationship mapping subtable; A moving speed value corresponding to the target operation part is determined based on the relationship between the touch pressure value and the target coefficient.

5. The method according to claim 3, characterized in that After the step of controlling the target operation part to perform the current touch operation in the current game scene based on the moving speed, the method further includes: During the execution of the current touch operation, determining all moving objects in the current game scene according to the image frame data; Acquire the first position of the target virtual object and the second position of each moving object in real time; Based on the first position and the second position, determining whether there is a target moving object whose distance from the target virtual object is less than a preset distance threshold; If so, predict whether a collision event will occur between the target virtual object and the target moving object; If so, the target operation part is controlled to perform the current touch operation based on a preset collision avoidance strategy.

6. The method according to claim 5, characterized in that If so, the step of controlling the target operation part to perform the current touch operation based on a preset collision avoidance strategy includes: If so, determining an offset position based on the position of the target moving object and the position of the target object; Determining a target moving direction and a target moving speed corresponding to the target operating part according to the offset position; Generate a preset collision avoidance strategy based on the target moving direction and the target moving speed; The target virtual object is controlled to perform the current touch operation based on the preset collision avoidance strategy.

7. A virtual object control device, characterized in that: The device comprises: A pressure value acquisition module, used to acquire a touch pressure value corresponding to a current touch operation, where the current touch operation is a touch operation triggered by a user based on a target virtual object in a current game scene; An operation part determination module, used to determine a target operation part corresponding to the current touch operation performed by the target virtual object according to a target operation type corresponding to the current touch operation; A speed determination module, configured to determine a moving speed corresponding to the target operation part based on the target operation type and the touch pressure value; The operation execution module is used to control the target operation part to execute the current touch operation in the current game scene based on the moving speed.

8. A virtual object control device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the method for controlling a virtual object in a game scene according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the virtual object control method in the game scene according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method for controlling a virtual object in a game scene according to any one of claims 1 to 6 are implemented.