Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements feature for animations to spawn additional animations. #753

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

CCHyper
Copy link
Contributor

@CCHyper CCHyper commented Mar 24, 2022

Closes #752, Closes #883

This pull request implements a new system for AnimTypes, allowing them to spawn additional animations at the start, middle and end of their sequence stages. All animations spawned will be from the center coordinate of the animation spawning these additional animations.

NOTE: The <stage> keyword used below can be replaced with; Start, Middle, End.

[AnimType]
<stage>Anims=<comma delimited list of AnimTypes>
List of animations to spawn at the designated stage of the animation sequence. Defaults to <none>.

<stage>AnimsMinimum=<comma delimited list of integers>
The minimum number of animations that can spawn when choosing the random amount for each of the respective entries on the animations list. This list must have the same number of entries as the animations list. Defaults to 1 for each entry.

<stage>AnimsMaximum=<comma delimited list of integers>
The maximum number of animations that can spawn when choosing the random amount for each of the respective entries on the animations list. This list must have the same number of entries as the animations list. Defaults to 1 for each entry.

<stage>AnimsCount=<comma delimited list of integers>
Number of animations to spawn for each of the respective entries on the animations list. This list must have the same number of entries as the animations list. Defaults to 1 for each entry, and takes priority over the Minimum and Maximum entries.

In addition to this new system, a new key for setting the logical middle frame (the frame in which the craters etc, are spawned) can now be set.

MiddleFrame=<integer>
The frame number in which the animation system will spawn various logics (e.g. craters, scorch marks, fires). Defaults to auto-detect based on the largest frame of the shape file. A special value of -1 can be used to tell the animation system to use the exact middle frame of the shape file (shape file has 30 frames, frame 15 will be used).

@CCHyper CCHyper added the new-feature New feature or request. label Mar 24, 2022
@CCHyper CCHyper requested a review from a team March 24, 2022 19:33
@github-actions
Copy link

github-actions bot commented Mar 24, 2022

This comment is automatically generated by Nightly.link and allows non-registered users to get download the artifacts for this pull request.

These links are also updated when the pull request is pushed to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature New feature or request.
Projects
Status: In Progress
2 participants