Change weather animation

McTone

This Guy
Veteran
Joined
May 15, 2013
Messages
203
Reaction score
34
First Language
English
Primarily Uses
So I have a place in my game in which the player walks around in a snowy area, and the wind blows which knocks the character around. All good. What I'd like is if the snow animation would change when the wind blows. Just faster falling and in a downward angle so it appears as though the wind is blowing the flakes around. I hope that makes sense! How might I go about doing this? I thought about playing an animation on screen, but I don't think that would work. I'm not even sure how to access the weather animations or how to add to them or anything else with weather basically! Thanks in advance!
 

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,455
Reaction score
1,297
First Language
Broken English.
Primarily Uses
N/A
Well, the faster falling snow is simple enough. You should have a common event that activates with the wind and momentarily increases that power of the falling snow (from 1 to 10) If I remember correctly, the frequency of the wind is random. Have call the common event when the conditions are met for the wind, set the new weather conditions and after that set them again to normal. As for the direction, I think it has to do with the Update Sprite [snow] section of the Spriteset_Weather script. I tried making some script calls, but it didn't work. Then again. I'm no scripter.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
 

McTone

This Guy
Veteran
Joined
May 15, 2013
Messages
203
Reaction score
34
First Language
English
Primarily Uses
Well, the faster falling snow is simple enough. You should have a common event that activates with the wind and momentarily increases that power of the falling snow (from 1 to 10) If I remember correctly, the frequency of the wind is random. Have call the common event when the conditions are met for the wind, set the new weather conditions and after that set them again to normal. As for the direction, I think it has to do with the Update Sprite [snow] section of the Spriteset_Weather script. I tried making some script calls, but it didn't work. Then again. I'm no scripter.
Thanks! Yeah I could figure out how to get it to call the change, if you will, but what to actually tell it to do was the issue. I might just do an increase in intensity and see how it looks alone. 
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This is really interesting.

The storm gives you a greater angle than the rain (wrt the x movement of the particles on each frame), but other than that, there's no adjustment for wind gusts, and no matter how intense the weather, they always fall in the same direction.

Here is a simple script that will let you adjust the angle of all the particles. Put it above main and use a script call:

modify_weather(value)where value is just added to the x position of the particles on each frame.By default, rain sprites move at -1, 6 each frame. So if you wanted to make it go at a 45 degree angle, the modifier would have to be -5 (gets added to the default x change)

Storm sprites move at -3, 6 each frame. So the modifier would be -3.

Snow sprites move at -1, 3 each frame, so the modifier would be -2.

If you wanted the particles to go to the right instead of the left, your rain modifier would be 7 (-1 + 7 = +6), storm would be 9 and snow would be 4.

class Game_Map def weather_modifier @weather_modifier = 0 if !@weather_modifier @weather_modifier end def weather_modifier=(value) @weather_modifier = value endendclass Game_Interpreter def modify_weather(value) $game_map.weather_modifier = value endendclass Spriteset_Weather alias shaz_weather_modifier_update_sprite update_sprite def update_sprite(sprite) old = sprite.x shaz_weather_modifier_update_sprite(sprite) sprite.x += $game_map.weather_modifier endendWhat this doesn't do is change the actual sprites. The rain/storm are "lines" drawn at a certain angle. So that will not be made more or less steep, which you would expect if the wind is changing its direction.See how it goes though.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,019
Members
137,564
Latest member
McFinnaPants
Top