Page 1 of 1

Fog

Posted: Fri Jan 25, 2019 10:05 am
by Red Dog-PG-
Looking for a script to have fog move in and out, would like rolling fog but sure that's impossible. This is what I got but if someone was a better way, would greatly appreciate the input.

if elapse(30) and random(6) then
dornd
movefog(190,20)

next
movefog(130,20)

next
movefog(115,20)

next
movefog(65,20)

next
movefog(580,20)
enddo
endif

Re: Fog

Posted: Sat Jan 26, 2019 9:07 pm
by Windstalker-PG-
You can also use it tied to events and area triggers

Re: Fog

Posted: Mon Jan 28, 2019 8:25 am
by Red Dog-PG-
Hey Windstalker - You got me thinking about tying the fog movement to an event. Now instead of the fog movement happing right at the start of the map, the player sees the fast sky movement with no fog. once the event is triggered, the fog starts to move in. It's a decent effect and will be used in my new map about to day-view called Zeebrugge (pronounced zee-broo g-uh ).

if never() then skyspeed(100) endif
if event(25) and elapse(30) and random(6) then
dornd
rain(25)
movefog(190,20)

next
rain(50)
movefog(130,20)

next
rain(75)
movefog(115,20)

next
rain(100)
movefog(65,20)

next
rain(0)
movefog(580,20)
enddo
endif


Thanks for your input Windstalker!

Re: Fog

Posted: Mon Jan 28, 2019 7:01 pm
by Windstalker-PG-
You're welcome