Game Maker Studio: How to Create Rain, Splashes, and Thunder.

Channel:
Subscribers:
268
Published on ● Video Link: https://www.youtube.com/watch?v=s-DzIrGx7FE



Duration: 14:34
888 views
0


Visit my anime and game site: http://mcanime1.wixsite.com/mcanime

GMX File: https://goo.gl/fxXNqt

Update on Rain: https://www.youtube.com/watch?v=h1AI36jusBo

Flashing_light:

Events:

Create

Actions:

room_speed*5

Alarm 0

Events:

Alarm 0

Actions:

room_speed*5

Alarm 0

background_color=c_gray

room_speed*.2

Alarm 1

Events:

Alarm 1

room_speed*.2

Alarm 1

background_color=c_black


Clouds:

Event:

Create

Actions:

room_speed*.3
Alarm 0

effect_create_below(ef_cloud,random(room_width),view_yview[0],200,c_gray)


effect_create_below(ef_cloud,random(room_width),view_yview[0],100,c_gray)

Events:

Alarm 0

room_speed*.3

Alarm 0

effect_create_below(ef_cloud,random(room_width),view_yview[0],80,c_black)


rain:

Events:

Step

Actions:

randomize()
var rainRandom = ceil(random(10))

if(rainRandom ==1){
instance_create(0,0,obj_rain)
}

obj_rain

Events:

Create

Actions:

x = random(room_width)
vspeed = 50

Events:

Step

Actions:

x -=1

Note: Be sure not to use too many effects, may cause your phone or tablet to be slow, or even shut off game, due to the processor speed of phone or table.

Examples:

effect_create_below
effect_create_above
effect_clear

There are also a number of different constants for each of the pre-defined effects that the above functions can use:

ef_cloud
ef_ellipse
ef_explosion
ef_firework
ef_flare
ef_rain
ef_ring
ef_smoke
ef_smokeup
ef_snow
ef_spark
ef_star

effect_create_below(ef_firework,random(room_width),view_yview[0],80,c_green)


effect_create_below(ef_firework,random(room_width),view_yview[0],80,c_red)


effect_create_above(ef_smoke,random(room_width),view_yview[0],80,c_gray)







Tags:
android
tablet
computer
pc
rain
splashes
thunder
code
image
animation
blink
particle
phone
device
splash
land
clouds
dark
light
lighting
effect
ef
firework
spark
star
ring
flare
smoke
cloud
learn
how
teach