You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
671 B
31 lines
671 B
image_angle += rotspeed
|
|
if (global.waterlevel != 0)
|
|
{
|
|
if (global.watertype == 0 && instance_exists(oWater))
|
|
{
|
|
if (y > (global.waterlevel + oWater.yoffset))
|
|
{
|
|
if (!inwater)
|
|
{
|
|
inwater = 1
|
|
speed *= 0.5
|
|
instance_create(x, y, oSmallSplash)
|
|
}
|
|
inwater = 1
|
|
}
|
|
if (y < (global.waterlevel + oWater.yoffset))
|
|
{
|
|
if inwater
|
|
{
|
|
inwater = 0
|
|
instance_create(x, y, oSmallSplash)
|
|
}
|
|
inwater = 0
|
|
}
|
|
}
|
|
}
|
|
if (!inwater)
|
|
gravity = 0.2
|
|
else
|
|
gravity = 0.1
|