Control method of telescopic weapon in game

By providing a graphical interface and manipulation controls in the game, the status of the game characters and scalable weapons is dynamically adjusted according to the operation instructions entered by the player, solving the problem of fixed attack range and operation behavior, and improving the smoothness of the game experience and attack effect .

CN118987602APending Publication Date: 2024-11-22XIAMEN TRUE FUN INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411066596.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The attack range and operation behavior of attack props in existing games are fixed and cannot be adjusted dynamically, resulting in the lack of tactical diversity and player experience. The existing technology is prone to problems such as untimely response and inconsistent material display during the expansion and contraction process.

Method used

By providing a graphical interface in the game terminal, gamers can input clicks and long presses by manipulating controls. The game characters determine the attack status based on the operation command category and number of times, and combine the configuration data of the scalable weapon to perform dynamic attacks and form adjustments to achieve attacks. Improved smoothness of animation and effects.

Benefits of technology

It improves the attack animation performance and control experience of game characters and retractable weapons, enhances the weapon usage scenarios and performance effects, and improves the user's gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118987602A_ABST
    Figure CN118987602A_ABST
Patent Text Reader

Abstract

The invention discloses a control method for a telescopic weapon in a game, and the method comprises the following steps: a game player triggers an attack operation instruction through an operation control, the operation instruction comprises a click operation and a long press operation, and a game role judges the type of the operation instruction according to the triggering duration of the attack operation instruction; the click operation is responded, the game role carries out attack judgment according to the number of times of the current click operation, the attack state of the game role is judged when the click operation is carried out, and corresponding attack operation is carried out; and responding to the long-press operation, changing the state of the handheld weapon by the game role, loading the whole game role at the positioning position of the telescopic weapon, and performing corresponding action operation. According to the method and the device, the problems that the attack range and the operation behavior of the attack prop are fixedly set in the existing game, and dynamic range adjustment and functional addition are inconvenient to carry out, so that tactical diversity and player experience are deficient are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of computer application, and in particular relates to a control method for a retractable weapon in a game. Background Art

[0002] When players play competitive games, they control corresponding attack props by operating game objects to perform attack behaviors. Under normal game settings, the attack range and operation behavior of the attack props are fixed, which makes it difficult to dynamically adjust the range and add functionality, resulting in a lack of tactical diversity and player experience.

[0003] To solve the above problems, the existing technology mainly adopts the following two solutions: Solution 1: Bind the weapon model to the player's hand, and after receiving the corresponding attack command, use the character's hand movement weapon to perform the corresponding attack effect. Solution 2: When the game player performs the corresponding attack, modify the weapon model size and the corresponding scaling ratio to change the weapon model length. Using the above solution, after the game player performs the corresponding attack in the game, it is easy to cause the character operation and weapon operation to respond untimely and become stuck. Or there is a problem of inconsistent material display on the weapon during a long range of telescoping.

[0004] The patent with publication number US11465048B2 discloses a method for a computing device to perform an attack operation in a game. The method includes: the computing device determines the target range corresponding to the first attack operation performed by the first controlled object; when there is an attacked object within the target range, the target attack object is determined from the attacked objects according to the attribute value of the attacked object, and the attribute value of the object to be attacked includes: the reduced health value of the object to be attacked. The health value of the attacked object after the first attack operation is performed on the attacked object, and the health value of the first group of objects after the second attack operation is performed on the attacked objects in the first group is reduced. The attack range of this invention is fixed to the attack operation, and the range cannot be adjusted dynamically. Summary of the invention

[0005] The present invention provides a control method for a retractable weapon in a game, aiming to solve the problem that the existing games have fixed settings for the attack range and operation behavior of attack props, which makes it difficult to dynamically adjust the range and add functionality, thus resulting in a lack of tactical diversity and player experience.

[0006] In order to solve the above technical problems, the present invention provides a control method for a retractable weapon in a game, wherein a graphical interface is provided through a game terminal, wherein the graphical interface includes a game scene screen and a control interface, wherein the game scene screen includes a game character and a retractable weapon, and the control interface is provided with a control control, and a game player controls the game character to control the retractable weapon through the control control, and the method comprises the following steps:

[0007] The game player triggers an attack operation instruction through an operation control, wherein the operation instruction includes a click operation and a long press operation, and the game character determines the type of the operation instruction according to the duration of the attack operation instruction being triggered.

[0008] In response to the click operation, the game character makes an attack determination based on the current number of click operations, determines the attack state of the game character when the click operation is performed, and performs a corresponding attack operation.

[0009] In response to the long press operation, the game character changes the state of the weapon held, the game character is loaded as a whole at the positioning position of the retractable weapon, and performs corresponding action operations.

[0010] Preferably, the game character determines the type of the operation instruction according to the duration of the attack operation instruction being triggered:

[0011] The duration N of the long press operation is preset. If the duration of the game player triggering the attack operation instruction is greater than N, the attack operation instruction is determined as a long press operation; otherwise, the attack operation instruction is determined as a click operation.

[0012] Preferably, in response to the click operation, the game character makes an attack determination according to the current number of click operations, and the attack state of the game character when the click operation is performed is determined as follows:

[0013] The attack state and the maximum time threshold of the attack interval corresponding to each click operation are preset.

[0014] For a click operation triggered by a game player, if a click operation is triggered, the game character determines the attack state corresponding to the current click operation and switches.

[0015] If more than one click operation is triggered, the click operation interval is first determined. If the interval between adjacent click operations is greater than the maximum attack interval time threshold, the click operation is determined to be interrupted, and the game character switches back to the attack state corresponding to the first click operation; otherwise, the click operation is determined to be a continuous attack, and the game character switches the attack state corresponding to each click operation.

[0016] Preferably, the game character performs the corresponding attack operation as follows:

[0017] When the game character switches to the corresponding attack state, the game character's hand hanging points are linked to the retractable weapon to respond synchronously, and the game character's own attack operation data is notified to the receiver on the retractable weapon through the event notification mechanism, and the corresponding retractable weapon is driven to perform the corresponding attack operation through the hand connection.

[0018] Preferably, after receiving the corresponding attack operation data sent by the game character when switching the attack state, the retractable weapon sequentially enters the attack phases including the pre-aiming phase, the attack determination phase, and the attack post-swing phase to assist the game character in performing the corresponding attack operation, specifically:

[0019] In the preview stage, the information required for the corresponding retractable weapon attack is calculated based on the input attack operation data and the configuration data corresponding to the retractable weapon, including the attack length, damage judgment method, and the retractable weapon original parameter cache.

[0020] During the attack determination phase, the retractable weapon performs attack operations in the corresponding retractable area based on the information required for the attack.

[0021] During the attack afterswing phase, the retractable weapon adjusts the length of the retractable area so that it can be retracted and restored after the attack operation is completed.

[0022] Preferably, in response to the long press operation, the game character changes the state of the handheld weapon, the game character is loaded as a whole at the positioning position of the retractable weapon, and the corresponding action operation is specifically:

[0023] For the long press operation triggered by the game player, the game character changes the state of the handheld weapon to the positioning position carried on the non-retractable area on the top of the retractable weapon. At the same time, the retractable weapon switches to the corresponding form, first standing vertically on the surface plane of the game scene screen, and retracting the height from bottom to top. During the retracting process, the retractable weapon adjusts the height of the retractable area according to the retracting rules. The game character avoids the melee attacks of other game opponents or makes high jumps based on the height raised by the retractable weapon.

[0024] Preferably, the retractable rules of the retractable weapon are specifically as follows:

[0025] Retractable weapons are divided into non-retractable areas and retractable areas. The top and bottom of the weapon are non-retractable areas, and the middle part of the weapon is the retractable area. The calculation formula for the retractable size of the middle part of the weapon is as follows:

[0026] L=S p *L0

[0027] Where L is the scaling length; S p Specifies the scaling parameters for retractable weapons; L0 is the base length of the retractable weapon.

[0028] On the other hand, the present invention further provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a method for controlling a retractable weapon in a game as described in any embodiment of the present invention is implemented.

[0029] On the other hand, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for controlling a retractable weapon in a game as described in any embodiment of the present invention is implemented.

[0030] Compared with the prior art, the present invention has the following technical effects:

[0031] The present invention controls the game character according to the input of the game player through the manipulation of the control, and the game terminal determines the corresponding attack operation by obtaining the input operation instruction, and then adjusts the corresponding game character state and weapon state according to the current attack operation. By checking the current operation mode of the game player, the attack form and damage judgment of the retractable weapon are dynamically adjusted, and the corresponding animation effect is integrated in combination with the character state and the form of the retractable weapon. The attack animation performance and the fluency of the attack effect of the game character and the retractable weapon are greatly improved, and the user's control experience is improved. In addition, since different attack forms are used to change the effect of the retractable weapon, the use scenario and performance effect of the retractable weapon are greatly enhanced, and the user's gaming experience is further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is an overall flow chart of a control method of a retractable weapon in a game according to the present invention;

[0033] Figure 2 This is a schematic diagram of the first click operation described in Embodiment 1 of the present invention;

[0034] Figure 3 This is a schematic diagram of the second click operation described in Embodiment 1 of the present invention;

[0035] Figure 4 This is a schematic diagram of the third click operation described in the first embodiment of the present invention;

[0036] Figure 5 This is a schematic diagram of the long press operation described in Embodiment 1 of the present invention. DETAILED DESCRIPTION

[0037] In order to make the objectives, technical solutions and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in combination with specific embodiments of the present application and with reference to the accompanying drawings.

[0038] Embodiment 1

[0039] This embodiment provides a control method for retractable weapons in a game, which provides a graphical interface through a game terminal, wherein the graphical interface includes a game scene screen and a control interface, wherein the game scene screen includes a game character and a retractable weapon, and the control interface is provided with a control control, and the game player controls the game character to control the retractable weapon through the control. This embodiment uses different input operation instruction judgments combined with dynamic retractable weapon judgments to greatly improve the fluency of game players in using weapons, reduce monotonous and meaningless simple attack behaviors, and thus achieve a technical result of improving the user's gaming experience. Figure 1 As shown, the method comprises the following steps:

[0040] The game player triggers an attack operation instruction through an operation control, wherein the operation instruction includes a click operation and a long press operation, and the game character determines the type of the operation instruction according to the duration of the attack operation instruction being triggered.

[0041] In response to the click operation, the game character makes an attack determination based on the current number of click operations, determines the attack state of the game character when the click operation is performed, and performs a corresponding attack operation.

[0042] In response to the long press operation, the game character changes the state of the weapon held, the game character is loaded as a whole at the positioning position of the retractable weapon, and performs corresponding action operations.

[0043] As a preferred implementation of this embodiment, the game character determines the type of the operation instruction according to the duration of the attack operation instruction being triggered:

[0044] The duration N of the long press operation is preset. If the duration of the game player triggering the attack operation instruction is greater than N, the attack operation instruction is determined as a long press operation; otherwise, the attack operation instruction is determined as a click operation.

[0045] As a preferred implementation of this embodiment, in response to a click operation, the game character makes an attack determination according to the current number of click operations, and the attack state of the game character when the click operation is performed is determined as follows:

[0046] The attack state and the maximum time threshold of the attack interval corresponding to each click operation are preset.

[0047] For a click operation triggered by a game player, if a click operation is triggered, the game character determines the attack state corresponding to the current click operation and switches.

[0048] If more than one click operation is triggered, the click operation interval is first determined. If the interval between adjacent click operations is greater than the maximum attack interval time threshold, the click operation is determined to be interrupted, and the game character switches back to the attack state corresponding to the first click operation; otherwise, the click operation is determined to be a continuous attack, and the game character switches the attack state corresponding to each click operation. For details, see Figure 2 , Figure 3 , Figure 4 As shown, the attack state of the game character switches when the game player triggers three clicks.

[0049] As a preferred implementation of this embodiment, the corresponding attack operation performed by the game character is specifically as follows:

[0050] When the game character switches to the corresponding attack state, the game character's hand hanging points are linked to the retractable weapon to respond synchronously, and the game character's own attack operation data is notified to the receiver on the retractable weapon through the event notification mechanism, and the corresponding retractable weapon is driven to perform the corresponding attack operation through the hand connection.

[0051] As a preferred implementation of this embodiment, each time the retractable weapon receives the corresponding attack operation data sent by the game character when switching the attack state, it sequentially enters the attack phase including the pre-aiming phase, the attack determination phase, and the attack post-swing phase to assist the game character in performing the corresponding attack operation, specifically:

[0052] In the preview phase, the information required for the corresponding retractable weapon attack is calculated based on the input attack operation data and the configuration data corresponding to the retractable weapon, including the attack length, damage determination method, and retractable weapon original parameter cache. Specifically, the calculation formula for the retractable weapon attack length is:

[0053] L=S p *L0

[0054] Where, L is the attack length; S p is the specified scaling parameter of the retractable weapon; L0 is the base length of the retractable weapon; S p , L0 are both scalable weapon original parameter caches, stored in configuration files, and the corresponding parameters are dynamically read during the game.

[0055] The above calculation formula can be used to obtain the attack length value of the current retractable weapon. The damage determination method is as follows: by calculating the coordinate point (X, Y, Z) of the currently attacked game opponent, whether the minimum value of all coordinate points is greater than the minimum point of the attack bounding box and the maximum value of all coordinate points is less than the maximum point of the attack bounding box, that is, x min <X<x max &&y min <Y<y max &&zmin <Z<Z max , where (x min ,y min ,z min ) is the minimum coordinate point of the attack bounding box, (x max ,y max ,z max ) is the minimum coordinate point of the attack bounding box. Based on this, it is used to determine whether the game character can make an effective attack, and combined with Unity's physical collision detection, the collision detection is specifically: there is a collision square bounding box for the attacked game opponent, and there is also an attacking collision square bounding box for the retractable weapon. When the two bounding boxes intersect, it is determined that a collision occurs, and the attack operation of the game character is determined to be an effective attack. The corresponding blood volume that needs to be deducted when calculating damage belongs to the original parameter cache of the retractable weapon, which is stored in the configuration file and fixedly deducted after each effective attack operation.

[0056] During the attack determination phase, the retractable weapon performs attack operations in the corresponding retractable area based on the information required for the attack.

[0057] During the attack post-swing phase, the retractable weapon adjusts the length of the retractable area according to the original parameter cache of the retractable weapon so that it can be retracted and restored after the attack operation is completed.

[0058] As a preferred implementation of this embodiment, in response to a long press operation, the game character changes the state of the handheld weapon, the game character is loaded as a whole at the positioning position of the retractable weapon, and the corresponding action operation is specifically as follows:

[0059] For long press actions triggered by gamers, see Figure 5 As shown, the game character changes the state of the handheld weapon to the positioning position of the non-retractable area on the top of the retractable weapon, and the retractable weapon switches to the corresponding form, first standing vertically on the surface plane of the game scene screen, and retracting the height from bottom to top. During the retracting process, the retractable weapon adjusts the height of the retractable area according to the retracting rules. The game character avoids the melee attacks of other game opponents according to the height raised by the retractable weapon. At the same time, because the height of the game character is high enough at this time, the obstacle can be successfully crossed by jumping again when the long press operation is canceled.

[0060] As a preferred implementation of this embodiment, the retractable rules of the retractable weapon are specifically as follows:

[0061] Retractable weapons are divided into non-retractable areas and retractable areas. The top and bottom of the weapon are non-retractable areas, and the middle part of the weapon is the retractable area. The calculation formula for the retractable size of the middle part of the weapon is as follows:

[0062] L=S p *L0

[0063] Where L is the scaling length; S p is the specified scaling parameter of the retractable weapon; L0 is the base length of the retractable weapon; S p , L0 are both scalable weapon original parameter caches, stored in configuration files, and the corresponding parameters are dynamically read during the game.

[0064] Embodiment 2

[0065] This embodiment provides an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a method for controlling a retractable weapon in a game as described in any embodiment of the present invention is implemented.

[0066] Embodiment 3

[0067] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, a method for controlling a retractable weapon in a game as described in any embodiment of the present invention is implemented.

[0068] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.

[0069] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0070] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0071] In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk, and other media that can store program codes.

