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

Implement animated flipbook style textures for weapon projectiles. #1617

Merged
merged 5 commits into from
Nov 2, 2024

Conversation

lhog
Copy link
Collaborator

@lhog lhog commented Jul 23, 2024

Use animParams1, animParams2, animParams3, animParams4 in a weaponDef to animate texture1, texture2, texture3, texture4 respectively or animParams to animate all of them the same way.

Implements #1565

lhog added 2 commits July 23, 2024 18:45
Use animParams1, animParams2, animParams3, animParams4 to animate texture1, texture2, texture3, texture4 respectively or animParams to animate all of them the same way.
Implements #1565
@MaDDoXbr
Copy link

MaDDoXbr commented Jul 24, 2024

The final effect of the 'flipbook texture1' can be seen in the attached mp4.
https://github.com/user-attachments/assets/09a103cd-f1b5-41c9-bc9e-ada39a83c927

As a reference, that's what I added to the shown weapondef:

animParams1 = "4 1 8",  --xres = 4, yres = 1, animLength = 8
stages = 1,                      -- to get rid of the "trail replicas" shown behind the cannon projectile 
  • animLength defines the time in game frames during which the whole flipbook sequence is played from start to finish, if it's positive, then animation restarts from start after; if it's negative the animation "ping pongs".

@lhog lhog merged commit 0b1fb3a into master Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants