[Repost] Snow Effect

Started by Kelvin Garcia Mendoza, Nov 01, 2021, 04:01 AM

Previous topic - Next topic

Kelvin Garcia Mendoza

Hello again.
Well, this script was originally posted last year on December 14th. Back then I thought it was irrelevant so I decided to delete it; but a few months later I got surprised when I found out some people, being one of them @Sebastian actually liked it when we had a little chat in the official VC:MP Discord server; then we came to an agreement - I told him I'll be reposting this in November so here I am. I promise I won't delete it again this time. :P

In this one-year period I've learned the basics of GitHub, so this time the script is on GitHub and it was rewritten from scratch with a few minor improvements. Anything you need to know can be found in the link below:
https://github.com/sfwidde/vcmp-snow-effect

Thank you.

Sebastian

Maan, make nice description to it !
Here some help:
https://www.youtube.com/watch?v=vtSrnNbO_vs&ab_channel=sfwidde

PS: Glad you didn't forget :D Great effect!

Kelvin Garcia Mendoza

#2
Quote from: Sebastian on Nov 01, 2021, 07:46 AMMaan, make nice description to it !
Here some help:
https://www.youtube.com/watch?v=vtSrnNbO_vs&ab_channel=sfwidde

PS: Glad you didn't forget :D Great effect!
haha I attached this video to the repo's README.md file. I thought it wasn't necessary to attach it here as well. About making a 'nice description' to it - I assumed the video itself was self-explanatory. :P
Thank you for your comments!

ℛḝξ☂

I may be a slow walker but I am always walking.

Kelvin Garcia Mendoza

#4
2022-12-10 update
  • Reuse previously created sprites instead of deleting them as soon as they go out of screen bounds which should result in a huge performance improvement.
  • Snow items are now assigned a random alpha (between 15 and 255) on rewind.
  • Delete the following keys from snowEffect table: waitTime and maxSpriteSize. Add new constants: MAX_SNOW_EFFECT_ITEMS, MIN_SNOW_EFFECT_ITEM_SIZE and MAX_SNOW_EFFECT_ITEM_SIZE instead.
  • Add snowEffect table function: PreloadItems().
  • Rename snowEffect table function Process() to ProcessItems() for consistency.
Repo link
Don't forget to redownload the script and to follow installation steps once again since there is a new, additional step you shouldn't skip. Happy holidays!

Mikimon

muy buena mejora, para las potato pc