[0072] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A control method for a retractable weapon in a game, It is characterized in that A graphical interface is provided through a game terminal, wherein the graphical interface includes a game scene screen and a control interface, wherein the game scene screen includes a game character and a retractable weapon, and the control interface is provided with a control control, and a game player controls the game character to control the retractable weapon through the control control, and the method includes the following steps: The game player triggers an attack operation instruction by operating the control, and the operation instruction includes a click operation and a long press operation. The game character determines the type of the operation instruction according to the duration of the attack operation instruction being triggered; In response to the click operation, the game character makes an attack determination based on the current number of click operations, determines the attack state of the game character when the click operation is performed, and performs the corresponding attack operation; In response to the long press operation, the game character changes the state of the weapon held, the game character is loaded as a whole at the positioning position of the retractable weapon, and performs corresponding action operations.

2. A method for controlling a retractable weapon in a game according to claim 1, It is characterized in that The game character determines the operation command category based on the duration of the attack operation command being triggered: The duration N of the long press operation is preset. If the duration of the game player triggering the attack operation instruction is greater than N, the attack operation instruction is determined as a long press operation; otherwise, the attack operation instruction is determined as a click operation.

3. A method for controlling a retractable weapon in a game according to claim 1, It is characterized in that In response to the click operation, the game character makes an attack determination based on the current number of click operations. The attack state of the game character when the click operation is made is determined as follows: Preset the attack state and attack interval maximum time threshold corresponding to each click operation; For a click operation triggered by a game player, if a click operation is triggered, the game character determines the attack state corresponding to the current click operation and switches; If more than one click operation is triggered, the click operation interval is first determined. If the interval between adjacent click operations is greater than the maximum attack interval time threshold, the click operation is determined to be interrupted, and the game character switches back to the attack state corresponding to the first click operation; otherwise, the click operation is determined to be a continuous attack, and the game character switches the attack state corresponding to each click operation.

4. A method for controlling a retractable weapon in a game according to claim 1, It is characterized in that The corresponding attack operations of the game characters are as follows: When the game character switches to the corresponding attack state, the game character's hand hanging points are linked to the retractable weapon to respond synchronously, and the game character's own attack operation data is notified to the receiver on the retractable weapon through the event notification mechanism, and the corresponding retractable weapon is driven to perform the corresponding attack operation through the hand connection.

5. A method for controlling a retractable weapon in a game according to claim 4, It is characterized in that Each time the retractable weapon receives the corresponding attack operation data sent by the game character when switching the attack state, it sequentially enters the attack phase including the pre-aiming phase, the attack determination phase, and the attack post-swing phase to assist the game character in performing the corresponding attack operation. Specifically: In the preview phase, the information required for the corresponding scalable weapon attack is calculated based on the input attack operation data and the configuration data corresponding to the scalable weapon, including the attack length, damage determination method, and the original parameter cache of the scalable weapon; In the attack determination phase, the retractable weapon performs attack operations in the corresponding retractable area according to the information required for the attack; During the attack afterswing phase, the retractable weapon adjusts the length of the retractable area so that it can be retracted and restored after the attack operation is completed.

6. A method for controlling a retractable weapon in a game according to claim 1, It is characterized in that In response to the long press operation, the game character changes the state of the weapon in hand, the game character is loaded as a whole at the positioning position of the retractable weapon, and the corresponding action operations are performed as follows: For the long press operation triggered by the game player, the game character changes the state of the handheld weapon to the positioning position carried on the non-retractable area on the top of the retractable weapon. At the same time, the retractable weapon switches to the corresponding form, first standing vertically on the surface plane of the game scene screen, and retracting the height from bottom to top. During the retracting process, the retractable weapon adjusts the height of the retractable area according to the retracting rules. The game character avoids the melee attacks of other game opponents or makes high jumps based on the height raised by the retractable weapon.

7. A method for controlling a retractable weapon in a game according to claim 6, It is characterized in that The specific rules for retractable weapons are as follows: Retractable weapons are divided into non-retractable areas and retractable areas. The top and bottom of the weapon are non-retractable areas, and the middle part of the weapon is the retractable area. The calculation formula for the retractable size of the middle part of the weapon is as follows: L=S p *L 0 Where L is the scaling length; S p Specifies the scaling parameters for retractable weapons; L 0 The base length of a retractable weapon.

8. An electronic device, the electronic device include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method for controlling a retractable weapon in a game as described in any one of claims 1 to 7 when executing the computer program.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, a control method for a retractable weapon in a game as claimed in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for executing attack operation, storage medium and electronic device

    US11465048B2