Bobbing?
Moderator: Moderators
The only thing I can think of is make them script_objects, give them targetnames and do it via the script.
This might work,
//call the thread like so
$object1 thread bob
$object2 thread bob
//etc etc
//-------
bob:
//-------
//each instance of this thread will make the objects
//bob up and down with small pauses with random movement distance
while(1) {
//play with these numbers for best effects
local.dist = (randomint (10)+5)
local.pause = (randomfloat 3)
local.wait = (randomint(3)+1)
self moveup local.dist
self waitmove
wait local.pause
self movedown local.dist
self waitmove
wait local.wait
}
end
Grassy
This might work,
//call the thread like so
$object1 thread bob
$object2 thread bob
//etc etc
//-------
bob:
//-------
//each instance of this thread will make the objects
//bob up and down with small pauses with random movement distance
while(1) {
//play with these numbers for best effects
local.dist = (randomint (10)+5)
local.pause = (randomfloat 3)
local.wait = (randomint(3)+1)
self moveup local.dist
self waitmove
wait local.pause
self movedown local.dist
self waitmove
wait local.wait
}
end
Grassy
An ambiguous question will get a similar answer...
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
rings
Makes you wonder how splash rings (bullet hits) float on a moving surface. "MoveOffset" works for script_objects, but I'm not sure how you set the offset vector to start with.
moveOffset - Move the position by the offset vector.
moveOffset - Move the position by the offset vector.


