Waves at my beach
Moderator: Moderators
- martijn_NL
- Map Reviewer
- Posts: 156
- Joined: Mon Apr 14, 2003 5:33 pm
- Location: The Netherlands
- Contact:
Waves at my beach
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
-
nuggets
- General
- Posts: 1006
- Joined: Fri Feb 28, 2003 2:57 am
- Location: U-england-K (england in the UK) :P
- Contact:
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
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)
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
hope this helps, prob not cos it's all foreign 2 me :-/
- martijn_NL
- Map Reviewer
- Posts: 156
- Joined: Mon Apr 14, 2003 5:33 pm
- Location: The Netherlands
- Contact:
