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
Fog
- Red Dog-PG-
- Squad Member
- Posts: 1005
- Joined: Thu Jan 10, 2013 1:21 pm
Fog
Handle every stressful situation like a Dog....if you can't eat, hump it, or play with it, pee on it and walk away
- Windstalker-PG-
- Administrator
- Posts: 1451
- Joined: Sat May 22, 2010 11:04 am
Re: Fog
You can also use it tied to events and area triggers
When you hear the Wind.. You're already dead
- Red Dog-PG-
- Squad Member
- Posts: 1005
- Joined: Thu Jan 10, 2013 1:21 pm
Re: Fog
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!
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!
Handle every stressful situation like a Dog....if you can't eat, hump it, or play with it, pee on it and walk away
- Windstalker-PG-
- Administrator
- Posts: 1451
- Joined: Sat May 22, 2010 11:04 am