Search

CN-115999157-B - Game dynamic effect generation method and device, electronic equipment and storage medium

CN115999157BCN 115999157 BCN115999157 BCN 115999157BCN-115999157-B

Abstract

The disclosure relates to a method and a device for generating a game dynamic effect, electronic equipment and a storage medium. The method comprises the steps of responding to a state configuration instruction aiming at a target state machine, displaying the target state machine corresponding to a target game dynamic effect in a state machine configuration interface, enabling any node in the target state machine to correspond to a game action in the target game dynamic effect, responding to a node configuration instruction aiming at any node in the target state machine, displaying game action data corresponding to the node in a node configuration interface, and obtaining effect display data corresponding to the target game dynamic effect according to the target state machine and the game action data corresponding to each node in the target state machine. By adopting the method of the embodiment of the disclosure, the development efficiency of the dynamic effect of the game can be improved.

Inventors

  • WANG KANG

Assignees

  • 广州弹指宇宙科技有限公司

Dates

Publication Date
20260512
Application Date
20221223

Claims (15)

  1. 1. A method for generating a dynamic effect of a game, the method comprising: Responding to a state configuration instruction aiming at a target state machine, and displaying the target state machine corresponding to a target game dynamic effect in a state machine configuration interface, wherein any node in the target state machine corresponds to a game action in the target game dynamic effect; responding to a node configuration instruction aiming at any node in the target state machine, and displaying game action data corresponding to the node in a node configuration interface, wherein the node configuration instruction is used for indicating the game action data configuration of the node, and the node configuration instruction comprises configuration data aiming at the game action data; Obtaining effect display data corresponding to the dynamic effect of the target game according to the target state machine and game action data corresponding to each node in the target state machine, wherein the effect display data comprises the target state machine and a game action data file; And acquiring the target state machine from the effect display data, acquiring configuration parameters corresponding to each node game action in the target state machine and a game script corresponding to the game action from the game action data file, generating effect display data corresponding to each node game action, and performing running display on the effect display data corresponding to each node game action to obtain a corresponding target game dynamic effect.
  2. 2. The method of claim 1, wherein the nodes comprise state nodes comprising a plurality of action events having trigger times, the game action data comprising a plurality of action events comprised by the state nodes, the exposing game action data corresponding to the nodes in a node configuration interface in response to node configuration instructions for any of the target state machines, comprising: responding to a first node configuration instruction aiming at a target state node in the target state machine, and displaying a track configuration interface corresponding to the target state node in a node configuration interface; Responding to a second node configuration instruction aiming at the target state node, creating a target track corresponding to the target state node, and displaying a track element corresponding to the target track in the track configuration interface; And responding to a third node configuration instruction aiming at the target track, and displaying a target action event element in a designated area of the track element, wherein the target action event element is an action event element corresponding to a target action event, and the target action event is an action event contained in the target track.
  3. 3. The method of claim 2, wherein the exposing a target action event element in the specified region of the track element in response to a third node configuration instruction for the target track comprises: Responding to a third node configuration instruction aiming at the target track, and displaying a track attribute configuration interface corresponding to the target track; and responding to a selection instruction aiming at the target action event, displaying the target action event in an action event display area of the track attribute configuration interface, and displaying a target action event element corresponding to the target action event in a designated area of the track element.
  4. 4. The method of claim 3, wherein the game action data further comprises action attribute values for each of the action events, the method further comprising: Responding to a fourth node configuration instruction aiming at the target action event, and displaying an action attribute configuration interface corresponding to the target action event, wherein the action attribute configuration interface comprises an action attribute configuration item corresponding to the target action event; responding to a configuration instruction aiming at the action attribute configuration item, and displaying the action attribute value corresponding to the action attribute configuration item in the action attribute configuration interface; and after the configuration of the action attribute configuration item is completed, displaying the target action event element corresponding to the target action event in the track element according to the action attribute value corresponding to the action attribute configuration item.
  5. 5. The method of claim 4, wherein the action attribute configuration item comprises a trigger time configuration item, the exposing the target action event element corresponding to the target action event in the track element according to the action attribute value corresponding to the action attribute configuration item, comprising: Acquiring the trigger time corresponding to the trigger time configuration item; Determining a target display area corresponding to the target action event in the track element according to the trigger time and the event execution time corresponding to the target action event; And displaying a target action event element corresponding to the target action event in the target display area in the track element.
  6. 6. The method of any of claims 2 to 5, wherein the track configuration interface includes a timeline therein, the method further comprising: when the development mode is a preview mode, responding to a preview instruction aiming at the target state node, and displaying an effect preview interface; Moving a cursor element in the time axis in response to a movement instruction for the cursor element in the time axis; Determining an action event to be triggered in the target track in response to the movement of the cursor element in the time axis; Displaying the effect animation corresponding to each action event to be triggered in the effect preview interface according to the triggering sequence of each action event to be triggered; and the action events for displaying the effect animation at the same moment correspond to different target tracks.
  7. 7. The method of claim 6, wherein the determining an action event to be triggered in the target track in response to the movement of the cursor element in the timeline comprises: Determining corresponding time information of the cursor element in the time axis in the process of moving the cursor element; Determining an action event element to be triggered, which is matched with the time information, in track elements corresponding to the target tracks; And taking the action event corresponding to the action event element to be triggered as the action event to be triggered.
  8. 8. The method according to claim 7, wherein the displaying, in the effect preview interface, the effect animation corresponding to each of the action events to be triggered includes: For the action event triggered at any current moment, determining a display rate corresponding to the triggered action event according to the moving speed of the cursor element; And running the triggered game script of the action event, and playing the effect animation corresponding to the triggered action event in the effect preview interface at the display rate.
  9. 9. The method of claim 1, wherein the nodes comprise behavior nodes corresponding to action events performed immediately, wherein the game action data further comprises node attribute values for the behavior nodes, wherein the exposing game action data corresponding to the nodes in a node configuration interface in response to node configuration instructions for any of the nodes in the target state machine comprises: responding to a fifth node configuration instruction aiming at a target behavior node in the target state machine, and displaying a node attribute configuration interface corresponding to the target behavior node in a node configuration interface, wherein the node attribute configuration interface comprises a behavior node attribute configuration item corresponding to the target behavior node; and responding to a configuration instruction aiming at the behavior node attribute configuration item, and displaying a node attribute value corresponding to the behavior node attribute configuration item in the node attribute configuration interface.
  10. 10. The method of claim 1, wherein the exposing the target state machine corresponding to the target game dynamic effect in a state machine configuration interface in response to a state configuration instruction for the target state machine comprises: In response to a first state configuration instruction for a target state machine, displaying a first target node in a state machine configuration interface, the first target node being any one of a start node, an intermediate node, and an end node of the target state machine; and responding to a second state configuration instruction aiming at the first target node, displaying a state migration line segment in the state machine configuration interface, wherein a first end of the state migration line segment is connected with the first target node, a second end of the state migration line segment is connected with a second target node, and the state migration line segment is used for representing the migration relation between the first target node and the second target node.
  11. 11. The method of claim 10, wherein the exposing the target state machine corresponding to the target game dynamic effect in a state machine configuration interface in response to a state configuration instruction for the target state machine, further comprises: Responding to a configuration instruction aiming at the state migration line segment, displaying a migration relation configuration interface corresponding to the state migration line segment, wherein the migration relation configuration interface comprises a migration condition configuration item; In the case that a plurality of migration condition configuration items exist, determining a target migration condition configuration item from the migration condition configuration items in response to a selected instruction for the target migration condition configuration item; and taking the migration condition corresponding to the target migration condition configuration item as the migration condition of the first target node and the second target node.
  12. 12. The method according to claim 1, further characterized in that the obtaining the target state machine from the effect presentation data, and obtaining configuration parameters corresponding to each node game action in the target state machine and a game script corresponding to the game action from the game action data file, generating effect presentation data corresponding to each node game action, and performing running presentation on the effect presentation data corresponding to each node game action to obtain a corresponding target game dynamic effect, includes: responding to a preview instruction aiming at the target game dynamic effect, and acquiring effect display data corresponding to the target game dynamic effect; Acquiring the game action data corresponding to each node in the target state machine and the target state machine contained in the effect display data; and calling and running a game script of an action event corresponding to each game action according to the game action data corresponding to each node, and displaying the animation effect of the target game dynamic effect in a dynamic effect display interface.
  13. 13. A game dynamic effect generation apparatus, characterized in that the apparatus comprises: A first presentation unit configured to execute a target state machine corresponding to a target game dynamic effect in response to a state configuration instruction for the target state machine, any node in the target state machine corresponding to a game action in the target game dynamic effect being presented in a state machine configuration interface; A second display unit configured to execute a node configuration instruction for responding to any node in the target state machine, and display game action data corresponding to the node in a node configuration interface, wherein the node configuration instruction is used for indicating to perform game action data configuration on the node, and the node configuration instruction comprises configuration data for the game action data; the processing unit is configured to execute game action data corresponding to each node in the target state machine to obtain effect display data corresponding to the dynamic effect of the target game, wherein the effect display data comprises the target state machine and a game action data file; The display unit is configured to acquire the target state machine from the effect display data in the game running process, acquire configuration parameters corresponding to each node game action in the target state machine and a game script corresponding to the game action from the game action data file, generate effect display data corresponding to each node game action, and run and display the effect display data corresponding to each node game action to obtain a corresponding target game dynamic effect.
  14. 14. An electronic device, comprising: A processor; a memory for storing the processor-executable instructions; Wherein the processor is configured to execute the instructions to implement the method of generating a game dynamic effect according to any one of claims 1 to 12.
  15. 15. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of generating a game dynamic effect according to any one of claims 1 to 12.

Description

Game dynamic effect generation method and device, electronic equipment and storage medium Technical Field The present disclosure relates to the field of game technologies, and in particular, to a method and apparatus for generating a dynamic game effect, an electronic device, and a storage medium Background Development of dynamic effects corresponding to game skills is an important link in the game development process. In the related art, game skill effects are often defined by configuring a game script, that is, by configuring corresponding configuration items in the game script, skill logic and presentation effects are determined, and the configuration items are analyzed to invoke corresponding functions during running, so as to display corresponding game skill effects. The game skill effect is configured through the game script, and the game script is required to be adjusted in the process of debugging the game skill effect, so that the development efficiency of the dynamic effect corresponding to the game skill is lower. Disclosure of Invention The disclosure provides a method, a device, an electronic device and a storage medium for generating a game dynamic effect, so as to at least solve the problem of low development efficiency of the dynamic effect corresponding to game skills in the related art. The technical scheme of the present disclosure is as follows: according to a first aspect of an embodiment of the present disclosure, there is provided a method for generating a dynamic effect of a game, the method including: Responding to a state configuration instruction aiming at a target state machine, and displaying the target state machine corresponding to a target game dynamic effect in a state machine configuration interface, wherein any node in the target state machine corresponds to a game action in the target game dynamic effect; responding to a node configuration instruction aiming at any node in the target state machine, and displaying game action data corresponding to the node in a node configuration interface; And obtaining effect display data corresponding to the target game dynamic effect according to the target state machine and game action data corresponding to each node in the target state machine. In one embodiment, the nodes include state nodes, the state nodes include a plurality of action events with trigger time, the game action data includes a plurality of action events included in the state nodes, and the responding to the node configuration instruction for any node in the target state machine displays the game action data corresponding to the node in a node configuration interface, and the method includes: responding to a first node configuration instruction aiming at a target state node in the target state machine, and displaying a track configuration interface corresponding to the target state node in a node configuration interface; Responding to a second node configuration instruction aiming at the target state node, creating a target track corresponding to the target state node, and displaying a track element corresponding to the target track in the track configuration interface; And responding to a third node configuration instruction aiming at the target track, and displaying a target action event element in a designated area of the track element, wherein the target action event element is an action event element corresponding to a target action event, and the target action event is an action event contained in the target track. In one embodiment, the presenting, in response to a third node configuration instruction for the target track, a target action event element in a specified region of the track element, includes: Responding to a third node configuration instruction aiming at the target track, and displaying a track attribute configuration interface corresponding to the target track; and responding to a selection instruction aiming at the target action event, displaying the target action event in an action event display area of the track attribute configuration interface, and displaying a target action event element corresponding to the target action event in a designated area of the track element. In one embodiment, the game action data further comprises action attribute values for each of the action events, the method further comprising: Responding to a fourth node configuration instruction aiming at the target action event, and displaying an action attribute configuration interface corresponding to the target action event, wherein the action attribute configuration interface comprises an action attribute configuration item corresponding to the target action event; responding to a configuration instruction aiming at the action attribute configuration item, and displaying the action attribute value corresponding to the action attribute configuration item in the action attribute configuration interface; and after the configuration of the action attribute configuration