Page 1 of 1
Waves at my beach
Posted: Mon Apr 14, 2003 5:37 pm
by martijn_NL
I'm bussy with a map with a ocean. But i want to created some waves near the beach. But i don't know how to do that. :( I hope someone can help me. :o
Posted: Mon Apr 14, 2003 6:49 pm
by Yarik
I dont think you really have to do anything except pick the right water texture. I just dont know whats its name.
Posted: Mon Apr 14, 2003 7:42 pm
by nuggets
the way they did it in the lighthouse level M1l3c...
oceanspray:
thread spray1
thread spray2
thread spray3
thread spray4
thread spray5
thread spray6
end
spray1:
wait 13
trigger $spray1
goto spray1
spray2:
wait 3.5
$spray1 anim start
wait 1
$spray2 anim stop
goto spray2
spray3:
wait 6
$spray3 anim start
wait 1
$spray3 anim stop
goto spray3
spray4:
wait 2.5
$spray4 anim start
wait 1
$spray4 anim stop
goto spray4
spray5:
wait 5
$spray5 anim start
wait 1
$spray5 anim stop
goto spray5
spray6:
wait 3
$spray6 anim start
wait 1
$spray6 anim stop
goto spray6
as you will be able to tell (hopefully)

the anims for the waves only will get triggered when the player will come into sight of the waves (thus passing though a trigger_once trigger which will have)
key: setthread
value: oceanspray
you will need to create 6 animate->fx->water_spary giving them
key: targetname
value: spray1, spray2, etc...
this will create splash effects so place them against rocks,
for rolling waves however you will need to create however many waves sets you'd like (minimum of 3) then give them
key: targetname
value: wave1, wave2, etc...
add to the script
oceanspray:
thread spray1
thread spray2
thread spray3
thread spray4
thread spray5
thread spray6
thread waves //this is the only line needed to be added
end
waves:
$wave1 thread wave_move
wait 6 //must be twice the wave_move time
$wave2 thread wave_move
wait 6
$wave3 thread wave_move
end
wave_move:
self moveUp 10 //edit these numbers depending on how much wave moment you want
self moveRight 100 //you can change "Right" with "Left", "Forward" and "Backward"
self time 3 //how quickly the waves move
self waitmove
self moveDown 10
self moveLeft 100 //make the opposite of previous direction
self waitmove
self thread wave_move
end
Posted: Mon Apr 14, 2003 7:47 pm
by Yarik

I gotta try that.
Posted: Mon Apr 14, 2003 8:12 pm
by nuggets
lol, tell me how it goes i've never tried it myself

Posted: Tue Apr 15, 2003 10:17 am
by martijn_NL
I will try it.

Posted: Wed Apr 16, 2003 1:43 pm
by mohaa_rox
There's some wave textures, I think ocean or deep_ocean

, which has waves.