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

Set particle scale and color correctly on spawn #4

Merged
merged 2 commits into from
Jun 8, 2022

Conversation

abnormalbrain
Copy link
Owner

Problem

If the base sprite does not start with the initial scale and color that matches the system, particles may flash one frame of the full sized / incorrectly colored sprite before being corrected.

The modifier systems for particles do not run until the frame after spawn and these parameters are not correctly set during spawning.

Solution

Set the sprite color and scale based on the particle system values at the initial (0.0) lifetime.

@abnormalbrain abnormalbrain added the bug Something isn't working label Jun 7, 2022
@abnormalbrain abnormalbrain merged commit ed04be3 into main Jun 8, 2022
@abnormalbrain abnormalbrain deleted the fix-spawn-scale branch June 8, 2022 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant